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 c2e6a08566b9..23ef66766745 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/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function a(param) { var _b = param.b, b = _b === void 0 ? [] : _b; var t = useMemo(function() { 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 d81213430f91..2099df96080a 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/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var window = "foo"; console.log(typeof window === "undefined" ? "undefined" : _type_of(window)); 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 a5fe8a835e25..ef0209c4a6f0 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/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _decorate from "@swc/helpers/lib/_decorate.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; 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 7641026bcd88..0bcf7f755c87 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/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Class1 = function Class1(param) { "use strict"; var _name = param.name, name = _name === void 0 ? "" : _name; 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 284c6716f0e2..38bdcdd7631d 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var source = Math.random() < 2 ? "matilda" : "fred"; var details = { 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 284c6716f0e2..38bdcdd7631d 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var source = Math.random() < 2 ? "matilda" : "fred"; var details = { 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 32f515842130..02c732445741 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; export class Foo { nested() { let Foo1 = 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 3451482c4263..ba8227dab46f 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,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; 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 d36216279d66..b03c90a3d989 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/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +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"; var _name = /*#__PURE__*/ new WeakMap(); var Animal = /*#__PURE__*/ function() { "use strict"; 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 5d9f99bc4edc..1127a120c0a6 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/lib/_class_call_check.js"; -import _ts_decorate from "@swc/helpers/lib/_ts_decorate.js"; -import _ts_metadata from "@swc/helpers/lib/_ts_metadata.js"; +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"; export var AccountMemberView = function AccountMemberView() { "use strict"; _class_call_check(this, AccountMemberView); 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 03c5136f5fa4..d2d80e2721c9 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,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; import regeneratorRuntime from "regenerator-runtime"; 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 a8fa14507dc7..af06b3348e5f 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/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var AbstractProviderDeliveryService = function AbstractProviderDeliveryService() { "use strict"; _class_call_check(this, AbstractProviderDeliveryService); 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 2f24b2d895cc..6b16dd8f0baa 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var obj = { find: function find(param) { 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 5df84995ce43..8b2dbde73308 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,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f(a, b) { return _f.apply(this, arguments); 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 77dde39bc887..e4cf04d0f2d8 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,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; 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 e1a2e465d68f..88b31d0f93ea 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/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; 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 6297c27570f7..089842fc5335 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,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; 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 2f97d665fe3a..f79008b4491d 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/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var a = /*#__PURE__*/ function(Component) { "use strict"; _inherits(_class, Component); 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 1d33ec7dcbc9..d3abbad8edd7 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,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var withTeamsForUser = function() { var _class = /*#__PURE__*/ function(Component) { "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 e1a2e465d68f..88b31d0f93ea 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/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; 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 7d2dbfb9cff3..86fe30bd4da6 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/lib/_ts_decorate.js"; +import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; import { Entity, BaseEntity } from "typeorm"; export let Location = class Location extends BaseEntity { }; 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 f5a0ca8d946a..8c41e8428023 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/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; 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 9fbb114f09ba..9d25a3f48a79 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; Vue.component("test", { methods: { 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 3f8ffd2372aa..9ec3b39e6a0d 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var obj = { foo: 5, 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 b4b27734b0f9..f51f72eea4be 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,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Test = /*#__PURE__*/ function() { "use strict"; function Test() { 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 f5e698b9705c..fded88aff204 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/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; 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 46f822dcec30..ec21dcb31c9d 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/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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 f5e698b9705c..fded88aff204 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/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; 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 f5e698b9705c..fded88aff204 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/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; 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 f5e698b9705c..fded88aff204 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/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; 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 7bd2f7c932f4..b544d79d2958 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/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; 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 7bd2f7c932f4..b544d79d2958 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/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "a\nb\nc\n" diff --git a/crates/swc/tests/fixture/issues-1xxx/1687/output/input.tsx b/crates/swc/tests/fixture/issues-1xxx/1687/output/input.tsx index c5c6f637dde4..fd05a7631b73 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1687/output/input.tsx +++ b/crates/swc/tests/fixture/issues-1xxx/1687/output/input.tsx @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +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 "core-js/modules/es.object.to-string.js"; import "core-js/modules/es.promise.js"; import regeneratorRuntime from "regenerator-runtime"; 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 a2c384886dff..6907eea4d38a 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/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _get = /*#__PURE__*/ new WeakSet(); var MyClass = function MyClass() { "use strict"; 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 69591660ec85..4a6db033df5c 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; 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 32a15b7175da..724271837b8c 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/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; 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 2f23a465a5bc..1f3971053f66 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,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; 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 993f1f7acb14..915136773cc6 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,6 +1,6 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; 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 b7c19ac8dbb4..bea83da715c0 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; (function() { var _main = _async_to_generator(regeneratorRuntime.mark(function _callee() { 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 b9120640c4be..34c1710898a0 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/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; function createConstructor(callback) { var klass; return function() { 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 518387598721..b4bb20c19902 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/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +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"; function _templateObject() { var data = _tagged_template_literal([ "tagged template" 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 3d09765231be..28d8fd5cefb9 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,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _ts_decorate from "@swc/helpers/lib/_ts_decorate.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; var _TestClass; var TestClass = (_TestClass = function TestClass1() { "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 9611b05745a2..548ebea39963 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/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() { let counter = 0; let resolve; 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 21b875544c85..d33078781ac0 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/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; function Bar() { var ref = _sliced_to_array(useState(0), 2), foo = ref[0], setFoo = ref[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 006b3c10cbb6..340adb20654c 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,3 +1,3 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var a = {}; var b = _extends({}, 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 424887892297..0d55192c0920 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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 424887892297..0d55192c0920 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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 424887892297..0d55192c0920 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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 424887892297..0d55192c0920 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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 424887892297..0d55192c0920 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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 424887892297..0d55192c0920 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; class Item extends Component { constructor(props){ super(props); 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 3b4c26c25f58..332e1a6d79b8 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/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _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/no-module/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2024/no-module/output/index.js index 5d4d7a0b5656..3abea1cc7373 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { var sleep, result; 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 3b983411f57d..0c1754009467 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 @@ -1,5 +1,5 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; /* Copyright (c) 2018-2020 Xiamen Yaji Software Co., Ltd. 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 50ac0ca102ce..3f8037934f60 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/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; 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 50ac0ca102ce..3f8037934f60 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/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; 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 f147d113b8af..883798ab7a4c 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; 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 b06908ebdd09..8d8904c0ad02 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,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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 regeneratorRuntime from "regenerator-runtime"; var Foo = /*#__PURE__*/ function() { "use strict"; 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 eddc63ae9858..e4a322b6369b 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,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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 regeneratorRuntime from "regenerator-runtime"; var resolver = { sendSomeMessage: function sendSomeMessage(_parent, _param, _param1) { 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 3e45fe14bac2..889eea88f76c 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export var foo = function() { var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() { 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 0f3e89faca65..4e9edb6f3abc 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/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var ref = _sliced_to_array(createQuery(), 2); export var useQuery = ref[0], query = ref[1].query; var ref1 = _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 d4aa3133c166..9eb23f1414ef 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var handleSubmit = useMutation(_async_to_generator(regeneratorRuntime.mark(function _callee() { var res, errors; 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 5134e5f12b3e..b9e54e3d54a8 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/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; 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 b8c7ea440785..eb9aba623706 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/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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 af55bb55a478..61e684c71753 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/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; 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 ab22f8df6eea..88e487b7dd43 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/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; const items = []; for (const _ref of items){ var item = _ref; 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 e9e9988d6f65..b810d8c27dc8 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/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; 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 bda80c9d0062..757a24dffc3c 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/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; 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 ec1a63ab17d3..8c213f8b578f 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/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var X = /*#__PURE__*/ function() { "use strict"; function X() { 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 9bbd631135be..59c93e111a27 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,5 +1,5 @@ -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _link = /*#__PURE__*/ new WeakSet(); export class Node { link() { 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 6110f2a7f637..c07a092b21d8 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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-4xxx/4021/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4021/output/index.ts index cc4990e2073f..a396641405b9 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/lib/_ts_decorate.js"; +import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; var N; (function(N) { let C1 = class C1 { 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 751b44b77b43..2021f575ac78 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,6 +1,6 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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 regeneratorRuntime from "regenerator-runtime"; import { Transaction } from "@solana/web3.js"; import { WalletNotConnectedError } from "@solana/wallet-adapter-base"; 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 8d8278442d6e..4fbe67d2f9f6 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/lib/_ts_decorate.js"; +import _ts_decorate from "@swc/helpers/src/_ts_decorate.mjs"; 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 2b5cec4ccbfb..18fc479f0b04 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,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var CompanyBgStore = function CompanyBgStore() { "use strict"; 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 c1d3043decc0..b3c66d8c85ee 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,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var A = function A() { "use strict"; 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 b245fa90cc66..af1d26856d64 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/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; 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 96a866ed53ba..7de4fdd0493f 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,6 +1,6 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +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 regeneratorRuntime from "regenerator-runtime"; var A = /*#__PURE__*/ function() { "use strict"; 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 be9a2b7dd809..62edace5a793 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,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; import "reflect-metadata"; var v0 = function() { 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 efc661e25cf4..0503d650a7b1 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/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import "reflect-metadata"; const v0 = function() { var _ref = _async_to_generator(function*(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 34168a50e349..1bd0932e6cde 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/lib/_class_private_field_loose_base.js"; -import _class_private_field_loose_key from "@swc/helpers/lib/_class_private_field_loose_key.js"; +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"; 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 bbb06d640e27..6d9c2fdd8d5a 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4899/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4899/output/index.ts @@ -1,6 +1,6 @@ define([ "require", - "@swc/helpers/lib/_ts_decorate.js" + "@swc/helpers/src/_ts_decorate.mjs" ], function(require, _ts_decorate) { "use strict"; function es5ClassCompat(target) { 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 000a2d74e179..f37bd40f3865 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/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var CustomError = /*#__PURE__*/ function _target(Error) { "use strict"; _inherits(CustomError, Error); diff --git a/crates/swc/tests/fixture/next.js/server/render/1/output/index.tsx b/crates/swc/tests/fixture/next.js/server/render/1/output/index.tsx index cadac6fce652..96a1ca23c2fa 100644 --- a/crates/swc/tests/fixture/next.js/server/render/1/output/index.tsx +++ b/crates/swc/tests/fixture/next.js/server/render/1/output/index.tsx @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import { Writable } from "stream"; import React from "react"; import * as ReactDOMServer from "react-dom/server"; 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 a7b1eab54a0a..7405c5df08a1 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,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var Router = /*#__PURE__*/ function() { "use strict"; 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 7ae877f4fcaf..af9ba9610119 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/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = /*#__PURE__*/ function() { "use strict"; function 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 aa4d8ac713f4..4d1017ce8ff1 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/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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 1cf1483bad0b..53c3f9114db9 100644 --- a/crates/swc/tests/fixture/sourcemap/002/output/index.js +++ b/crates/swc/tests/fixture/sourcemap/002/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default function StaticPage(param) { var data = param.data; diff --git a/crates/swc/tests/fixture/sourcemap/003/output/index.js b/crates/swc/tests/fixture/sourcemap/003/output/index.js index 6357632b6b0c..eb6044de7191 100644 --- a/crates/swc/tests/fixture/sourcemap/003/output/index.js +++ b/crates/swc/tests/fixture/sourcemap/003/output/index.js @@ -1 +1 @@ -import a from"@swc/helpers/lib/_async_to_generator.js";import b from"regenerator-runtime";export default function c(a){var b=a.data;return React.createElement("div",null,b.foo)};export function getStaticProps(){return d.apply(this,arguments)}function d(){return(d=a(b.mark(function a(){return b.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",{props:{data:{foo:"bar"}}});case 1:case"end":return a.stop()}},a)}))).apply(this,arguments)} +import a from"@swc/helpers/src/_async_to_generator.mjs";import b from"regenerator-runtime";export default function c(a){var b=a.data;return React.createElement("div",null,b.foo)};export function getStaticProps(){return d.apply(this,arguments)}function d(){return(d=a(b.mark(function a(){return b.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",{props:{data:{foo:"bar"}}});case 1:case"end":return a.stop()}},a)}))).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 2be1579a8657..bdb8fb285446 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": "AAAA,yFAAA,gBAAe,SAASA,CAAU,CAAC,CAAQ,CAAE,KAAV,AAAEC,CAAI,CAAN,CAAQ,CAANA,IAAI,AAAE,AACvC,QAAO,oBAACC,KAAG,MAAED,CAAI,CAACE,GAAG,CAAO,AAAC,CAChC,AAED,iBAAsBC,cAAc,UAAdA,CAAc,uBAQnC,SARqBA,CAAc,UAAdA,CAAc,CAA7B,SAAA,YAAgC,wFAC5B,CACHC,KAAK,CAAE,CACHJ,IAAI,CAAE,CACFE,GAAG,CAAE,KAAK,CACb,CACJ,CACJ,wCACJ,EAAA,wBAAA", + "mappings": "AAAA,0FAAA,gBAAe,SAASA,CAAU,CAAC,CAAQ,CAAE,KAAV,AAAEC,CAAI,CAAN,CAAQ,CAANA,IAAI,AAAE,AACvC,QAAO,oBAACC,KAAG,MAAED,CAAI,CAACE,GAAG,CAAO,AAAC,CAChC,AAED,iBAAsBC,cAAc,UAAdA,CAAc,uBAQnC,SARqBA,CAAc,UAAdA,CAAc,CAA7B,SAAA,YAAgC,wFAC5B,CACHC,KAAK,CAAE,CACHJ,IAAI,CAAE,CACFE,GAAG,CAAE,KAAK,CACb,CACJ,CACJ,wCACJ,EAAA,wBAAA", "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 cf3451020956..a76dd1cfb152 100644 --- a/crates/swc/tests/fixture/sourcemap/005/output/index.js +++ b/crates/swc/tests/fixture/sourcemap/005/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; it("should compress avif smaller than webp and smaller than jpg", _async_to_generator(regeneratorRuntime.mark(function _callee() { var query, res1, res2, res3, avif, webp, jpeg; diff --git a/crates/swc/tests/fixture/sourcemap/006/output/index.js b/crates/swc/tests/fixture/sourcemap/006/output/index.js index cf3451020956..a76dd1cfb152 100644 --- a/crates/swc/tests/fixture/sourcemap/006/output/index.js +++ b/crates/swc/tests/fixture/sourcemap/006/output/index.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; it("should compress avif smaller than webp and smaller than jpg", _async_to_generator(regeneratorRuntime.mark(function _callee() { var query, res1, res2, res3, avif, webp, jpeg; 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 6f6790b9882b..59e135932636 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/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; let Foo = class Foo { method() { let Foo = class Foo { diff --git a/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot_es5.1.normal.js b/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot_es5.1.normal.js index 001d31bfb73f..d2208240bf5b 100644 --- a/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: classPoint.ts var A; (function(A1) { diff --git a/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot_es5.2.minified.js index f06c0d71e8c7..430be5ccb051 100644 --- a/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter_es5.1.normal.js index b8a61bcaf555..53fc34a5f95b 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // all expected to be errors var clodule1 = function clodule1() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter_es5.2.minified.js index 79706f0b4c98..63d338cb154c 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var clodule1 = function() { "use strict"; _class_call_check(this, clodule1); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.1.normal.js index 21019f65baff..96b575cdf3c8 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var clodule = /*#__PURE__*/ function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.2.minified.js index 267300623f90..293379783bb3 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var clodule = function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.1.normal.js index 21019f65baff..96b575cdf3c8 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var clodule = /*#__PURE__*/ function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.2.minified.js index 267300623f90..293379783bb3 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndNonGenericClassStaticFunctionOfTheSameName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var clodule = function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics_es5.1.normal.js index f7140dcfef57..1a39c7c9a583 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var clodule = /*#__PURE__*/ function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics_es5.2.minified.js index e98700a40d3d..4f65d6033dc4 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var clodule = function() { "use strict"; function clodule() { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.1.normal.js index c15703ac0056..8ded38a30c22 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Point = /*#__PURE__*/ function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.2.minified.js index 8645a7f3faec..aae1101e2b50 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A, Point = function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName_es5.1.normal.js index c6e7d65e6ec7..ea64ef37d24c 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Point = /*#__PURE__*/ function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName_es5.2.minified.js index 8a88bf8784f9..7a92a6c9b2dc 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A, Point = function() { "use strict"; function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName_es5.1.normal.js index 78767e340fc4..ebd56d3c8ef4 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Point = function Point(x, y) { "use strict"; _class_call_check(this, Point); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName_es5.2.minified.js index d00ea04f4269..895dfcafbc1c 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A, Point = function(x, y) { "use strict"; _class_call_check(this, Point), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName_es5.1.normal.js index 009b493d6e5e..7dbe199b9df5 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Point = function Point(x, y) { "use strict"; _class_call_check(this, Point); diff --git a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName_es5.2.minified.js index d125a415f79f..45ddff9d6cd5 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A, Point = function(x, y) { "use strict"; _class_call_check(this, Point), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRootES6_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRootES6_es5.1.normal.js index 887a01884513..11fa5854d365 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRootES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRootES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES6 // @filename: class.ts var X; diff --git a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRootES6_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRootES6_es5.2.minified.js index 79c5fe2d398e..caf2ef171abd 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRootES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRootES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(X1) { var Y, Point; Y = X1.Y || (X1.Y = {}), Point = function(x, y) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot_es5.1.normal.js b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot_es5.1.normal.js index 740eed34c053..bb38d4764054 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: class.ts var X; (function(X1) { diff --git a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot_es5.2.minified.js index 79c5fe2d398e..caf2ef171abd 100644 --- a/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ClassAndModuleWithSameNameAndCommonRoot_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(X1) { var Y, Point; Y = X1.Y || (X1.Y = {}), Point = function(x, y) { diff --git a/crates/swc/tests/tsc-references/ES5For-of26_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5For-of26_es5.1.normal.js index afd374974440..e12424b47e42 100644 --- a/crates/swc/tests/tsc-references/ES5For-of26_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-of26_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@sourcemap: true diff --git a/crates/swc/tests/tsc-references/ES5For-of26_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5For-of26_es5.2.minified.js index 3ea8fc34931c..2d8a710e3a6b 100644 --- a/crates/swc/tests/tsc-references/ES5For-of26_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-of26_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var _step, _iterator = [ diff --git a/crates/swc/tests/tsc-references/ES5For-of28_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5For-of28_es5.1.normal.js index 916e74be516a..3097dcd49040 100644 --- a/crates/swc/tests/tsc-references/ES5For-of28_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-of28_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { for(var _iterator = [ diff --git a/crates/swc/tests/tsc-references/ES5For-of28_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5For-of28_es5.2.minified.js index 3ea8fc34931c..2d8a710e3a6b 100644 --- a/crates/swc/tests/tsc-references/ES5For-of28_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-of28_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var _step, _iterator = [ diff --git a/crates/swc/tests/tsc-references/ES5For-of30_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5For-of30_es5.1.normal.js index 9479bad5da2e..059cb4d0680e 100644 --- a/crates/swc/tests/tsc-references/ES5For-of30_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-of30_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var a, b; var tuple = [ 2, diff --git a/crates/swc/tests/tsc-references/ES5For-of30_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5For-of30_es5.2.minified.js index cef19c00daf4..646200af9434 100644 --- a/crates/swc/tests/tsc-references/ES5For-of30_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-of30_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var ref, _step, _iterator = [ diff --git a/crates/swc/tests/tsc-references/ES5For-of36_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5For-of36_es5.1.normal.js index 44b1e6a56aea..af91e808324c 100644 --- a/crates/swc/tests/tsc-references/ES5For-of36_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-of36_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@sourcemap: true diff --git a/crates/swc/tests/tsc-references/ES5For-of36_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5For-of36_es5.2.minified.js index 3ea8fc34931c..2d8a710e3a6b 100644 --- a/crates/swc/tests/tsc-references/ES5For-of36_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-of36_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var _step, _iterator = [ diff --git a/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10_es5.1.normal.js index cd5b967591e9..cca74f303bfb 100644 --- a/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 // In ES3/5, you cannot for...of over an arbitrary iterable. var StringIterator = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10_es5.2.minified.js index 14275cc78800..35a4d782ce6b 100644 --- a/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5For-ofTypeCheck10_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty1_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty1_es5.1.normal.js index bd999b6f6013..c9b3dc138162 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var Symbol; var obj = _define_property({}, Symbol.foo, 0); obj[Symbol.foo]; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty1_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty1_es5.2.minified.js index 526f7a584f71..3bfa1761ed48 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty1_es5.2.minified.js @@ -1,3 +1,3 @@ var Symbol; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.foo, 0)[Symbol.foo]; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty2_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty2_es5.1.normal.js index ddab7c7fb0b6..c6ffeaafd182 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 var M; (function(M1) { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty2_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty2_es5.2.minified.js index 1f454a51e670..54897b24e860 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty2_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M1) { var _$Symbol, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty3_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty3_es5.1.normal.js index df6f487d670b..3cab3c27c1ff 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 var Symbol; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty3_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty3_es5.2.minified.js index 5ecbcc655da9..0d74b5484552 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Symbol, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty4_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty4_es5.1.normal.js index df6f487d670b..3cab3c27c1ff 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 var Symbol; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty4_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty4_es5.2.minified.js index 5ecbcc655da9..0d74b5484552 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Symbol, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty5_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty5_es5.1.normal.js index 17399ceb7f11..f5eba6da8729 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 var Symbol; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty5_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty5_es5.2.minified.js index 04d3f11b700b..7e2832dc91ad 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Symbol, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty6_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty6_es5.1.normal.js index 2a983c700503..e8a81503735e 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty6_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty6_es5.2.minified.js index 6bb14e865b0e..b7000255765c 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty7_es5.1.normal.js b/crates/swc/tests/tsc-references/ES5SymbolProperty7_es5.1.normal.js index df6f487d670b..3cab3c27c1ff 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 var Symbol; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/ES5SymbolProperty7_es5.2.minified.js b/crates/swc/tests/tsc-references/ES5SymbolProperty7_es5.2.minified.js index 5ecbcc655da9..0d74b5484552 100644 --- a/crates/swc/tests/tsc-references/ES5SymbolProperty7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ES5SymbolProperty7_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Symbol, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot_es5.1.normal.js b/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot_es5.1.normal.js index 9904fdbfcfb8..3e3c49e79f27 100644 --- a/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var enumdule; (function(enumdule) { enumdule[enumdule["Red"] = 0] = "Red"; diff --git a/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot_es5.2.minified.js index ba6dc5fa5198..e0a0bcb2b80e 100644 --- a/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/EnumAndModuleWithSameNameAndCommonRoot_es5.2.minified.js @@ -1,5 +1,5 @@ var enumdule; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(enumdule) { enumdule[enumdule.Red = 0] = "Red", enumdule[enumdule.Blue = 1] = "Blue"; }(enumdule || (enumdule = {})), function(enumdule) { diff --git a/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType_es5.1.normal.js index 42e558752204..b71c32fdb542 100644 --- a/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var Point2d = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType_es5.2.minified.js index 351cf8b115ff..a3e69609d8ec 100644 --- a/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportClassWhichExtendsInterfaceWithInaccessibleType_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point2d = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations_es5.1.normal.js index 6bc8afee46ee..b61d317dd592 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A; (function(A1) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations_es5.2.minified.js index 62b957f754ad..e185cf9f9fcb 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations_es5.2.minified.js @@ -1,7 +1,7 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(A1) { var Point1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations_es5.1.normal.js index 89e3a1d8e7ad..5af6bd0912ec 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations_es5.2.minified.js index 743499c0c85f..306379f7b3d1 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInIndexerTypeAnnotations_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint_es5.1.normal.js index 9c064d7f1676..f8646de8f74e 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A; (function(A1) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint_es5.2.minified.js index fc122ac7763b..8c4cb294ef05 100644 --- a/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportClassWithInaccessibleTypeInTypeParameterConstraint_es5.2.minified.js @@ -1,7 +1,7 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(A1) { var Point1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.1.normal.js index 35bb22872558..400aee288c39 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var fromOrigin = function fromOrigin(p) { diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.2.minified.js index 6fb28d0670ef..364a9da9fec7 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithAccessibleTypesInParameterAndReturnTypeAnnotation_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.1.normal.js index 07fc155d3f2c..d3d6bd53378b 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var fromOrigin = function fromOrigin(p) { diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.2.minified.js index 1aef9ff5e0d5..9b34ed3f06e9 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInParameterTypeAnnotation_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.1.normal.js index f97cd42acf1b..861e2635dc09 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var fromOrigin = function fromOrigin(p) { diff --git a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.2.minified.js index c2dc7de1377e..7531adeb37f8 100644 --- a/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportFunctionWithInaccessibleTypesInReturnTypeAnnotation_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers_es5.1.normal.js index e4e7ea308402..03e03742469b 100644 --- a/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers_es5.2.minified.js index 4ec46b66f01e..92ce7e8e9801 100644 --- a/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportModuleWithAccessibleTypesOnItsExportedMembers_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var B, Line, Point = function(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations_es5.1.normal.js index 0a808cda0648..4a11ee160089 100644 --- a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations_es5.2.minified.js index bdd7e7d320f5..c3cfc7b44d78 100644 --- a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInMemberTypeAnnotations_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations_es5.1.normal.js index f2a1ad298bf8..1b7ea136b222 100644 --- a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations_es5.2.minified.js index dc81e1a95dfc..2f7310491d23 100644 --- a/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportObjectLiteralAndObjectTypeLiteralWithAccessibleTypesInNestedMemberTypeAnnotations_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es5.1.normal.js b/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es5.1.normal.js index 84f77df2ad4e..e1a0c51005cc 100644 --- a/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var B = function B() { diff --git a/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es5.2.minified.js b/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es5.2.minified.js index 2703d77cf8c7..f8ca4c0d6614 100644 --- a/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ExportVariableOfGenericTypeWithInaccessibleTypeAsTypeArgument_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var beez, B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/FunctionDeclaration9_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/FunctionDeclaration9_es6_es5.1.normal.js index fa06b013f290..fe276f89f06a 100644 --- a/crates/swc/tests/tsc-references/FunctionDeclaration9_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/FunctionDeclaration9_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(foo); // @target: es6 diff --git a/crates/swc/tests/tsc-references/FunctionDeclaration9_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/FunctionDeclaration9_es6_es5.2.minified.js index 1ad797708112..e5ab0d6da4c7 100644 --- a/crates/swc/tests/tsc-references/FunctionDeclaration9_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/FunctionDeclaration9_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(foo); function foo() { diff --git a/crates/swc/tests/tsc-references/FunctionPropertyAssignments5_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/FunctionPropertyAssignments5_es6_es5.1.normal.js index c1153907a63a..d503d1619491 100644 --- a/crates/swc/tests/tsc-references/FunctionPropertyAssignments5_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/FunctionPropertyAssignments5_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es6 var v = _define_property({}, foo(), regeneratorRuntime.mark(function _callee() { diff --git a/crates/swc/tests/tsc-references/FunctionPropertyAssignments5_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/FunctionPropertyAssignments5_es6_es5.2.minified.js index 87645b37db9d..d29326bb7b53 100644 --- a/crates/swc/tests/tsc-references/FunctionPropertyAssignments5_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/FunctionPropertyAssignments5_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; _define_property({}, foo(), regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/MemberFunctionDeclaration1_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/MemberFunctionDeclaration1_es6_es5.1.normal.js index ccf3f018de0c..6e0c0795991b 100644 --- a/crates/swc/tests/tsc-references/MemberFunctionDeclaration1_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/MemberFunctionDeclaration1_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/MemberFunctionDeclaration1_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/MemberFunctionDeclaration1_es6_es5.2.minified.js index d2ce05e8a0a4..cd4e7e94ca1d 100644 --- a/crates/swc/tests/tsc-references/MemberFunctionDeclaration1_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/MemberFunctionDeclaration1_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/MemberFunctionDeclaration2_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/MemberFunctionDeclaration2_es6_es5.1.normal.js index ccf3f018de0c..6e0c0795991b 100644 --- a/crates/swc/tests/tsc-references/MemberFunctionDeclaration2_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/MemberFunctionDeclaration2_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/MemberFunctionDeclaration2_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/MemberFunctionDeclaration2_es6_es5.2.minified.js index d2ce05e8a0a4..cd4e7e94ca1d 100644 --- a/crates/swc/tests/tsc-references/MemberFunctionDeclaration2_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/MemberFunctionDeclaration2_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6_es5.1.normal.js index a18a3aa3d53a..e3d3453423a9 100644 --- a/crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6_es5.2.minified.js index dccd201841e3..ea6e875362a4 100644 --- a/crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/MemberFunctionDeclaration3_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/MemberFunctionDeclaration7_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/MemberFunctionDeclaration7_es6_es5.1.normal.js index ccf3f018de0c..6e0c0795991b 100644 --- a/crates/swc/tests/tsc-references/MemberFunctionDeclaration7_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/MemberFunctionDeclaration7_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/MemberFunctionDeclaration7_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/MemberFunctionDeclaration7_es6_es5.2.minified.js index d2ce05e8a0a4..cd4e7e94ca1d 100644 --- a/crates/swc/tests/tsc-references/MemberFunctionDeclaration7_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/MemberFunctionDeclaration7_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot_es5.1.normal.js b/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot_es5.1.normal.js index e5d6d827a382..03703aaef742 100644 --- a/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: module.ts var X; (function(X1) { diff --git a/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot_es5.2.minified.js index 65bc4c899378..0d70cf4348cf 100644 --- a/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleAndClassWithSameNameAndCommonRoot_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(X1) { var Y, Point; (Point = (Y = X1.Y || (X1.Y = {})).Point || (Y.Point = {})).Origin = new Point(0, 0); diff --git a/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot_es5.1.normal.js b/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot_es5.1.normal.js index d5562eff9aba..347ab716c79f 100644 --- a/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var enumdule; (function(enumdule1) { var Point = function Point(x1, y1) { diff --git a/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot_es5.2.minified.js index d50981c907d5..cfd4fac3ddf8 100644 --- a/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleAndEnumWithSameNameAndCommonRoot_es5.2.minified.js @@ -1,5 +1,5 @@ var enumdule; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(enumdule1) { var Point = function(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses_es5.1.normal.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses_es5.1.normal.js index 19267558d96c..e8a7649176b9 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var _$A = function _$A() { diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses_es5.2.minified.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses_es5.2.minified.js index 3ef2816fb6f9..d10023d99a68 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedClasses_es5.2.minified.js @@ -1,5 +1,5 @@ var A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var _$A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias_es5.1.normal.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias_es5.1.normal.js index d4d84948db94..9983869b7dc3 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B; (function(B1) { var Line = function Line(start, end) { diff --git a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias_es5.2.minified.js b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias_es5.2.minified.js index ac3f5bfe0284..d176b1a018af 100644 --- a/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ModuleWithExportedAndNonExportedImportAlias_es5.2.minified.js @@ -1,5 +1,5 @@ var B, Geometry; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(B1) { var Line = function(start, end) { "use strict"; diff --git a/crates/swc/tests/tsc-references/Protected3_es5.1.normal.js b/crates/swc/tests/tsc-references/Protected3_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/Protected3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/Protected3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/Protected3_es5.2.minified.js b/crates/swc/tests/tsc-references/Protected3_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/Protected3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/Protected3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/Protected5_es5.1.normal.js b/crates/swc/tests/tsc-references/Protected5_es5.1.normal.js index 8293356d04c0..ac61b711e512 100644 --- a/crates/swc/tests/tsc-references/Protected5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/Protected5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/Protected5_es5.2.minified.js b/crates/swc/tests/tsc-references/Protected5_es5.2.minified.js index 8cf69d12f86f..1a40e8c1b476 100644 --- a/crates/swc/tests/tsc-references/Protected5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/Protected5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/Protected9_es5.1.normal.js b/crates/swc/tests/tsc-references/Protected9_es5.1.normal.js index da1250bee713..54a348e126e8 100644 --- a/crates/swc/tests/tsc-references/Protected9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/Protected9_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C(p) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/Protected9_es5.2.minified.js b/crates/swc/tests/tsc-references/Protected9_es5.2.minified.js index 6412641e54ae..8ecb781f8a27 100644 --- a/crates/swc/tests/tsc-references/Protected9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/Protected9_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(p) { "use strict"; _class_call_check(this, C), this.p = p; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName_es5.1.normal.js index 72afb9b7b59e..fc73efa52773 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName_es5.2.minified.js index d525400627df..0ce7c5fe3d0a 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName_es5.2.minified.js @@ -1,5 +1,5 @@ var A, X; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName_es5.1.normal.js index 3eeb2725e742..01cc266f4ae2 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@filename: part1.ts var A; (function(A1) { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName_es5.2.minified.js index 028f6c291fd3..845589a66899 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { (A1.Utils || (A1.Utils = {})).mirror = function(p) { return { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName_es5.1.normal.js index e299f38a314d..f15df765e34c 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName_es5.2.minified.js index 0220e75351fc..3079e998604d 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName_es5.2.minified.js @@ -1,5 +1,5 @@ var A, X; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName_es5.1.normal.js index 214300349160..2c3594ec41f9 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@filename: part1.ts export var A; (function(A1) { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName_es5.2.minified.js index 6cd30eff0211..cfe27ca1b35b 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedLocalVarsOfTheSameName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var A; !function(A1) { (A1.Utils || (A1.Utils = {})).mirror = function(p) { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName_es5.1.normal.js index 56b75fb02594..302001f16e39 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var B1; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName_es5.2.minified.js index abf64bcf7064..9644756b7f12 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesThatMergeEachWithExportedModulesOfTheSameName_es5.2.minified.js @@ -1,5 +1,5 @@ var A, X; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var x; (A1.B || (A1.B = {})).x = x; diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot_es5.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot_es5.1.normal.js index ae33016ff8aa..ac55910d0f45 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@filename: part1.ts var Root; (function(Root1) { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot_es5.2.minified.js index 2936b673e1d4..13f9a5fd39b4 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndDifferentCommonRoot_es5.2.minified.js @@ -1,5 +1,5 @@ var Root, otherRoot; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(Root1) { var A; ((A = Root1.A || (Root1.A = {})).Utils || (A.Utils = {})).mirror = function(p) { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot_es5.1.normal.js b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot_es5.1.normal.js index ee25cb0cfd05..a9029d886996 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@filename: part1.ts var A; (function(A1) { diff --git a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot_es5.2.minified.js b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot_es5.2.minified.js index aeacd11bcb08..10c09b8ed67c 100644 --- a/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/TwoInternalModulesWithTheSameNameAndSameCommonRoot_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { (A1.Utils || (A1.Utils = {})).mirror = function(p) { return { diff --git a/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion_es5.1.normal.js b/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion_es5.1.normal.js index 487572740b03..5d5ee101f77f 100644 --- a/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var Message = function Message() { "use strict"; _class_call_check(this, Message); diff --git a/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion_es5.2.minified.js b/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion_es5.2.minified.js index 2f1142c491e7..b58f918544e6 100644 --- a/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/TypeGuardWithArrayUnion_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var Message = function() { "use strict"; _class_call_check(this, Message); diff --git a/crates/swc/tests/tsc-references/YieldExpression11_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/YieldExpression11_es6_es5.1.normal.js index f9639d53f42e..db58eefc6e2d 100644 --- a/crates/swc/tests/tsc-references/YieldExpression11_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/YieldExpression11_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/YieldExpression11_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/YieldExpression11_es6_es5.2.minified.js index 20273e141c29..691aad9d4d38 100644 --- a/crates/swc/tests/tsc-references/YieldExpression11_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/YieldExpression11_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/abstractProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/abstractProperty_es5.1.normal.js index e5d7e3aab191..a14e0fbb5bb2 100644 --- a/crates/swc/tests/tsc-references/abstractProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/abstractProperty_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es2015,esnext // @useDefineForClassFields: true var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/abstractProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/abstractProperty_es5.2.minified.js index ae4e8d2d4e74..2253f13f494c 100644 --- a/crates/swc/tests/tsc-references/abstractProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/abstractProperty_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/accessorWithES3_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorWithES3_es5.1.normal.js index 128d95852296..4213618a558a 100644 --- a/crates/swc/tests/tsc-references/accessorWithES3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorWithES3_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: ES3 // error to use accessors in ES3 mode var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/accessorWithES3_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorWithES3_es5.2.minified.js index 4dab5acc7175..97d8cd139588 100644 --- a/crates/swc/tests/tsc-references/accessorWithES3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorWithES3_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/accessorWithES5_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorWithES5_es5.1.normal.js index 5470f953ce75..cb980a7a4d27 100644 --- a/crates/swc/tests/tsc-references/accessorWithES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorWithES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: ES5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/accessorWithES5_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorWithES5_es5.2.minified.js index 4dab5acc7175..97d8cd139588 100644 --- a/crates/swc/tests/tsc-references/accessorWithES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorWithES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers_es5.1.normal.js index 59eee3ee2278..ff4c6eae65fd 100644 --- a/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: ES5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers_es5.2.minified.js index 80fd1736ca08..113eed1735d8 100644 --- a/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorWithMismatchedAccessibilityModifiers_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped_es5.1.normal.js index 0f110f2a9a84..ff1ba1d9f78f 100644 --- a/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // accessors are not contextually typed var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped_es5.2.minified.js index 12694c3f6977..3ecbcc89416d 100644 --- a/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsAreNotContextuallyTyped_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var c, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/accessorsOverrideMethod_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorsOverrideMethod_es5.1.normal.js index dbe515d4c82d..d60a780b82cb 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideMethod_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideMethod_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext // @useDefineForClassFields: true var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/accessorsOverrideMethod_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorsOverrideMethod_es5.2.minified.js index 7dd2bc0573c8..ec86824452e9 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideMethod_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideMethod_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty2_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty2_es5.1.normal.js index e868c3f49244..0f72b1780e2f 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty2_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext // @useDefineForClassFields: true var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty2_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty2_es5.2.minified.js index 79f5db9e1d11..0af3816d45b4 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty2_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = function() { "use strict"; _class_call_check(this, Base), this.x = 1; diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty3_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty3_es5.1.normal.js index 7500d4776c8e..b41dfdc53420 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Lion = /*#__PURE__*/ function(Animal) { "use strict"; _inherits(Lion, Animal); diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty3_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty3_es5.2.minified.js index ff63444877ef..6ef48bd4fafa 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Lion = function(Animal) { "use strict"; _inherits(Lion, Animal); diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty4_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty4_es5.1.normal.js index 4bd1d84994d1..2ce36656bfaa 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty4_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Lion = /*#__PURE__*/ function(Animal) { "use strict"; _inherits(Lion, Animal); diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty4_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty4_es5.2.minified.js index 6a86454af154..f6fa1c82646d 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty4_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Lion = function(Animal) { "use strict"; _inherits(Lion, Animal); diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty5_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty5_es5.1.normal.js index 94fa19b2f7ce..860a8ac7a6a8 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty5_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty5_es5.2.minified.js index 8c7f39c68bb9..0486d0fe742e 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty6_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty6_es5.1.normal.js index b4ed91583807..f55b12267c10 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext // @useDefineForClassFields: false var A = function A() { diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty6_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty6_es5.2.minified.js index b938944fadba..c884cca6c1d2 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var A = function() { "use strict"; _class_call_check(this, A), this.p = "yep"; diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty_es5.1.normal.js index 7f144f1c219b..f7db225c9f4c 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext // @useDefineForClassFields: true var A = function A() { diff --git a/crates/swc/tests/tsc-references/accessorsOverrideProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/accessorsOverrideProperty_es5.2.minified.js index b938944fadba..c884cca6c1d2 100644 --- a/crates/swc/tests/tsc-references/accessorsOverrideProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/accessorsOverrideProperty_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var A = function() { "use strict"; _class_call_check(this, A), this.p = "yep"; diff --git a/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType_es5.1.normal.js b/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType_es5.1.normal.js index 3ffa6ee3d2b1..a7b73663afff 100644 --- a/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo() {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType_es5.2.minified.js b/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType_es5.2.minified.js index 4ee43eb88a0a..506acf70aa60 100644 --- a/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/additionOperatorWithAnyAndEveryType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, M, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands_es5.1.normal.js b/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands_es5.1.normal.js index dd27e955ffe7..30adf1abbf17 100644 --- a/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo() {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands_es5.2.minified.js b/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands_es5.2.minified.js index 3ba939c6dcab..a30ca27606b4 100644 --- a/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/additionOperatorWithInvalidOperands_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, M, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/ambient_es5.1.normal.js b/crates/swc/tests/tsc-references/ambient_es5.1.normal.js index a9fb0b20ef7d..989603fbfb36 100644 --- a/crates/swc/tests/tsc-references/ambient_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ambient_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /a.ts export var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/ambient_es5.2.minified.js b/crates/swc/tests/tsc-references/ambient_es5.2.minified.js index 7d6272c8396c..eed7ca896ebd 100644 --- a/crates/swc/tests/tsc-references/ambient_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ambient_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression_es5.1.normal.js index f7a67d1c9dc9..78e73f2ba1d7 100644 --- a/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: amd // @Filename: foo_0.ts export var C1 = function C1() { diff --git a/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression_es5.2.minified.js index 802c0e1ac716..e9fa13d3abb9 100644 --- a/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/amdImportNotAsPrimaryExpression_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var i, z, C1 = function() { "use strict"; _class_call_check(this, C1), this.m1 = 42; diff --git a/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow_es5.1.normal.js b/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow_es5.1.normal.js index 68ef209df0dc..f712c586ddea 100644 --- a/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow_es5.2.minified.js b/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow_es5.2.minified.js index 4b3c0c2d1e57..bd95192a5b2f 100644 --- a/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/annotatedThisPropertyInitializerDoesntNarrow_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/anonymousDefaultExportsAmd_es5.1.normal.js b/crates/swc/tests/tsc-references/anonymousDefaultExportsAmd_es5.1.normal.js index 82f8c45ce1d3..d8844cdd308d 100644 --- a/crates/swc/tests/tsc-references/anonymousDefaultExportsAmd_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/anonymousDefaultExportsAmd_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function _default() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/anonymousDefaultExportsAmd_es5.2.minified.js b/crates/swc/tests/tsc-references/anonymousDefaultExportsAmd_es5.2.minified.js index 25a38d50d297..ed1ce7393db5 100644 --- a/crates/swc/tests/tsc-references/anonymousDefaultExportsAmd_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/anonymousDefaultExportsAmd_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/anonymousDefaultExportsCommonjs_es5.1.normal.js b/crates/swc/tests/tsc-references/anonymousDefaultExportsCommonjs_es5.1.normal.js index 82f8c45ce1d3..d8844cdd308d 100644 --- a/crates/swc/tests/tsc-references/anonymousDefaultExportsCommonjs_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/anonymousDefaultExportsCommonjs_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function _default() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/anonymousDefaultExportsCommonjs_es5.2.minified.js b/crates/swc/tests/tsc-references/anonymousDefaultExportsCommonjs_es5.2.minified.js index 25a38d50d297..ed1ce7393db5 100644 --- a/crates/swc/tests/tsc-references/anonymousDefaultExportsCommonjs_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/anonymousDefaultExportsCommonjs_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/anonymousDefaultExportsSystem_es5.1.normal.js b/crates/swc/tests/tsc-references/anonymousDefaultExportsSystem_es5.1.normal.js index 82f8c45ce1d3..d8844cdd308d 100644 --- a/crates/swc/tests/tsc-references/anonymousDefaultExportsSystem_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/anonymousDefaultExportsSystem_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function _default() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/anonymousDefaultExportsSystem_es5.2.minified.js b/crates/swc/tests/tsc-references/anonymousDefaultExportsSystem_es5.2.minified.js index 25a38d50d297..ed1ce7393db5 100644 --- a/crates/swc/tests/tsc-references/anonymousDefaultExportsSystem_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/anonymousDefaultExportsSystem_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/anonymousDefaultExportsUmd_es5.1.normal.js b/crates/swc/tests/tsc-references/anonymousDefaultExportsUmd_es5.1.normal.js index 82f8c45ce1d3..d8844cdd308d 100644 --- a/crates/swc/tests/tsc-references/anonymousDefaultExportsUmd_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/anonymousDefaultExportsUmd_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function _default() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/anonymousDefaultExportsUmd_es5.2.minified.js b/crates/swc/tests/tsc-references/anonymousDefaultExportsUmd_es5.2.minified.js index 25a38d50d297..ed1ce7393db5 100644 --- a/crates/swc/tests/tsc-references/anonymousDefaultExportsUmd_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/anonymousDefaultExportsUmd_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/anyAsGenericFunctionCall_es5.1.normal.js b/crates/swc/tests/tsc-references/anyAsGenericFunctionCall_es5.1.normal.js index ce87f3b6899f..975f3151aae0 100644 --- a/crates/swc/tests/tsc-references/anyAsGenericFunctionCall_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/anyAsGenericFunctionCall_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // any is considered an untyped function call // can be called except with type arguments which is an error var x; diff --git a/crates/swc/tests/tsc-references/anyAsGenericFunctionCall_es5.2.minified.js b/crates/swc/tests/tsc-references/anyAsGenericFunctionCall_es5.2.minified.js index 5beb62669f2e..9fea3f991ecf 100644 --- a/crates/swc/tests/tsc-references/anyAsGenericFunctionCall_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/anyAsGenericFunctionCall_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; x(), x("hello"); var x, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/anyAssignabilityInInheritance_es5.1.normal.js b/crates/swc/tests/tsc-references/anyAssignabilityInInheritance_es5.1.normal.js index 0ef4b5b4cea7..6a2d93bf0890 100644 --- a/crates/swc/tests/tsc-references/anyAssignabilityInInheritance_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/anyAssignabilityInInheritance_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/anyAssignabilityInInheritance_es5.2.minified.js index 8d7e5707f1ce..8379f8430c3f 100644 --- a/crates/swc/tests/tsc-references/anyAssignabilityInInheritance_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/anyAssignabilityInInheritance_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; foo2(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a), foo3(a); var a, E, A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/anyAssignableToEveryType2_es5.1.normal.js b/crates/swc/tests/tsc-references/anyAssignableToEveryType2_es5.1.normal.js index 696c9b20a983..fbf6057462c6 100644 --- a/crates/swc/tests/tsc-references/anyAssignableToEveryType2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/anyAssignableToEveryType2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/anyAssignableToEveryType2_es5.2.minified.js b/crates/swc/tests/tsc-references/anyAssignableToEveryType2_es5.2.minified.js index 828aa3fecff3..25f75d1a9316 100644 --- a/crates/swc/tests/tsc-references/anyAssignableToEveryType2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/anyAssignableToEveryType2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/anyAssignableToEveryType_es5.1.normal.js b/crates/swc/tests/tsc-references/anyAssignableToEveryType_es5.1.normal.js index 6d86400e63d0..7a99b219d415 100644 --- a/crates/swc/tests/tsc-references/anyAssignableToEveryType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/anyAssignableToEveryType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var a; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/anyAssignableToEveryType_es5.2.minified.js b/crates/swc/tests/tsc-references/anyAssignableToEveryType_es5.2.minified.js index a0d5a90d7c15..7fcb8e9fbfe5 100644 --- a/crates/swc/tests/tsc-references/anyAssignableToEveryType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/anyAssignableToEveryType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/apparentTypeSubtyping_es5.1.normal.js b/crates/swc/tests/tsc-references/apparentTypeSubtyping_es5.1.normal.js index 3d0ca87eb4d2..7fc0a37b9078 100644 --- a/crates/swc/tests/tsc-references/apparentTypeSubtyping_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/apparentTypeSubtyping_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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: var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/apparentTypeSubtyping_es5.2.minified.js b/crates/swc/tests/tsc-references/apparentTypeSubtyping_es5.2.minified.js index efa9720d149e..a71f5dba65a3 100644 --- a/crates/swc/tests/tsc-references/apparentTypeSubtyping_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/apparentTypeSubtyping_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/apparentTypeSupertype_es5.1.normal.js b/crates/swc/tests/tsc-references/apparentTypeSupertype_es5.1.normal.js index 399ee131d652..9f2c5a664784 100644 --- a/crates/swc/tests/tsc-references/apparentTypeSupertype_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/apparentTypeSupertype_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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: var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/apparentTypeSupertype_es5.2.minified.js b/crates/swc/tests/tsc-references/apparentTypeSupertype_es5.2.minified.js index 4c8da75632d8..af223a1d07d8 100644 --- a/crates/swc/tests/tsc-references/apparentTypeSupertype_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/apparentTypeSupertype_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/argumentExpressionContextualTyping_es5.1.normal.js b/crates/swc/tests/tsc-references/argumentExpressionContextualTyping_es5.1.normal.js index 1c3bd8808d15..f27c8c27c65e 100644 --- a/crates/swc/tests/tsc-references/argumentExpressionContextualTyping_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/argumentExpressionContextualTyping_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // In a typed function call, argument expressions are contextually typed by their corresponding parameter types. function foo(param) { var _x = _sliced_to_array(param.x, 2), a = _x[0], b = _x[1], _y = param.y, c = _y.c, d = _y.d, e = _y.e; diff --git a/crates/swc/tests/tsc-references/argumentExpressionContextualTyping_es5.2.minified.js b/crates/swc/tests/tsc-references/argumentExpressionContextualTyping_es5.2.minified.js index b6710b578f0a..a44fb34f9168 100644 --- a/crates/swc/tests/tsc-references/argumentExpressionContextualTyping_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/argumentExpressionContextualTyping_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function foo(param) { var _x = _sliced_to_array(param.x, 2), _y = (_x[0], _x[1], param.y); _y.c, _y.d, _y.e; diff --git a/crates/swc/tests/tsc-references/arityAndOrderCompatibility01_es5.1.normal.js b/crates/swc/tests/tsc-references/arityAndOrderCompatibility01_es5.1.normal.js index 0c32f5be3772..92a52188485c 100644 --- a/crates/swc/tests/tsc-references/arityAndOrderCompatibility01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arityAndOrderCompatibility01_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var x; var y; var z; diff --git a/crates/swc/tests/tsc-references/arityAndOrderCompatibility01_es5.2.minified.js b/crates/swc/tests/tsc-references/arityAndOrderCompatibility01_es5.2.minified.js index 439db5fa023b..c6fd2ed56473 100644 --- a/crates/swc/tests/tsc-references/arityAndOrderCompatibility01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arityAndOrderCompatibility01_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny_es5.1.normal.js index 0866daef019d..d2855605ffcd 100644 --- a/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var a; var x; var ref; diff --git a/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny_es5.2.minified.js index fae9a3a8d61d..5315796a72d5 100644 --- a/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayAssignmentPatternWithAny_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; _sliced_to_array(a, 1)[0]; diff --git a/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping_es5.1.normal.js index 086071fa164c..1bcf3cc91f51 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping_es5.2.minified.js index 27435ab0aa3d..11a9c58ee341 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiteralExpressionContextualTyping_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var tup = [ 1, 2, diff --git a/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable_es5.1.normal.js index bf4c3f6d88fd..5fa9e53e4bd1 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // @downlevelIteration: true function f0() { var a = [ diff --git a/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable_es5.2.minified.js index a2fc02b2dc72..04667cff63bd 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiteralSpreadES5iterable_es5.2.minified.js @@ -1 +1 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; diff --git a/crates/swc/tests/tsc-references/arrayLiteralSpread_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiteralSpread_es5.1.normal.js index 71f52f1742c6..891dd285d1d2 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralSpread_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiteralSpread_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function f0() { var a = [ 1, diff --git a/crates/swc/tests/tsc-references/arrayLiteralSpread_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiteralSpread_es5.2.minified.js index a2fc02b2dc72..04667cff63bd 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralSpread_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiteralSpread_es5.2.minified.js @@ -1 +1 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; diff --git a/crates/swc/tests/tsc-references/arrayLiterals2ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiterals2ES5_es5.1.normal.js index c936369c1148..e76d66b36a94 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals2ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiterals2ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // ElementList: ( Modified ) // Elisionopt AssignmentExpression // Elisionopt SpreadElement diff --git a/crates/swc/tests/tsc-references/arrayLiterals2ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiterals2ES5_es5.2.minified.js index 6cb9973d88d4..2327e30abc76 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals2ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiterals2ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var a0 = [ , , diff --git a/crates/swc/tests/tsc-references/arrayLiterals2ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiterals2ES6_es5.1.normal.js index 70471f5ba789..746b15f1f7e1 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals2ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiterals2ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // @target:es6 // ElementList: ( Modified ) // Elisionopt AssignmentExpression diff --git a/crates/swc/tests/tsc-references/arrayLiterals2ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiterals2ES6_es5.2.minified.js index 597bb1233c09..d05c1d7c8fd2 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals2ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiterals2ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var a0 = [ , , diff --git a/crates/swc/tests/tsc-references/arrayLiterals3_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiterals3_es5.1.normal.js index 3ae7291551e9..d7fa6b2a6730 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiterals3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // Each element expression in a non-empty array literal is processed as follows: // - If the array literal contains no spread elements, and if the array literal is contextually typed (section 4.19) // by a type T and T has a property with the numeric name N, where N is the index of the element expression in the array literal, diff --git a/crates/swc/tests/tsc-references/arrayLiterals3_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiterals3_es5.2.minified.js index d4097d37c7bf..31bc54c094fa 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiterals3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var ref = [ 1, 2, diff --git a/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics_es5.1.normal.js index f7d71dd6375d..3942cd15e0fb 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics_es5.2.minified.js index d80d9845701f..000287af4fcf 100644 --- a/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiteralsWithRecursiveGenerics_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var List = function() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/arrayLiterals_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayLiterals_es5.1.normal.js index 3e8bda746ed5..e4270ae516e4 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayLiterals_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Empty array literal with no contextual type has type Undefined[] var arr1 = [ [], diff --git a/crates/swc/tests/tsc-references/arrayLiterals_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayLiterals_es5.2.minified.js index e108e00e3c6c..2386f9fbcbcf 100644 --- a/crates/swc/tests/tsc-references/arrayLiterals_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayLiterals_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/arrayOfFunctionTypes3_es5.1.normal.js b/crates/swc/tests/tsc-references/arrayOfFunctionTypes3_es5.1.normal.js index 03ec10f1b683..be5d78088c60 100644 --- a/crates/swc/tests/tsc-references/arrayOfFunctionTypes3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrayOfFunctionTypes3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // valid uses of arrays of function types var x = [ function() { diff --git a/crates/swc/tests/tsc-references/arrayOfFunctionTypes3_es5.2.minified.js b/crates/swc/tests/tsc-references/arrayOfFunctionTypes3_es5.2.minified.js index a5382d38c727..8d521ef2ae75 100644 --- a/crates/swc/tests/tsc-references/arrayOfFunctionTypes3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrayOfFunctionTypes3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; [ function() { return 1; diff --git a/crates/swc/tests/tsc-references/arraySpreadImportHelpers_es5.1.normal.js b/crates/swc/tests/tsc-references/arraySpreadImportHelpers_es5.1.normal.js index ca6a62fb88d2..b74c2bcee420 100644 --- a/crates/swc/tests/tsc-references/arraySpreadImportHelpers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arraySpreadImportHelpers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var k = [ 1, , diff --git a/crates/swc/tests/tsc-references/arraySpreadImportHelpers_es5.2.minified.js b/crates/swc/tests/tsc-references/arraySpreadImportHelpers_es5.2.minified.js index 7752ecdd2db6..9c6d172bf635 100644 --- a/crates/swc/tests/tsc-references/arraySpreadImportHelpers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arraySpreadImportHelpers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; [ 3 ].concat(_to_consumable_array([ diff --git a/crates/swc/tests/tsc-references/arrowFunctionExpressions_es5.1.normal.js b/crates/swc/tests/tsc-references/arrowFunctionExpressions_es5.1.normal.js index 2222799368ec..42cf9cfc87e4 100644 --- a/crates/swc/tests/tsc-references/arrowFunctionExpressions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/arrowFunctionExpressions_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +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"; // ArrowFormalParameters => AssignmentExpression is equivalent to ArrowFormalParameters => { return AssignmentExpression; } var a = function(p) { return p.length; diff --git a/crates/swc/tests/tsc-references/arrowFunctionExpressions_es5.2.minified.js b/crates/swc/tests/tsc-references/arrowFunctionExpressions_es5.2.minified.js index 9c00af6d13f9..01c6664ebf73 100644 --- a/crates/swc/tests/tsc-references/arrowFunctionExpressions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/arrowFunctionExpressions_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +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"; var MyClass = function() { "use strict"; function MyClass() { diff --git a/crates/swc/tests/tsc-references/asOperator3_es5.1.normal.js b/crates/swc/tests/tsc-references/asOperator3_es5.1.normal.js index 3c5dffc123dd..db65a0706f97 100644 --- a/crates/swc/tests/tsc-references/asOperator3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asOperator3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/asOperator3_es5.2.minified.js b/crates/swc/tests/tsc-references/asOperator3_es5.2.minified.js index 6ce4a3b48caa..55ec7868eb3d 100644 --- a/crates/swc/tests/tsc-references/asOperator3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asOperator3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/asOperatorASI_es5.1.normal.js b/crates/swc/tests/tsc-references/asOperatorASI_es5.1.normal.js index a0e5b2b126bc..51b88bf78cb3 100644 --- a/crates/swc/tests/tsc-references/asOperatorASI_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asOperatorASI_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello world" diff --git a/crates/swc/tests/tsc-references/asOperatorASI_es5.2.minified.js b/crates/swc/tests/tsc-references/asOperatorASI_es5.2.minified.js index a48075af5bd9..2329903e9a88 100644 --- a/crates/swc/tests/tsc-references/asOperatorASI_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asOperatorASI_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello world" diff --git a/crates/swc/tests/tsc-references/assignAnyToEveryType_es5.1.normal.js b/crates/swc/tests/tsc-references/assignAnyToEveryType_es5.1.normal.js index 38072b3da5f8..64936172726b 100644 --- a/crates/swc/tests/tsc-references/assignAnyToEveryType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignAnyToEveryType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // all of these are valid var x; var a = x; diff --git a/crates/swc/tests/tsc-references/assignAnyToEveryType_es5.2.minified.js b/crates/swc/tests/tsc-references/assignAnyToEveryType_es5.2.minified.js index 7d5d22a6cc46..c5bbc2c8090b 100644 --- a/crates/swc/tests/tsc-references/assignAnyToEveryType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignAnyToEveryType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), E.A; diff --git a/crates/swc/tests/tsc-references/assignEveryTypeToAny_es5.1.normal.js b/crates/swc/tests/tsc-references/assignEveryTypeToAny_es5.1.normal.js index 988ab1cf3207..e4e380a84070 100644 --- a/crates/swc/tests/tsc-references/assignEveryTypeToAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignEveryTypeToAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // all of these are valid var x; x = 1; diff --git a/crates/swc/tests/tsc-references/assignEveryTypeToAny_es5.2.minified.js b/crates/swc/tests/tsc-references/assignEveryTypeToAny_es5.2.minified.js index f15974473e5d..1dc882bfeeb1 100644 --- a/crates/swc/tests/tsc-references/assignEveryTypeToAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignEveryTypeToAny_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (function(E) { E[E.A = 0] = "A"; })(E || (E = {})), E.A, E.A; diff --git a/crates/swc/tests/tsc-references/assignParameterPropertyToPropertyDeclarationESNext_es5.1.normal.js b/crates/swc/tests/tsc-references/assignParameterPropertyToPropertyDeclarationESNext_es5.1.normal.js index 6193d5e32591..7734cf24189c 100644 --- a/crates/swc/tests/tsc-references/assignParameterPropertyToPropertyDeclarationESNext_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignParameterPropertyToPropertyDeclarationESNext_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @useDefineForClassFields: true // @target: esnext var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/assignParameterPropertyToPropertyDeclarationESNext_es5.2.minified.js b/crates/swc/tests/tsc-references/assignParameterPropertyToPropertyDeclarationESNext_es5.2.minified.js index d8016242a941..1840658d1f02 100644 --- a/crates/swc/tests/tsc-references/assignParameterPropertyToPropertyDeclarationESNext_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignParameterPropertyToPropertyDeclarationESNext_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; function C(foo) { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3_es5.1.normal.js index 188f820deefd..d99453afd922 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // these are all permitted with the current rules, since we do not do contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4_es5.1.normal.js index f60658af2e18..0ffdfc47b553 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // These are mostly permitted with the current loose rules. All ok unless otherwise noted. var Errors; (function(Errors) { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4_es5.2.minified.js index 6039bdced80b..5dae3c31cba7 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures4_es5.2.minified.js @@ -1,7 +1,7 @@ var Errors; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(Errors) { var WithNonGenericSignaturesInBaseType, WithGenericSignaturesInBaseType, Base1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5_es5.1.normal.js index 4528b639d9f8..b9d960dcbfef 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking assignment compat for function types. No errors in this file var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6_es5.1.normal.js index d8aaa97c4841..6b09b46e1f5e 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking assignment compatibility relations for function types. All valid var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6_es5.2.minified.js index c947fc295840..a47f742fc382 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithCallSignatures6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var x, b, b2, b3, b4, b5, b11, b16, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3_es5.1.normal.js index e77812d5065e..9bc57a7c590f 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking assignment compatibility relations for function types. All of these are valid. var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4_es5.1.normal.js index 310557ce4590..9a503f49c9bc 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking assignment compatibility relations for function types. var Errors; (function(Errors) { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4_es5.2.minified.js index 6039bdced80b..5dae3c31cba7 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures4_es5.2.minified.js @@ -1,7 +1,7 @@ var Errors; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(Errors) { var WithNonGenericSignaturesInBaseType, WithGenericSignaturesInBaseType, Base1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5_es5.1.normal.js index 8be5b9d0101a..9e8360ce0551 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking assignment compat for function types. All valid var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6_es5.1.normal.js index 3abfb1d9bd43..6041b6130ca6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking assignment compatibility relations for function types. All valid. var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6_es5.2.minified.js index c947fc295840..a47f742fc382 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithConstructSignatures6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var x, b, b2, b3, b4, b5, b11, b16, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters_es5.1.normal.js index cda4e4aaa900..d3fab0c9089d 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // call signatures in derived types must have the same or fewer optional parameters as the target for assignment var ClassTypeParam; (function(ClassTypeParam) { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters_es5.2.minified.js index b7db5e8a827a..a140d370b212 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithGenericCallSignaturesWithOptionalParameters_es5.2.minified.js @@ -1,5 +1,5 @@ var ClassTypeParam, GenericSignaturesInvalid, GenericSignaturesValid; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(ClassTypeParam) { var Base = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3_es5.1.normal.js index ab48e63211c3..54d1d031d345 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3_es5.2.minified.js index 1240dce4c104..4ea473c56a1b 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer_es5.1.normal.js index 0d0ff9757944..9fb538dd823e 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer_es5.2.minified.js index c913fc023737..5cb2fe0c359a 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithNumericIndexer_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2_es5.1.normal.js index 5b71e5db0956..4c1f64a907b3 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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 var S = function S() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2_es5.2.minified.js index 01b9f3b1b2f6..b231ee7b5796 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var S = function() { "use strict"; _class_call_check(this, S); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3_es5.1.normal.js index 5b71e5db0956..4c1f64a907b3 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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 var S = function S() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3_es5.2.minified.js index 01b9f3b1b2f6..b231ee7b5796 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var S = function() { "use strict"; _class_call_check(this, S); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4_es5.1.normal.js index 34e4af9ea622..437b76532ca5 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // members N and M of types S and T have the same name, same accessibility, same optionality, and N is not assignable M var OnlyDerived; (function(OnlyDerived) { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4_es5.2.minified.js index ba18f4bbd695..b26d0d8899a5 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers4_es5.2.minified.js @@ -1,7 +1,7 @@ var OnlyDerived, WithBase; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(OnlyDerived) { var Base1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5_es5.1.normal.js index 35390771f87a..c0baa38b3b65 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility_es5.1.normal.js index cab79b910a23..3dbbd0e89dfa 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // members N and M of types S and T have the same name, same accessibility, same optionality, and N is assignable M var TargetIsPublic; (function(TargetIsPublic) { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility_es5.2.minified.js index 754d81d4f3d7..05dd677e8fc1 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersAccessibility_es5.2.minified.js @@ -1,5 +1,5 @@ var TargetIsPublic; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(TargetIsPublic) { var a, b, i, d, e, Base = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames_es5.1.normal.js index 478faae78fc1..36542c7770d6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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 var S = function S() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames_es5.2.minified.js index 01b9f3b1b2f6..b231ee7b5796 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersNumericNames_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var S = function() { "use strict"; _class_call_check(this, S); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2_es5.1.normal.js index 0a85fc0403e5..434a32801751 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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 var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2_es5.2.minified.js index 39127bbe5d1e..06ee330d3f1f 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var TargetHasOptional, SourceHasOptional, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality_es5.1.normal.js index 301b94715d9a..d51036e3d665 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Derived member is not optional but base member is, should be ok var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality_es5.2.minified.js index bc5d3b32ec9e..2e5e03141078 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersOptionality_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var TargetHasOptional, SourceHasOptional, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames_es5.1.normal.js index c6fa2b48a0e8..6fa329ee9c1a 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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 var JustStrings; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames_es5.2.minified.js index 3e71a6daa205..75c7507d5f99 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembersStringNumericNames_es5.2.minified.js @@ -1,5 +1,5 @@ var JustStrings, NumbersAndStrings; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(JustStrings) { var S = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers_es5.1.normal.js index fe011407e978..ac130e1778cd 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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 var SimpleTypes; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers_es5.2.minified.js index 6c9fe461c7d2..026eaba70ca6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithObjectMembers_es5.2.minified.js @@ -1,5 +1,5 @@ var SimpleTypes, ObjectTypes; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(SimpleTypes) { var S = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3_es5.1.normal.js index 6bbffaa23e07..b42565597190 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var a; var b1; a = b1; // error diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3_es5.2.minified.js index ed7ee8db7f9f..33ff22d739dc 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer3_es5.2.minified.js @@ -1,5 +1,5 @@ var Generics; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(Generics) { var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer_es5.1.normal.js index a1070408b414..179c7d65e7bd 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer_es5.2.minified.js index ebf66a5c5807..0b4428f1efd6 100644 --- a/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentCompatWithStringIndexer_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers_es5.1.normal.js b/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers_es5.1.normal.js index 8c82d7ad6a37..d78c4daa072d 100644 --- a/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x; x = 3; // OK x = 3; // OK diff --git a/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers_es5.2.minified.js b/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers_es5.2.minified.js index fbb0206fac53..d778914562d3 100644 --- a/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignmentToParenthesizedIdentifiers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M1) { var y; M1.y = y; diff --git a/crates/swc/tests/tsc-references/assignments_es5.1.normal.js b/crates/swc/tests/tsc-references/assignments_es5.1.normal.js index 1d162c3becef..e5ad8fc7ae68 100644 --- a/crates/swc/tests/tsc-references/assignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/assignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; M = null; // Error var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/assignments_es5.2.minified.js b/crates/swc/tests/tsc-references/assignments_es5.2.minified.js index 7297f55eebd5..49a1dcbf60a4 100644 --- a/crates/swc/tests/tsc-references/assignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/assignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; M = null; var E, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es2015.1.normal.js index 0cf52230d965..b3395ecf3db2 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es5.1.normal.js index 27050acd7a21..433de1265061 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f() { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es2015.1.normal.js index 0cf52230d965..b3395ecf3db2 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es5.1.normal.js index 27050acd7a21..433de1265061 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f() { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAliasReturnType_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es2015.1.normal.js index fc6fe3bf3c58..2dfd26521735 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es2017 // @noEmitHelpers: true var foo = function() { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es2015.2.minified.js index bd49df9c355f..b6d3f28c0c0a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}); diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es5.1.normal.js index d35b6663474d..b8fb0c4a6d45 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es2017 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es5.2.minified.js index 867016621978..ce23cd8a3216 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es2017_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es2015.1.normal.js index ea71a8186344..4b06a08cbcc8 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es2015.2.minified.js index bd49df9c355f..b6d3f28c0c0a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}); diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es5.1.normal.js index aabc8a43cedf..00f631d3de4f 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: ES5 // @lib: es5,es2015.promise diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es5.2.minified.js index 867016621978..ce23cd8a3216 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es2015.1.normal.js index e7d2d3fa836a..f3414dd34140 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES6 // @noEmitHelpers: true var foo = function() { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es2015.2.minified.js index bd49df9c355f..b6d3f28c0c0a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}); diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es5.1.normal.js index 05d82706eb36..198c0bd349d7 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: ES6 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es5.2.minified.js index 867016621978..ce23cd8a3216 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction10_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es2015.1.normal.js index b73895389ce0..d9229c137620 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es5 // @lib: esnext, dom // @downlevelIteration: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es5.1.normal.js index a4afd49f024b..07cbd93a3ab5 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es5 // @lib: esnext, dom diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es5.2.minified.js index 966096cb58a6..eb06371a6718 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction11_es5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +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 regeneratorRuntime from "regenerator-runtime"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es2015.1.normal.js index 4983f0b4b39a..74d213af73a3 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es2017 // @noEmitHelpers: true var foo = function() { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es2015.2.minified.js index bd49df9c355f..b6d3f28c0c0a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}); diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es5.1.normal.js index 0f05d3ab428a..e5b791d78918 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es2017 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es5.2.minified.js index 9684934c5b72..78d7bfcedb4a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es2017_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es2015.1.normal.js index 64cb580f8220..88ec79889c3a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es2015.2.minified.js index bd49df9c355f..b6d3f28c0c0a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}); diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es5.1.normal.js index 8ccb8a7f3f91..8ee2ac5b8893 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: ES5 // @lib: es5,es2015.promise diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es5.2.minified.js index 9684934c5b72..78d7bfcedb4a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es2015.1.normal.js index 52f2b2189c54..357230c8383a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES6 // @noEmitHelpers: true var foo = function() { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es2015.2.minified.js index bd49df9c355f..b6d3f28c0c0a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}); diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es5.1.normal.js index 1df369bbb688..faa89b3e17a1 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: ES6 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es5.2.minified.js index 9684934c5b72..78d7bfcedb4a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction1_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es2015.1.normal.js index f6cc7f1ef604..6d2b90504fc1 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es2017 // @noEmitHelpers: true class C { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es5.1.normal.js index a695dbac4857..138a3f8c69ca 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es2017 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es5.2.minified.js index 137b105abf92..f642f43040d4 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es2017_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es2015.1.normal.js index 2a94a755ed52..d4784b1bff6a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es5.1.normal.js index 59afb0aca42b..d28cbe025b26 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: ES5 // @lib: es5,es2015.promise diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es5.2.minified.js index 137b105abf92..f642f43040d4 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es2015.1.normal.js index 6b767f797970..75c2fb50b9c3 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES6 // @noEmitHelpers: true class C { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es5.1.normal.js index 8ef35b64d94d..076209c913a9 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: ES6 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es5.2.minified.js index 137b105abf92..f642f43040d4 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesArguments_es6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es2015.1.normal.js index 25e187078abe..b7ee0d85f5bd 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es2017 // @noEmitHelpers: true class C { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es5.1.normal.js index c0966631d539..27de32875baf 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es2017 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es5.2.minified.js index 787ce524af35..0c8429a3f872 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es2017_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es2015.1.normal.js index cb851efbfc48..9d81637588b5 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es5.1.normal.js index 9e293f53a9a1..cfd7fc21d60a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: ES5 // @lib: es5,es2015.promise diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es5.2.minified.js index 787ce524af35..0c8429a3f872 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es2015.1.normal.js index 721f7e37ebdc..970042bf4c4a 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES6 // @noEmitHelpers: true class C { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es5.1.normal.js index a81729a6f473..512ff08b5a70 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: ES6 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es5.2.minified.js index 787ce524af35..0c8429a3f872 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunctionCapturesThis_es6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es2015.1.normal.js index 51fcac1409f3..0299090f1f23 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es2015.2.minified.js index a14a3f941fcf..e94f0a07fdbf 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() { return 0; }), _async_to_generator(function*() { diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es5.1.normal.js index c6d2456da22b..f6f66155e521 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es5.2.minified.js index e71b3e9b8b03..1a6cc85d3005 100644 --- a/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncArrowFunction_allowJs_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es2015.1.normal.js index 0cdb121aaed7..b917eb868cda 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es2015.2.minified.js index cf0b68aaed98..3d0b11c08bf7 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es2015.2.minified.js @@ -1,5 +1,5 @@ var M; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() { return p; }), _async_to_generator(function*() { diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es5.1.normal.js index 205faa72246b..7a6903330439 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f0() { return _f0.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es5.2.minified.js index 611ef891e8e5..9528233aeb41 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es2017_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es2015.1.normal.js index c86d892ec1d6..2b30620d64a7 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es2015.2.minified.js index cf0b68aaed98..3d0b11c08bf7 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es2015.2.minified.js @@ -1,5 +1,5 @@ var M; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() { return p; }), _async_to_generator(function*() { diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es5.1.normal.js index e65fd6170b6f..0430eac32cf2 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f0() { return _f0.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es5.2.minified.js index 611ef891e8e5..9528233aeb41 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es2015.1.normal.js index 2a9f3ac326b4..f42115ae999b 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es2015.2.minified.js index cf0b68aaed98..3d0b11c08bf7 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es2015.2.minified.js @@ -1,5 +1,5 @@ var M; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() { return p; }), _async_to_generator(function*() { diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es5.1.normal.js index add204e820b8..f7d66ecdd466 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f0() { return _f0.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es5.2.minified.js index 611ef891e8e5..9528233aeb41 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitIsolatedModules_es6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es2015.1.normal.js index e04e06c37d7d..1c3db32f7ec1 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; var _B; // @target: ES5 // @lib: es5,es2015.promise diff --git a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es2015.2.minified.js index 61b2490ac60c..36b1f4c078a3 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es2015.2.minified.js @@ -1,5 +1,5 @@ var _B; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; class A { } A.B = ((_B = class { diff --git a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es5.1.normal.js index cbff9fb1384e..bc6db61b756f 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var _B; // @target: ES5 diff --git a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es5.2.minified.js index d15cda51582f..f7e61d557436 100644 --- a/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwaitNestedClasses_es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var _B, A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncAwait_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAwait_es2017_es2015.1.normal.js index 7fd547271c6d..67cb8b3354aa 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwait_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAwait_es2017_es2015.2.minified.js index cf0b68aaed98..3d0b11c08bf7 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es2017_es2015.2.minified.js @@ -1,5 +1,5 @@ var M; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() { return p; }), _async_to_generator(function*() { diff --git a/crates/swc/tests/tsc-references/asyncAwait_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwait_es2017_es5.1.normal.js index 5986784a13ef..d7b2f64c517f 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es2017_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f0() { return _f0.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncAwait_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwait_es2017_es5.2.minified.js index 611ef891e8e5..9528233aeb41 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es2017_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncAwait_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAwait_es5_es2015.1.normal.js index 7fd547271c6d..67cb8b3354aa 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwait_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAwait_es5_es2015.2.minified.js index cf0b68aaed98..3d0b11c08bf7 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es5_es2015.2.minified.js @@ -1,5 +1,5 @@ var M; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() { return p; }), _async_to_generator(function*() { diff --git a/crates/swc/tests/tsc-references/asyncAwait_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwait_es5_es5.1.normal.js index 5986784a13ef..d7b2f64c517f 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f0() { return _f0.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncAwait_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwait_es5_es5.2.minified.js index 611ef891e8e5..9528233aeb41 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncAwait_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncAwait_es6_es2015.1.normal.js index 7fd547271c6d..67cb8b3354aa 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f0() { return _f0.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncAwait_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncAwait_es6_es2015.2.minified.js index cf0b68aaed98..3d0b11c08bf7 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es6_es2015.2.minified.js @@ -1,5 +1,5 @@ var M; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() {}), _async_to_generator(function*() { return p; }), _async_to_generator(function*() { diff --git a/crates/swc/tests/tsc-references/asyncAwait_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncAwait_es6_es5.1.normal.js index 5986784a13ef..d7b2f64c517f 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f0() { return _f0.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncAwait_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncAwait_es6_es5.2.minified.js index 611ef891e8e5..9528233aeb41 100644 --- a/crates/swc/tests/tsc-references/asyncAwait_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncAwait_es6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es2015.1.normal.js index 748893c4b301..4f1dcf6489e2 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function _await() { return _await1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es5.1.normal.js index 88a3bdb9af60..34dcb6251883 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function _await() { return _await1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es2015.1.normal.js index 05f60a78b57b..d3f430eec7cd 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function _await() { return _await1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es5.1.normal.js index c3c9572027d8..c0b9b5098da2 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function _await() { return _await1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es2015.1.normal.js index 3dff5ef5317f..24f12aa7ffe3 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function _await() { return _await1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es5.1.normal.js index 2d45d48ad6ac..4b981023d17c 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function _await() { return _await1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration11_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es2015.1.normal.js index 735840216d21..178e43eb225b 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es5.1.normal.js index 8d2e09ced8bc..e8788a4217ef 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es2015.1.normal.js index 303a2fcff238..1a80748dc9de 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es5.1.normal.js index 06bf926bc8d5..03ba1982f923 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es2015.1.normal.js index 5bb6386beaf1..f062e7d90b8c 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es5.1.normal.js index 4b1733ad1d11..d6acd81b631a 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration13_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es2015.1.normal.js index 666a047db7b9..4bdfc7f02821 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es5.1.normal.js index a9a371077939..4f41f2dec6a2 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es2015.1.normal.js index b4aa7a9af5fb..6782152fdec1 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es5.1.normal.js index 6d517280792c..376f925b45e9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es2015.1.normal.js index cc33cf32b91e..bbcdf4c4ec51 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es5.1.normal.js index 090e350c8a54..2e970a79bfd7 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration14_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es2015.1.normal.js index 2f2c73fe9927..185098747f18 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es5.1.normal.js index 952550fe39f6..c193ec19ef7c 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es2015.1.normal.js index 9ce06d4ad04c..08eae20d331b 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es5.1.normal.js index 2d7ef68f0e6a..5b42d8cd7a8a 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es2015.1.normal.js index b99134209d18..c6056fcc0027 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function foo() { return _foo.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es5.1.normal.js index d518406709ae..e324cc51fdbb 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function foo() { return _foo.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration1_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es2017_es5.1.normal.js index b1d11bbb59e8..67c3473feab5 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es2017 // @noEmitHelpers: true var v = _define_property({}, _await, foo); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es2017_es5.2.minified.js index 27267fca7b11..6114029734e5 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, _await, foo); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es5_es5.1.normal.js index 9b5fbfd6b77f..63378f8b482d 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es5_es5.2.minified.js index 27267fca7b11..6114029734e5 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, _await, foo); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es6_es5.1.normal.js index f8251c3f2a04..c01b6d6df031 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: ES6 // @noEmitHelpers: true var v = _define_property({}, _await, foo); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es6_es5.2.minified.js index 27267fca7b11..6114029734e5 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclaration8_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, _await, foo); diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es2015.1.normal.js index c95578b5b30f..e5d841d8178c 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es5.1.normal.js index f2d3c35dcf55..bb3e9d973a3b 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: ES5 // @lib: es5,es2015.promise diff --git a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es5.2.minified.js index d81f58595ffd..7a16f9a81f7b 100644 --- a/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncFunctionDeclarationCapturesArguments_es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es2015.1.normal.js index b665d95a86a5..55259770eeac 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es5 // @lib: es5,es2015.promise // @module: commonjs diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es2015.2.minified.js index 856b49718cfb..7e6ceb8db282 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es2015.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class Task extends Promise { } diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es5.1.normal.js index d6195d82fd54..839c71682ac9 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es5.1.normal.js @@ -1,8 +1,8 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es5 // @lib: es5,es2015.promise diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es5.2.minified.js index 966c18e3fe9e..c2d0831e4732 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es5_es5.2.minified.js @@ -1,8 +1,8 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; export var Task = function(Promise) { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es2015.1.normal.js index a62391322a31..e670783c9969 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es6 // @module: commonjs // @filename: task.ts diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es2015.2.minified.js index 856b49718cfb..7e6ceb8db282 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es2015.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class Task extends Promise { } diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es5.1.normal.js index c4a413ed42bd..b936a81e262d 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es5.1.normal.js @@ -1,8 +1,8 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: es6 // @module: commonjs diff --git a/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es5.2.minified.js index 966c18e3fe9e..c2d0831e4732 100644 --- a/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncImportedPromise_es6_es5.2.minified.js @@ -1,8 +1,8 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _wrap_native_super from "@swc/helpers/src/_wrap_native_super.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; export var Task = function(Promise) { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es2015.1.normal.js index 3fd08b73e5f7..36cc294637f0 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es6 class A { x() {} diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es5.1.normal.js index f0be3e944aee..81900ec2c750 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es5.1.normal.js @@ -1,10 +1,10 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es6 var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es5.2.minified.js index 164cc2072b6d..75c8b82f3c88 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuperConflict_es6_es5.2.minified.js @@ -1,10 +1,10 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es2015.1.normal.js index d39cebc11d05..4811b75f157b 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: es2017 // @noEmitHelpers: true class A { diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es5.1.normal.js index 2a2e592245d1..254f88bb182d 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es5.1.normal.js @@ -1,10 +1,10 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es2017 // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es5.2.minified.js index ddb621945380..fa67837b8296 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es2017_es5.2.minified.js @@ -1,10 +1,10 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es2015.1.normal.js index 38bed9e9dbba..b3c0e86f9f69 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES5 // @lib: es5,es2015.promise // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es5.1.normal.js index 6be3301a4cc9..539a060f78ec 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es5.1.normal.js @@ -1,10 +1,10 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: ES5 // @lib: es5,es2015.promise diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es5.2.minified.js index ddb621945380..fa67837b8296 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es5_es5.2.minified.js @@ -1,10 +1,10 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es2015.1.normal.js index 398bfe2ad160..4d359360f92c 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; // @target: ES6 // @lib: esnext // @noEmitHelpers: true diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es2015.2.minified.js index 5041a00d6d56..471dda65d5e6 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es5.1.normal.js index e0a52dd9185e..5ec79727ec2a 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es5.1.normal.js @@ -1,11 +1,11 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: ES6 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es5.2.minified.js index 47d0852c01e0..e7284628d099 100644 --- a/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMethodWithSuper_es6_es5.2.minified.js @@ -1,11 +1,11 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncMultiFile_es5_es2015.1.normal.js index 4afe80dee1f9..70d776d94b0c 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncMultiFile_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncMultiFile_es5_es5.1.normal.js index 14fe66b304e8..7a8cda0379df 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f() { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncMultiFile_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncMultiFile_es6_es2015.1.normal.js index 34ea943c865e..c60589ef0e89 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncMultiFile_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncMultiFile_es6_es5.1.normal.js index 823c1bd4c269..2dba14545d70 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f() { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncMultiFile_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncMultiFile_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncMultiFile_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncMultiFile_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es2015.1.normal.js index 81eb38345da7..b176428c7d6a 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; const x = function() { var _ref = _async_to_generator(function*(i) { return yield someOtherFunction(i); diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es2015.2.minified.js index 18235a2565cf..31ea7d7a7b3e 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*(i) { return yield someOtherFunction(i); }), _async_to_generator(function*(i) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es5.1.normal.js index 53856803756b..1d7a8122ce19 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var x = function() { var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(i) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es5.2.minified.js index e8fdd2b10541..c651a77ae7ae 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es2017_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee(i) { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es2015.1.normal.js index 81eb38345da7..b176428c7d6a 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; const x = function() { var _ref = _async_to_generator(function*(i) { return yield someOtherFunction(i); diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es2015.2.minified.js index 18235a2565cf..31ea7d7a7b3e 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*(i) { return yield someOtherFunction(i); }), _async_to_generator(function*(i) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es5.1.normal.js index 53856803756b..1d7a8122ce19 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var x = function() { var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(i) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es5.2.minified.js index e8fdd2b10541..c651a77ae7ae 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee(i) { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es2015.1.normal.js index 81eb38345da7..b176428c7d6a 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; const x = function() { var _ref = _async_to_generator(function*(i) { return yield someOtherFunction(i); diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es2015.2.minified.js index 18235a2565cf..31ea7d7a7b3e 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; _async_to_generator(function*(i) { return yield someOtherFunction(i); }), _async_to_generator(function*(i) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es5.1.normal.js index 53856803756b..1d7a8122ce19 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var x = function() { var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(i) { diff --git a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es5.2.minified.js index e8fdd2b10541..c651a77ae7ae 100644 --- a/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUnParenthesizedArrowFunction_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; _async_to_generator(regeneratorRuntime.mark(function _callee(i) { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es2015.1.normal.js index ae6eba3a32b3..56758735a535 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es5.1.normal.js index 2a6bb422f772..e403fed767ac 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncUseStrict_es5_es2015.1.normal.js index ae6eba3a32b3..56758735a535 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncUseStrict_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncUseStrict_es5_es5.1.normal.js index 2a6bb422f772..e403fed767ac 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncUseStrict_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncUseStrict_es6_es2015.1.normal.js index ae6eba3a32b3..56758735a535 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncUseStrict_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncUseStrict_es6_es5.1.normal.js index 2a6bb422f772..e403fed767ac 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncUseStrict_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncUseStrict_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/asyncUseStrict_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncUseStrict_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es2015.1.normal.js index 7d880fbe07bb..f2d6cea5ecf2 100644 --- a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _extends from "@swc/helpers/lib/_extends.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; function fn1(x) { return _fn1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es2015.2.minified.js index d78218841da6..ae47f88200cc 100644 --- a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _extends from "@swc/helpers/lib/_extends.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; diff --git a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es5.1.normal.js index a60c14faba2f..6e82791c93a5 100644 --- a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; import regeneratorRuntime from "regenerator-runtime"; function fn1(x) { return _fn1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es5.2.minified.js index 32ed3c2e98df..5d2490c3d917 100644 --- a/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/asyncWithVarShadowing_es6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es2015.1.normal.js index c537cff634f0..421930fbc300 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es5.1.normal.js index d0cef038a40b..dc8e32ea5d8a 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es2015.1.normal.js index c537cff634f0..421930fbc300 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es5.1.normal.js index d0cef038a40b..dc8e32ea5d8a 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es2015.1.normal.js index c537cff634f0..421930fbc300 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es5.1.normal.js index d0cef038a40b..dc8e32ea5d8a 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression1_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es2015.1.normal.js index da5d3ffff637..f8cae94c3d02 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es5.1.normal.js index 07843972b120..68040c0b9047 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es2015.1.normal.js index da5d3ffff637..f8cae94c3d02 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es5.1.normal.js index 07843972b120..68040c0b9047 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es2015.1.normal.js index da5d3ffff637..f8cae94c3d02 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es5.1.normal.js index 07843972b120..68040c0b9047 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression2_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es2015.1.normal.js index c41c37664396..55dc79ee2788 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es5.1.normal.js index f4bd4a6e8c1e..716e235feaa2 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es2015.1.normal.js index c41c37664396..55dc79ee2788 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es5.1.normal.js index f4bd4a6e8c1e..716e235feaa2 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es2015.1.normal.js index c41c37664396..55dc79ee2788 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es5.1.normal.js index f4bd4a6e8c1e..716e235feaa2 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression3_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es2015.1.normal.js index 50d50e6ea477..e1ffc19e5681 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es5.1.normal.js index 6622f04a76de..ba0a086e27d3 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es2015.1.normal.js index 50d50e6ea477..e1ffc19e5681 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es5.1.normal.js index 6622f04a76de..ba0a086e27d3 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es2015.1.normal.js index 50d50e6ea477..e1ffc19e5681 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es5.1.normal.js index 6622f04a76de..ba0a086e27d3 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression4_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es2015.1.normal.js index 77ca85ff81a6..e4b0ea7c12aa 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es5.1.normal.js index f4fc9aa9d646..4168eecbf293 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es2015.1.normal.js index 77ca85ff81a6..e4b0ea7c12aa 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es5.1.normal.js index f4fc9aa9d646..4168eecbf293 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es2015.1.normal.js index 77ca85ff81a6..e4b0ea7c12aa 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es5.1.normal.js index f4fc9aa9d646..4168eecbf293 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitBinaryExpression5_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es2015.1.normal.js index e3156744743a..2559b55fb66c 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es5.1.normal.js index 61d54c02c063..93a9516d2494 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es2015.1.normal.js index e3156744743a..2559b55fb66c 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es5.1.normal.js index 61d54c02c063..93a9516d2494 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es2015.1.normal.js index e3156744743a..2559b55fb66c 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es5.1.normal.js index 61d54c02c063..93a9516d2494 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression1_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es2015.1.normal.js index 5bfa5a24bc8e..83191d269fe1 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es5.1.normal.js index 617aa18b070d..5310eafe161e 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es2015.1.normal.js index 5bfa5a24bc8e..83191d269fe1 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es5.1.normal.js index 617aa18b070d..5310eafe161e 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es2015.1.normal.js index 5bfa5a24bc8e..83191d269fe1 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es5.1.normal.js index 617aa18b070d..5310eafe161e 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression2_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es2015.1.normal.js index 6a3ba95bd821..688d024f6d90 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es5.1.normal.js index f563c0b2e459..16d8de58afd0 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es2015.1.normal.js index 6a3ba95bd821..688d024f6d90 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es5.1.normal.js index f563c0b2e459..16d8de58afd0 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es2015.1.normal.js index 6a3ba95bd821..688d024f6d90 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es5.1.normal.js index f563c0b2e459..16d8de58afd0 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression3_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es2015.1.normal.js index bb237cb36802..9bd170fc75f2 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es5.1.normal.js index ec6d6faf9c2a..f15872b95efb 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es2015.1.normal.js index bb237cb36802..9bd170fc75f2 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es5.1.normal.js index ec6d6faf9c2a..f15872b95efb 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es2015.1.normal.js index bb237cb36802..9bd170fc75f2 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es5.1.normal.js index ec6d6faf9c2a..f15872b95efb 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression4_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es2015.1.normal.js index bc1728b10a25..6e7d9747a0c3 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es5.1.normal.js index 3426e851f06a..7add91885fd9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es2015.1.normal.js index bc1728b10a25..6e7d9747a0c3 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es5.1.normal.js index 3426e851f06a..7add91885fd9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es2015.1.normal.js index bc1728b10a25..6e7d9747a0c3 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es5.1.normal.js index 3426e851f06a..7add91885fd9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression5_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es2015.1.normal.js index 11f089e940a6..b297ab54fc27 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es5.1.normal.js index 3f4ddd1972bf..802484675875 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es2015.1.normal.js index 11f089e940a6..b297ab54fc27 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es5.1.normal.js index 3f4ddd1972bf..802484675875 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es2015.1.normal.js index 11f089e940a6..b297ab54fc27 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es5.1.normal.js index 3f4ddd1972bf..802484675875 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression6_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es2015.1.normal.js index 5136c289a056..e29176122573 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es5.1.normal.js index a4b98e086b19..d01b6b83b086 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es2015.1.normal.js index 5136c289a056..e29176122573 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es5.1.normal.js index a4b98e086b19..d01b6b83b086 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es2015.1.normal.js index 5136c289a056..e29176122573 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es5.1.normal.js index a4b98e086b19..d01b6b83b086 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression7_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es2015.1.normal.js index 5ac872955cda..c180be370c0d 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es5.1.normal.js index 512d1a9069a2..abd34580b826 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es2015.1.normal.js index 5ac872955cda..c180be370c0d 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es5.1.normal.js index 512d1a9069a2..abd34580b826 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es2015.1.normal.js index 5ac872955cda..c180be370c0d 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es5.1.normal.js index 512d1a9069a2..abd34580b826 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitCallExpression8_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es2015.1.normal.js index 56eedc274b64..3f3589578a4e 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es5.1.normal.js index 0ecf3ca8a96c..434ab30344f9 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es5.2.minified.js index c68310ebd3ec..902b3208ffff 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es2017_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitClassExpression_es5_es2015.1.normal.js index 56eedc274b64..3f3589578a4e 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitClassExpression_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitClassExpression_es5_es5.1.normal.js index 0ecf3ca8a96c..434ab30344f9 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitClassExpression_es5_es5.2.minified.js index c68310ebd3ec..902b3208ffff 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitClassExpression_es6_es2015.1.normal.js index 56eedc274b64..3f3589578a4e 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function func() { return _func.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitClassExpression_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitClassExpression_es6_es5.1.normal.js index 0ecf3ca8a96c..434ab30344f9 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; function func() { return _func.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitClassExpression_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitClassExpression_es6_es5.2.minified.js index c68310ebd3ec..902b3208ffff 100644 --- a/crates/swc/tests/tsc-references/awaitClassExpression_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitClassExpression_es6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es2015.1.normal.js index 63268f47a8d2..20b5e83cac15 100644 --- a/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es5.1.normal.js index 62cf706f2e8a..532b77efdc3a 100644 --- a/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f() { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitInheritedPromise_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitUnion_es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitUnion_es5_es2015.1.normal.js index 1f509cea7a48..5b5580d4e405 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitUnion_es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitUnion_es5_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es5_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitUnion_es5_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitUnion_es5_es5.1.normal.js index 13dad7002118..f36c21ee918a 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f() { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitUnion_es5_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitUnion_es5_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/awaitUnion_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/awaitUnion_es6_es2015.1.normal.js index 1f509cea7a48..5b5580d4e405 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/awaitUnion_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/awaitUnion_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/awaitUnion_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/awaitUnion_es6_es5.1.normal.js index 13dad7002118..f36c21ee918a 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f() { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/awaitUnion_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/awaitUnion_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/awaitUnion_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/awaitUnion_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es2015.1.normal.js b/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es2015.1.normal.js index 31438e61dce1..82b0d1da4f01 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function bar() { return _bar.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es2015.2.minified.js b/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es5.1.normal.js b/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es5.1.normal.js index d1370d6a6ef1..644018282a50 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function bar() { return _bar.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es5.2.minified.js b/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es2017_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es6_es2015.1.normal.js b/crates/swc/tests/tsc-references/await_unaryExpression_es6_es2015.1.normal.js index b2217ea6a1eb..c8cbdddaefbd 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function bar() { return _bar.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es6_es2015.2.minified.js b/crates/swc/tests/tsc-references/await_unaryExpression_es6_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es6_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/await_unaryExpression_es6_es5.1.normal.js index cf61693e27f7..1a6ebc3e7085 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function bar() { return _bar.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/await_unaryExpression_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/await_unaryExpression_es6_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/await_unaryExpression_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/await_unaryExpression_es6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2_es5.1.normal.js b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2_es5.1.normal.js index f87b74dfea1b..4ec4e9cab10c 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // conditional expressions return the best common type of the branches plus contextual type (using the first candidate if multiple BCTs exist) // these are errors var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2_es5.2.minified.js b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2_es5.2.minified.js index 4336fb813160..a6b005fcf407 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions_es5.1.normal.js b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions_es5.1.normal.js index 59afbf225ea7..d7d8c8796240 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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 var a; diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions_es5.2.minified.js b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions_es5.2.minified.js index 4336fb813160..a6b005fcf407 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfConditionalExpressions_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2_es5.1.normal.js b/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2_es5.1.normal.js index ddd54aada00a..db067ada30cf 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2_es5.2.minified.js b/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2_es5.2.minified.js index 20152ab425b5..73e3ab8bb49b 100644 --- a/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/bestCommonTypeOfTuple2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var t1, t2, t3, t4, t5, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithAnyOtherType_es5.1.normal.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithAnyOtherType_es5.1.normal.js index 08cb47974cb0..8fdd86a66b0b 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithAnyOtherType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithAnyOtherType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowUnreachableCode: true // ~ operator on any type var ANY; diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithAnyOtherType_es5.2.minified.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithAnyOtherType_es5.2.minified.js index 28b46a02b39e..b7fd66288fc8 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithAnyOtherType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithAnyOtherType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType_es5.1.normal.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType_es5.1.normal.js index a370f4b20c8b..ddef6e465f36 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowUnreachableCode: true // ~ operator on boolean type var BOOLEAN; diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType_es5.2.minified.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType_es5.2.minified.js index c1665cd766f5..a044cc27fffd 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithBooleanType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType_es5.1.normal.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType_es5.1.normal.js index cf1d2925deb3..49281c66b97b 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowUnreachableCode: true // ~ operator on number type var NUMBER; diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType_es5.2.minified.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType_es5.2.minified.js index 76ced0f24da3..542dc6191dd4 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithNumberType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType_es5.1.normal.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType_es5.1.normal.js index de3caa224236..19da0aac8e5c 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowUnreachableCode: true // ~ operator on string type var STRING; diff --git a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType_es5.2.minified.js b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType_es5.2.minified.js index f26d2d23ea3e..9ba6eadb5677 100644 --- a/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/bitwiseNotOperatorWithStringType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/callChainWithSuper_es5.1.normal.js b/crates/swc/tests/tsc-references/callChainWithSuper_es5.1.normal.js index 4013b9f47d9e..ebcdae6b37ab 100644 --- a/crates/swc/tests/tsc-references/callChainWithSuper_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callChainWithSuper_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: *,-es3 // @strict: true // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/callChainWithSuper_es5.2.minified.js b/crates/swc/tests/tsc-references/callChainWithSuper_es5.2.minified.js index 5edab53b226b..e9e9d4f9d1e9 100644 --- a/crates/swc/tests/tsc-references/callChainWithSuper_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callChainWithSuper_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments_es5.1.normal.js index 87d14647203a..ed303a1c511e 100644 --- a/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // type parameter lists must exactly match type argument lists // all of these invocations are errors function f(x, y) { diff --git a/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments_es5.2.minified.js index 73619e3a90d6..72e62e5e35c0 100644 --- a/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callGenericFunctionWithIncorrectNumberOfTypeArguments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var f3, i, i2, f2 = function(x, y) { return null; }; diff --git a/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments_es5.1.normal.js index 6b4748f80df6..8bc9450a0b07 100644 --- a/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // valid invocations of generic functions with no explicit type arguments provided function f(x) { return null; diff --git a/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments_es5.2.minified.js index c808b17ac7ad..c9ccc7369f32 100644 --- a/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callGenericFunctionWithZeroTypeArguments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; f3(1); var f3, i, i2, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments_es5.1.normal.js index 26c52249a65e..9341c5895fe3 100644 --- a/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // it is always illegal to provide type arguments to a non-generic function // all invocations here are illegal function f(x) { diff --git a/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments_es5.2.minified.js index 070c0017a308..5bc893eeddcc 100644 --- a/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callNonGenericFunctionWithTypeArguments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; f3(1); var f3, i, i2, a, a2, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/callOverload_es5.1.normal.js b/crates/swc/tests/tsc-references/callOverload_es5.1.normal.js index cf83ec3f9bfa..061f289ce39d 100644 --- a/crates/swc/tests/tsc-references/callOverload_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callOverload_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var n; fn(1) // no error ; diff --git a/crates/swc/tests/tsc-references/callOverload_es5.2.minified.js b/crates/swc/tests/tsc-references/callOverload_es5.2.minified.js index b192b4ae1bff..ee74deab322c 100644 --- a/crates/swc/tests/tsc-references/callOverload_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callOverload_es5.2.minified.js @@ -1,5 +1,5 @@ var n; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2_es5.1.normal.js index af678c792485..1306d45be527 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3_es5.1.normal.js index e51f6a6a198a..df55724dd15e 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation // error cases var Errors; diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3_es5.2.minified.js index a262ec1ddce3..89e49e37b0a7 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance3_es5.2.minified.js @@ -1,7 +1,7 @@ var Errors; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(Errors) { var Base1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4_es5.1.normal.js index af678c792485..1306d45be527 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5_es5.1.normal.js index c9a2a95cca52..ed049af55eb7 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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 var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6_es5.1.normal.js index da92f54c65c2..0550c7a7dba1 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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 diff --git a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureAssignabilityInInheritance6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference_es5.1.normal.js index 6c131c1d1440..64573ab9de76 100644 --- a/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @allowUnreachableCode: true // Call signatures without a return type should infer one from the function body (if present) // Simple types diff --git a/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference_es5.2.minified.js index 6ad4ea40826e..bc031dd2dbfa 100644 --- a/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignatureWithoutReturnTypeAnnotationInference_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; function foo3() { return foo3(); } diff --git a/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters_es5.1.normal.js index 23bc1b966307..0f820492ce0f 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Duplicate parameter names are always an error function foo(x, x) {} var f = function foo(x, x) {}; diff --git a/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters_es5.2.minified.js index 94335d34a342..4cded96f6c03 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithDuplicateParameters_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2_es5.1.normal.js index d88d1c6e7f75..80da6af36460 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo(x) {} foo(1); foo(); diff --git a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2_es5.2.minified.js index 93481d485a58..83e97a2a8bc1 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo(x) {} function foo2(x, y) {} foo(1), foo(), foo2(1), foo2(1, 2); diff --git a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters_es5.1.normal.js index a99520e4f5b1..f03b79ffe68c 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Optional parameters should be valid in all the below casts function foo(x) {} var f = function foo(x) {}; diff --git a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters_es5.2.minified.js index efc598b76e52..4dc18124a82e 100644 --- a/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callSignaturesWithOptionalParameters_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo(x) {} var c, i, a, f = function(x) {}, f2 = function(x, y) {}; foo(1), foo(), f(1), f(), f2(1), f2(1, 2); diff --git a/crates/swc/tests/tsc-references/callWithMissingVoid_es5.1.normal.js b/crates/swc/tests/tsc-references/callWithMissingVoid_es5.1.normal.js index f650e0259178..7fb8c8ca1121 100644 --- a/crates/swc/tests/tsc-references/callWithMissingVoid_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithMissingVoid_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strict: true // From #4260 var X = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/callWithMissingVoid_es5.2.minified.js b/crates/swc/tests/tsc-references/callWithMissingVoid_es5.2.minified.js index 5f3375754feb..f94671430ae9 100644 --- a/crates/swc/tests/tsc-references/callWithMissingVoid_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithMissingVoid_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var X = function() { "use strict"; function X() { diff --git a/crates/swc/tests/tsc-references/callWithSpread2_es5.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread2_es5.1.normal.js index 86d3ba0506e4..bca0dd9e6100 100644 --- a/crates/swc/tests/tsc-references/callWithSpread2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // 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_es5.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread2_es5.2.minified.js index 0358bf196d76..5c28be5c13ba 100644 --- a/crates/swc/tests/tsc-references/callWithSpread2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread3_es5.1.normal.js index 5f2083c8c670..1982ed4c8f59 100644 --- a/crates/swc/tests/tsc-references/callWithSpread3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // error fs2.apply(void 0, [ "a" diff --git a/crates/swc/tests/tsc-references/callWithSpread3_es5.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread3_es5.2.minified.js index a68d4eb31f67..8aa9681a0dfa 100644 --- a/crates/swc/tests/tsc-references/callWithSpread3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; fs2.apply(void 0, [ "a" ].concat(_to_consumable_array(s2))), fs2.apply(void 0, [ diff --git a/crates/swc/tests/tsc-references/callWithSpread4_es5.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread4_es5.1.normal.js index c519b9ceb81a..c6530b865bd9 100644 --- a/crates/swc/tests/tsc-references/callWithSpread4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; pli.apply(void 0, [ reads ].concat(_to_consumable_array(gun), [ diff --git a/crates/swc/tests/tsc-references/callWithSpread4_es5.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread4_es5.2.minified.js index 15327895836c..fdcdedf38d1e 100644 --- a/crates/swc/tests/tsc-references/callWithSpread4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; pli.apply(void 0, [ reads ].concat(_to_consumable_array(gun), [ diff --git a/crates/swc/tests/tsc-references/callWithSpread5_es5.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread5_es5.1.normal.js index 54fb7a35e1de..1f07e5f85c28 100644 --- a/crates/swc/tests/tsc-references/callWithSpread5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; fn.apply(void 0, _to_consumable_array(nnnu).concat([ x ])); diff --git a/crates/swc/tests/tsc-references/callWithSpread5_es5.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread5_es5.2.minified.js index 70c6c3580162..0c4427d2f959 100644 --- a/crates/swc/tests/tsc-references/callWithSpread5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; 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/callWithSpreadES6_es5.1.normal.js b/crates/swc/tests/tsc-references/callWithSpreadES6_es5.1.normal.js index fbe0e87a71dc..fbae68831c99 100644 --- a/crates/swc/tests/tsc-references/callWithSpreadES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpreadES6_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _obj, _obj1, _instance, _instance1; function foo(x, y) { for(var _len = arguments.length, z1 = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/callWithSpreadES6_es5.2.minified.js b/crates/swc/tests/tsc-references/callWithSpreadES6_es5.2.minified.js index 5395fa86caef..e7ddcfcdbfe1 100644 --- a/crates/swc/tests/tsc-references/callWithSpreadES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpreadES6_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; function foo(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/callWithSpread_es5.1.normal.js b/crates/swc/tests/tsc-references/callWithSpread_es5.1.normal.js index a656147ad491..b449c75c7b66 100644 --- a/crates/swc/tests/tsc-references/callWithSpread_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callWithSpread_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _obj, _obj1, _obj2, _obj3, _instance, _obj4, _instance1, _instance2, _instance3; function foo(x, y) { for(var _len = arguments.length, z1 = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/callWithSpread_es5.2.minified.js b/crates/swc/tests/tsc-references/callWithSpread_es5.2.minified.js index 71f7c5255c7b..f189207846be 100644 --- a/crates/swc/tests/tsc-references/callWithSpread_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callWithSpread_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; function foo(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/callbackTag2_es5.1.normal.js b/crates/swc/tests/tsc-references/callbackTag2_es5.1.normal.js index 8c52b10551ba..5c3c060893eb 100644 --- a/crates/swc/tests/tsc-references/callbackTag2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/callbackTag2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/callbackTag2_es5.2.minified.js b/crates/swc/tests/tsc-references/callbackTag2_es5.2.minified.js index 573c035b8859..cfd409ad30c9 100644 --- a/crates/swc/tests/tsc-references/callbackTag2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/callbackTag2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var SharedClass = function() { "use strict"; _class_call_check(this, SharedClass), this.id; diff --git a/crates/swc/tests/tsc-references/castingTuple_es5.1.normal.js b/crates/swc/tests/tsc-references/castingTuple_es5.1.normal.js index cdd0f129ace7..8d83b38ebc8b 100644 --- a/crates/swc/tests/tsc-references/castingTuple_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/castingTuple_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/castingTuple_es5.2.minified.js b/crates/swc/tests/tsc-references/castingTuple_es5.2.minified.js index 785b17c1127c..4d55b839580c 100644 --- a/crates/swc/tests/tsc-references/castingTuple_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/castingTuple_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var E1, E2, A = function() { "use strict"; _class_call_check(this, A), this.a = 10; diff --git a/crates/swc/tests/tsc-references/chained2_es5.1.normal.js b/crates/swc/tests/tsc-references/chained2_es5.1.normal.js index 5468662f1a15..0f916cd1077b 100644 --- a/crates/swc/tests/tsc-references/chained2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/chained2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /c.ts import * as types from "./b"; // @Filename: /d.ts diff --git a/crates/swc/tests/tsc-references/chained2_es5.2.minified.js b/crates/swc/tests/tsc-references/chained2_es5.2.minified.js index 6fc402b280d4..b63fe910cfbd 100644 --- a/crates/swc/tests/tsc-references/chained2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/chained2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import * as types from "./b"; import types from "./c"; var A = function() { diff --git a/crates/swc/tests/tsc-references/chained_es5.1.normal.js b/crates/swc/tests/tsc-references/chained_es5.1.normal.js index abd5132d07c2..35488ad38372 100644 --- a/crates/swc/tests/tsc-references/chained_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/chained_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /d.ts import { D } from "./c"; // @Filename: /a.ts diff --git a/crates/swc/tests/tsc-references/chained_es5.2.minified.js b/crates/swc/tests/tsc-references/chained_es5.2.minified.js index 4f93c60e3660..604ee2b86aab 100644 --- a/crates/swc/tests/tsc-references/chained_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/chained_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { D } from "./c"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1_es5.1.normal.js index 6081f6956ce1..bc9ee58e0ed9 100644 --- a/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @allowJS: true // @suppressOutputPathCheck: true // @strictNullChecks: true diff --git a/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1_es5.2.minified.js index ad4d9173ca53..b2593d0c3248 100644 --- a/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsdocTypeTagOnObjectProperty1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, obj = (_define_property(_obj = { foo: void 0, bar: "42", diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType_es5.1.normal.js index 34422b068727..d61c957a605c 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @jsx: react // @strict: true // @esModuleInterop: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType_es5.2.minified.js index e11c3af6586f..ec26d33b7006 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenCanBeTupleType_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 React from "react"; var ResizablePanel = function(_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty10_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty10_es5.1.normal.js index 4a6e359e0e7b..7d717b29f018 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty10_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Button = /*#__PURE__*/ function() { "use strict"; function Button() { diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty10_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty10_es5.2.minified.js index 13c78f324ac8..72faee3d9f78 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty10_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Button = function() { "use strict"; function Button() { diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty11_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty11_es5.1.normal.js index 4a6e359e0e7b..7d717b29f018 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty11_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Button = /*#__PURE__*/ function() { "use strict"; function Button() { diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty11_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty11_es5.2.minified.js index 13c78f324ac8..72faee3d9f78 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty11_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Button = function() { "use strict"; function Button() { diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es2015.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es2015.1.normal.js index 205b88864a4a..d8b51c9873c4 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es2015.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es2015.2.minified.js index 74a1f552f782..0a129840a294 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Button extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es5.1.normal.js index ffff0a6b4525..4b8663c5bad5 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es5.2.minified.js index 4eaea4b6ab4e..449226f15536 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty12_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), Button = function(_Component) { "use strict"; _inherits(Button, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es2015.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es2015.1.normal.js index 2c566984a635..eec09a5008b4 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es2015.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es2015.2.minified.js index abd06abeefa3..ea8962fd8bd1 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Button extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es5.1.normal.js index 9c7b4605701c..9fd8fd268a56 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es5.2.minified.js index 883fe30ae5a9..17e936602932 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty13_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), Button = function(_Component) { "use strict"; _inherits(Button, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty14_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty14_es5.1.normal.js index 405ff174ad94..2d744a655614 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty14_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty14_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty14_es5.2.minified.js index 421d612b8771..66283721047c 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty14_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), Button = function(_Component) { "use strict"; _inherits(Button, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es2015.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es2015.1.normal.js index 56a0e1d24e2d..cac5e9296410 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es2015.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es2015.2.minified.js index a4ec2a61f6c0..10ba14d6b8a9 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); _extends({ a: 10, diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es5.1.normal.js index 6962112e11c1..39296b950be2 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es5.2.minified.js index aa7c46c7f612..a0f3c22fe72a 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"), _extends({ a: 10, b: "hi" diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty3_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty3_es5.1.normal.js index f419b53d8574..492da8b065b0 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty3_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty3_es5.2.minified.js index 84169adfbd74..1258922eed6a 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var FetchUser = function(_Component) { "use strict"; _inherits(FetchUser, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty4_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty4_es5.1.normal.js index 6fac97bb540e..3330ec7577c5 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty4_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty4_es5.2.minified.js index 84169adfbd74..1258922eed6a 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var FetchUser = function(_Component) { "use strict"; _inherits(FetchUser, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty5_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty5_es5.1.normal.js index 1bac57aada67..488c997e0df2 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty5_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty5_es5.2.minified.js index 6a32a1f096d7..c81a7271eb35 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), Button = function(_Component) { "use strict"; _inherits(Button, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty6_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty6_es5.1.normal.js index 91e0a7185f71..bfde1a51a94b 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty6_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty6_es5.2.minified.js index 6a32a1f096d7..c81a7271eb35 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), Button = function(_Component) { "use strict"; _inherits(Button, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty7_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty7_es5.1.normal.js index e73f58a1444b..77b65727c9fd 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty7_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty7_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty7_es5.2.minified.js index 6a32a1f096d7..c81a7271eb35 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty7_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), Button = function(_Component) { "use strict"; _inherits(Button, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty8_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty8_es5.1.normal.js index f4fff683f3fc..273f50e3584c 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty8_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/checkJsxChildrenProperty8_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxChildrenProperty8_es5.2.minified.js index 6a32a1f096d7..c81a7271eb35 100644 --- a/crates/swc/tests/tsc-references/checkJsxChildrenProperty8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxChildrenProperty8_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), Button = function(_Component) { "use strict"; _inherits(Button, _Component); diff --git a/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType_es5.1.normal.js index 90d24c8c1760..720857d36e52 100644 --- a/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = /*#__PURE__*/ function(Component) { "use strict"; _inherits(C, Component); diff --git a/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType_es5.2.minified.js index 9c8f09ca1c9a..71d761b99dde 100644 --- a/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxIntersectionElementPropsType_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function(Component) { "use strict"; _inherits(C, Component); diff --git a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es2015.1.normal.js b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es2015.1.normal.js index 94dd9d050adf..1896510d7159 100644 --- a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @strict: true // @jsx: react // @lib: es6 diff --git a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es2015.2.minified.js b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es2015.2.minified.js index f88f41d66bfb..ea6dac81eb56 100644 --- a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import * as React from "react"; class AsyncLoader extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es5.1.normal.js b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es5.1.normal.js index a8864002a223..b54aafeba296 100644 --- a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @strict: true // @jsx: react diff --git a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es5.2.minified.js b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es5.2.minified.js index b50dec2c0a1d..918a6d6b2a96 100644 --- a/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkJsxSubtleSkipContextSensitiveBug_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; import * as React from "react"; var AsyncLoader = function(_Component) { diff --git a/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments_es5.1.normal.js index 1f540f56daa3..9a7307a564f2 100644 --- a/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @checkJs: true // @allowJs: true diff --git a/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments_es5.2.minified.js index 8967f72731f0..51ea44b5e7a2 100644 --- a/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/checkSpecialPropertyAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; ({}).B = function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/circularImportAlias_es5.1.normal.js b/crates/swc/tests/tsc-references/circularImportAlias_es5.1.normal.js index da8ca42617af..2d5ee77a03e4 100644 --- a/crates/swc/tests/tsc-references/circularImportAlias_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/circularImportAlias_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // expected no error var B; (function(B1) { diff --git a/crates/swc/tests/tsc-references/circularImportAlias_es5.2.minified.js b/crates/swc/tests/tsc-references/circularImportAlias_es5.2.minified.js index 632e3bbc6612..aa5a2e1ab4fe 100644 --- a/crates/swc/tests/tsc-references/circularImportAlias_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/circularImportAlias_es5.2.minified.js @@ -1,7 +1,7 @@ var B, A; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(B1) { var a = A; B1.a = a; diff --git a/crates/swc/tests/tsc-references/circularIndexedAccessErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/circularIndexedAccessErrors_es5.1.normal.js index 230a5ef29560..300a2579bf26 100644 --- a/crates/swc/tests/tsc-references/circularIndexedAccessErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/circularIndexedAccessErrors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x2x = x2.x; var C1 = function C1() { "use strict"; diff --git a/crates/swc/tests/tsc-references/circularIndexedAccessErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/circularIndexedAccessErrors_es5.2.minified.js index e99000996516..3e511b06951c 100644 --- a/crates/swc/tests/tsc-references/circularIndexedAccessErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/circularIndexedAccessErrors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; x2.x; var C1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/circularReference_es5.1.normal.js b/crates/swc/tests/tsc-references/circularReference_es5.1.normal.js index ff32f8fb0af9..76c447a65e19 100644 --- a/crates/swc/tests/tsc-references/circularReference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/circularReference_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: foo1.ts var foo2 = require("./foo2"); export var M1; diff --git a/crates/swc/tests/tsc-references/circularReference_es5.2.minified.js b/crates/swc/tests/tsc-references/circularReference_es5.2.minified.js index 716ded13dce9..0ef6398aed6c 100644 --- a/crates/swc/tests/tsc-references/circularReference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/circularReference_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var foo2 = require("./foo2"); export var M1; !function(M11) { diff --git a/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass_es5.1.normal.js b/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass_es5.1.normal.js index 4ef12acf57b4..0e8ac581d1d4 100644 --- a/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var v0; var I0 = function I0() { "use strict"; diff --git a/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass_es5.2.minified.js b/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass_es5.2.minified.js index cd24868cc631..9a7566d50ea3 100644 --- a/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/circularTypeAliasForUnionWithClass_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var I0 = function() { "use strict"; _class_call_check(this, I0); diff --git a/crates/swc/tests/tsc-references/classAbstractAsIdentifier_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractAsIdentifier_es5.1.normal.js index 2c92750bb949..db15c2adf912 100644 --- a/crates/swc/tests/tsc-references/classAbstractAsIdentifier_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractAsIdentifier_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var abstract = /*#__PURE__*/ function() { "use strict"; function abstract() { diff --git a/crates/swc/tests/tsc-references/classAbstractAsIdentifier_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractAsIdentifier_es5.2.minified.js index 5973ea44b361..3721f4d6bdcd 100644 --- a/crates/swc/tests/tsc-references/classAbstractAsIdentifier_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractAsIdentifier_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var abstract = function() { "use strict"; function abstract() { diff --git a/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction_es5.1.normal.js index ad5bc1f240c5..64107f362719 100644 --- a/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction_es5.2.minified.js index 27acadfb465c..592a79d4705e 100644 --- a/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractAssignabilityConstructorFunction_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability_es5.1.normal.js index 331a7babcc06..dee259a45271 100644 --- a/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var I; var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability_es5.2.minified.js index 27acadfb465c..592a79d4705e 100644 --- a/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractClinterfaceAssignability_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractConstructorAssignability_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractConstructorAssignability_es5.1.normal.js index d6410d27d832..ec4858011157 100644 --- a/crates/swc/tests/tsc-references/classAbstractConstructorAssignability_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractConstructorAssignability_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractConstructorAssignability_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractConstructorAssignability_es5.2.minified.js index 211f220f3f0a..a6fc57e7866f 100644 --- a/crates/swc/tests/tsc-references/classAbstractConstructorAssignability_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractConstructorAssignability_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractExtends_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractExtends_es5.1.normal.js index c2337fe762ed..18a49f7d7597 100644 --- a/crates/swc/tests/tsc-references/classAbstractExtends_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractExtends_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractExtends_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractExtends_es5.2.minified.js index a3e5c00141f7..88d5bcafc68c 100644 --- a/crates/swc/tests/tsc-references/classAbstractExtends_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractExtends_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractFactoryFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractFactoryFunction_es5.1.normal.js index 2f2fae748a93..54110db9fc96 100644 --- a/crates/swc/tests/tsc-references/classAbstractFactoryFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractFactoryFunction_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractFactoryFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractFactoryFunction_es5.2.minified.js index ca7251649293..5a4b9f250ee7 100644 --- a/crates/swc/tests/tsc-references/classAbstractFactoryFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractFactoryFunction_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractGeneric_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractGeneric_es5.1.normal.js index 067972e0f1d7..1de11e06c845 100644 --- a/crates/swc/tests/tsc-references/classAbstractGeneric_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractGeneric_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractGeneric_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractGeneric_es5.2.minified.js index 7ccf03c2f93c..580199b35835 100644 --- a/crates/swc/tests/tsc-references/classAbstractGeneric_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractGeneric_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractImportInstantiation_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractImportInstantiation_es5.1.normal.js index e292c3656453..0dde22ae9ac7 100644 --- a/crates/swc/tests/tsc-references/classAbstractImportInstantiation_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractImportInstantiation_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M; (function(M1) { var A = function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractImportInstantiation_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractImportInstantiation_es5.2.minified.js index b4edf89beed4..a571ab643145 100644 --- a/crates/swc/tests/tsc-references/classAbstractImportInstantiation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractImportInstantiation_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M1) { var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classAbstractInAModule_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractInAModule_es5.1.normal.js index 0ed0dffef8e6..fbd3f4e2a22d 100644 --- a/crates/swc/tests/tsc-references/classAbstractInAModule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractInAModule_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M; (function(M1) { var A = function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractInAModule_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractInAModule_es5.2.minified.js index b4c578a36194..46c1feda6c7e 100644 --- a/crates/swc/tests/tsc-references/classAbstractInAModule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractInAModule_es5.2.minified.js @@ -1,7 +1,7 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(M1) { var A1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classAbstractInheritance_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractInheritance_es5.1.normal.js index 8b6327f7c36d..33d57994740c 100644 --- a/crates/swc/tests/tsc-references/classAbstractInheritance_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractInheritance_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractInheritance_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractInheritance_es5.2.minified.js index d6323a55247f..68a926fc88ed 100644 --- a/crates/swc/tests/tsc-references/classAbstractInheritance_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractInheritance_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractInstantiations1_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractInstantiations1_es5.1.normal.js index 99ede995d10f..bff423ab87bf 100644 --- a/crates/swc/tests/tsc-references/classAbstractInstantiations1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractInstantiations1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // // Calling new with (non)abstract classes. // diff --git a/crates/swc/tests/tsc-references/classAbstractInstantiations1_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractInstantiations1_es5.2.minified.js index 53167404f739..55a3e8141884 100644 --- a/crates/swc/tests/tsc-references/classAbstractInstantiations1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractInstantiations1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractMergedDeclaration_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractMergedDeclaration_es5.1.normal.js index d66835235dcb..0c313c709662 100644 --- a/crates/swc/tests/tsc-references/classAbstractMergedDeclaration_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractMergedDeclaration_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var CM = function CM() { "use strict"; _class_call_check(this, CM); diff --git a/crates/swc/tests/tsc-references/classAbstractMergedDeclaration_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractMergedDeclaration_es5.2.minified.js index bfd1f041707f..1c517ecaa310 100644 --- a/crates/swc/tests/tsc-references/classAbstractMergedDeclaration_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractMergedDeclaration_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var CM = function() { "use strict"; _class_call_check(this, CM); diff --git a/crates/swc/tests/tsc-references/classAbstractOverloads_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractOverloads_es5.1.normal.js index 90cd1b5319c6..4181e77d8550 100644 --- a/crates/swc/tests/tsc-references/classAbstractOverloads_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractOverloads_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractOverloads_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractOverloads_es5.2.minified.js index 0094f6bdcc06..2f90aabd8a84 100644 --- a/crates/swc/tests/tsc-references/classAbstractOverloads_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractOverloads_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract_es5.1.normal.js index b9e154c25647..dfe079a8e56d 100644 --- a/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract_es5.2.minified.js index 3ea249cb267f..52a05eb1e3c7 100644 --- a/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractOverrideWithAbstract_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractSingleLineDecl_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractSingleLineDecl_es5.1.normal.js index 58ab58f81459..1d63ee98cac2 100644 --- a/crates/swc/tests/tsc-references/classAbstractSingleLineDecl_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractSingleLineDecl_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractSingleLineDecl_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractSingleLineDecl_es5.2.minified.js index 41ae7bdb047b..9437e9dddfd3 100644 --- a/crates/swc/tests/tsc-references/classAbstractSingleLineDecl_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractSingleLineDecl_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractSuperCalls_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractSuperCalls_es5.1.normal.js index da447e750d3a..2f47cbaace1a 100644 --- a/crates/swc/tests/tsc-references/classAbstractSuperCalls_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractSuperCalls_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractSuperCalls_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractSuperCalls_es5.2.minified.js index d1b3745475d9..2b7fe4f44e03 100644 --- a/crates/swc/tests/tsc-references/classAbstractSuperCalls_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractSuperCalls_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1_es5.1.normal.js b/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1_es5.1.normal.js index 391b833db9b4..15763f3fac42 100644 --- a/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1_es5.2.minified.js b/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1_es5.2.minified.js index 552bea44701e..0cb5cbbbf834 100644 --- a/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAbstractUsingAbstractMethod1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classAndInterfaceWithSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/classAndInterfaceWithSameName_es5.1.normal.js index 081a46a79122..f0ba8aefc586 100644 --- a/crates/swc/tests/tsc-references/classAndInterfaceWithSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAndInterfaceWithSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classAndInterfaceWithSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/classAndInterfaceWithSameName_es5.2.minified.js index bf2dc48b8efc..3c26fcc67440 100644 --- a/crates/swc/tests/tsc-references/classAndInterfaceWithSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAndInterfaceWithSameName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classAndVariableWithSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/classAndVariableWithSameName_es5.1.normal.js index 46c5e9d96e3c..fa132213ae49 100644 --- a/crates/swc/tests/tsc-references/classAndVariableWithSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAndVariableWithSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classAndVariableWithSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/classAndVariableWithSameName_es5.2.minified.js index 7b6c352a10b8..a4fca60a8088 100644 --- a/crates/swc/tests/tsc-references/classAndVariableWithSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAndVariableWithSameName_es5.2.minified.js @@ -1,3 +1,3 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject_es5.1.normal.js b/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject_es5.1.normal.js index 28a92b7398ce..29b7c2bf2d3c 100644 --- a/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject_es5.2.minified.js b/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject_es5.2.minified.js index 8d636a3eeb23..16129fe21eb1 100644 --- a/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classAppearsToHaveMembersOfObject_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classCanExtendConstructorFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/classCanExtendConstructorFunction_es5.1.normal.js index d452cbb60211..f699b4f146de 100644 --- a/crates/swc/tests/tsc-references/classCanExtendConstructorFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classCanExtendConstructorFunction_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/classCanExtendConstructorFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/classCanExtendConstructorFunction_es5.2.minified.js index 44866a643afa..e3fbcb5e3e92 100644 --- a/crates/swc/tests/tsc-references/classCanExtendConstructorFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classCanExtendConstructorFunction_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function Wagon(numberOxen) { this.numberOxen = numberOxen; } diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility2_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility2_es5.1.normal.js index 1f09f578bef6..0eea991657f3 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @declaration: true var BaseA = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility2_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility2_es5.2.minified.js index dbe71d21fed0..8db44d8ffe98 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var BaseA = function() { "use strict"; function BaseA(x) { diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility3_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility3_es5.1.normal.js index 35a124e91a62..350b4c21ca72 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true var Foo = function Foo(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility3_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility3_es5.2.minified.js index 480d99008bbe..544326f095ff 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function(x) { "use strict"; _class_call_check(this, Foo), this.x = x; diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility4_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility4_es5.1.normal.js index 3a49b011d128..0d941a75bcce 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @declaration: true var A1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility4_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility4_es5.2.minified.js index 147fe2e317d0..d28105f95c58 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A1 = function() { "use strict"; function A1() { diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility5_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility5_es5.1.normal.js index 1e000886ce47..1cc7e48c4f10 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility5_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility5_es5.2.minified.js index ab4ce4f87131..63849f6e12ed 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorAccessibility_es5.1.normal.js index 31316dd0997f..5c9e1519d711 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/classConstructorAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorAccessibility_es5.2.minified.js index 85853f224fc0..60da5fdb1af3 100644 --- a/crates/swc/tests/tsc-references/classConstructorAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorAccessibility_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Generic, C = function(x) { "use strict"; _class_call_check(this, C), this.x = x; diff --git a/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility_es5.1.normal.js index 1fbca58d5255..4ea62a352912 100644 --- a/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility_es5.2.minified.js index 73c7ae8702b9..c1495ec1ad54 100644 --- a/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorOverloadsAccessibility_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2_es5.1.normal.js index 9f47ced1c96d..9a4bf2151b9e 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function C1(x) { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2_es5.2.minified.js index 5b974af629e5..39519434fdbc 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var c2, c3, C1 = function(x) { "use strict"; _class_call_check(this, C1), this.x = x; diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3_es5.1.normal.js index 293618cb8d5e..59590cab8187 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base(p) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3_es5.2.minified.js index bf041f95541d..5203e9bf1ac8 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var d, Base = function(p) { "use strict"; _class_call_check(this, Base), this.p = p; diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility_es5.1.normal.js index 9f47ced1c96d..9a4bf2151b9e 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function C1(x) { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility_es5.2.minified.js index 5b974af629e5..39519434fdbc 100644 --- a/crates/swc/tests/tsc-references/classConstructorParametersAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classConstructorParametersAccessibility_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var c2, c3, C1 = function(x) { "use strict"; _class_call_check(this, C1), this.x = x; diff --git a/crates/swc/tests/tsc-references/classDeclarationLoop_es5.1.normal.js b/crates/swc/tests/tsc-references/classDeclarationLoop_es5.1.normal.js index 6435f34eed9e..583089c4cb7b 100644 --- a/crates/swc/tests/tsc-references/classDeclarationLoop_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classDeclarationLoop_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _loop = function(i) { var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classDeclarationLoop_es5.2.minified.js b/crates/swc/tests/tsc-references/classDeclarationLoop_es5.2.minified.js index 25c5b70406f1..08a333193184 100644 --- a/crates/swc/tests/tsc-references/classDeclarationLoop_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classDeclarationLoop_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; for(var _loop = function(i) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes_es5.1.normal.js b/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes_es5.1.normal.js index 9357b6ecd41c..328eeb52e528 100644 --- a/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var StringTreeCollectionBase = function StringTreeCollectionBase() { "use strict"; _class_call_check(this, StringTreeCollectionBase); diff --git a/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes_es5.2.minified.js b/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes_es5.2.minified.js index dbfcebc35bd7..0a0abcc8dacc 100644 --- a/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classDoesNotDependOnBaseTypes_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var x, StringTreeCollectionBase = function() { "use strict"; _class_call_check(this, StringTreeCollectionBase); diff --git a/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember_es5.1.normal.js b/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember_es5.1.normal.js index 9e3d23859f3a..7c7fdbe98950 100644 --- a/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@declaration: true var M; (function(M1) { diff --git a/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember_es5.2.minified.js b/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember_es5.2.minified.js index 25aa4e1f4239..31513eb582a9 100644 --- a/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classDoesNotDependOnPrivateMember_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M1) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExpression1_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpression1_es5.1.normal.js index b91f3df01705..278ec4be79ca 100644 --- a/crates/swc/tests/tsc-references/classExpression1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var v = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classExpression1_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpression1_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/classExpression1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression1_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/classExpression2_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpression2_es5.1.normal.js index eb4bbe1824f1..765ef3dfc934 100644 --- a/crates/swc/tests/tsc-references/classExpression2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var D = function D() { "use strict"; _class_call_check(this, D); diff --git a/crates/swc/tests/tsc-references/classExpression2_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpression2_es5.2.minified.js index 8c673e6a6bbe..91b523861e63 100644 --- a/crates/swc/tests/tsc-references/classExpression2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var D = function() { "use strict"; _class_call_check(this, D); diff --git a/crates/swc/tests/tsc-references/classExpression3_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpression3_es5.1.normal.js index e8cba54f37b9..4b10dc77d484 100644 --- a/crates/swc/tests/tsc-references/classExpression3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(_class, _superClass); diff --git a/crates/swc/tests/tsc-references/classExpression3_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpression3_es5.2.minified.js index ecf5d4ab43a4..b4b5cca6f738 100644 --- a/crates/swc/tests/tsc-references/classExpression3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var c = new (function(_superClass) { "use strict"; _inherits(_class, _superClass); diff --git a/crates/swc/tests/tsc-references/classExpression4_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpression4_es5.1.normal.js index 6093883162c8..ea85954a773c 100644 --- a/crates/swc/tests/tsc-references/classExpression4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/classExpression4_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpression4_es5.2.minified.js index 60eefab0ee8d..5521af4ecee2 100644 --- a/crates/swc/tests/tsc-references/classExpression4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/classExpression5_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpression5_es5.1.normal.js index 1e095a34e4e9..4696729cc321 100644 --- a/crates/swc/tests/tsc-references/classExpression5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; new /*#__PURE__*/ (function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/classExpression5_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpression5_es5.2.minified.js index e000919a71a7..e4e266ad1360 100644 --- a/crates/swc/tests/tsc-references/classExpression5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; new (function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/classExpressionES61_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpressionES61_es5.1.normal.js index 08de7dd2cb31..ffd0e073b182 100644 --- a/crates/swc/tests/tsc-references/classExpressionES61_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpressionES61_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var v = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExpressionES61_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpressionES61_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/classExpressionES61_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpressionES61_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/classExpressionES62_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpressionES62_es5.1.normal.js index ed44819abb28..6659b7c8e119 100644 --- a/crates/swc/tests/tsc-references/classExpressionES62_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpressionES62_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es6 var D = function D() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExpressionES62_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpressionES62_es5.2.minified.js index 8c673e6a6bbe..91b523861e63 100644 --- a/crates/swc/tests/tsc-references/classExpressionES62_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpressionES62_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var D = function() { "use strict"; _class_call_check(this, D); diff --git a/crates/swc/tests/tsc-references/classExpressionES63_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpressionES63_es5.1.normal.js index 5375fde34093..6de7b27299f8 100644 --- a/crates/swc/tests/tsc-references/classExpressionES63_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpressionES63_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es6 var C = /*#__PURE__*/ function(_superClass) { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExpressionES63_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpressionES63_es5.2.minified.js index ecf5d4ab43a4..b4b5cca6f738 100644 --- a/crates/swc/tests/tsc-references/classExpressionES63_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpressionES63_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var c = new (function(_superClass) { "use strict"; _inherits(_class, _superClass); diff --git a/crates/swc/tests/tsc-references/classExpressionLoop_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpressionLoop_es5.1.normal.js index beceddf7fbdd..426eccdbeff0 100644 --- a/crates/swc/tests/tsc-references/classExpressionLoop_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpressionLoop_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _loop = function(i) { arr.push(function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExpressionLoop_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpressionLoop_es5.2.minified.js index 285cf0a04895..0fea85ea0139 100644 --- a/crates/swc/tests/tsc-references/classExpressionLoop_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpressionLoop_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; for(var _loop = function(i) { arr.push(function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/classExpression_es5.1.normal.js index 00c71d6b9f3c..bcf1735463f6 100644 --- a/crates/swc/tests/tsc-references/classExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/classExpression_es5.2.minified.js index 7b6c352a10b8..a4fca60a8088 100644 --- a/crates/swc/tests/tsc-references/classExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExpression_es5.2.minified.js @@ -1,3 +1,3 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; M || (M = {}); diff --git a/crates/swc/tests/tsc-references/classExtendingBuiltinType_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendingBuiltinType_es5.1.normal.js index 8820fad1e4f2..654a39a54eed 100644 --- a/crates/swc/tests/tsc-references/classExtendingBuiltinType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingBuiltinType_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = /*#__PURE__*/ function(Object) { "use strict"; _inherits(C1, Object); diff --git a/crates/swc/tests/tsc-references/classExtendingBuiltinType_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendingBuiltinType_es5.2.minified.js index 20aa3b46109a..d6a02c902314 100644 --- a/crates/swc/tests/tsc-references/classExtendingBuiltinType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingBuiltinType_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function(Object) { "use strict"; _inherits(C1, Object); diff --git a/crates/swc/tests/tsc-references/classExtendingClassLikeType_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendingClassLikeType_es5.1.normal.js index e4bd566b3e6a..c8e60debd844 100644 --- a/crates/swc/tests/tsc-references/classExtendingClassLikeType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingClassLikeType_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Error, no Base constructor function var D0 = /*#__PURE__*/ function(Base) { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExtendingClassLikeType_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendingClassLikeType_es5.2.minified.js index 5ae22ac3bb85..0c5415b83250 100644 --- a/crates/swc/tests/tsc-references/classExtendingClassLikeType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingClassLikeType_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var D0 = function(Base) { "use strict"; _inherits(D0, Base); diff --git a/crates/swc/tests/tsc-references/classExtendingClass_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendingClass_es5.1.normal.js index 4ada6e43e4c3..cab317111e99 100644 --- a/crates/swc/tests/tsc-references/classExtendingClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingClass_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classExtendingClass_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendingClass_es5.2.minified.js index 032299b34aaf..34a64b579d85 100644 --- a/crates/swc/tests/tsc-references/classExtendingClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingClass_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var d, d2, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classExtendingNonConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendingNonConstructor_es5.1.normal.js index 164e9f49039f..8341b6b4a82d 100644 --- a/crates/swc/tests/tsc-references/classExtendingNonConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingNonConstructor_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var x; function foo() { this.x = 1; diff --git a/crates/swc/tests/tsc-references/classExtendingNonConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendingNonConstructor_es5.2.minified.js index 35a82a9f142b..bd18ea4e4fc7 100644 --- a/crates/swc/tests/tsc-references/classExtendingNonConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingNonConstructor_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var x, C1 = function(undefined) { "use strict"; _inherits(C1, undefined); diff --git a/crates/swc/tests/tsc-references/classExtendingNull_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendingNull_es5.1.normal.js index 08121a45cfe8..001a41da4b63 100644 --- a/crates/swc/tests/tsc-references/classExtendingNull_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendingNull_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(C1, _superClass); diff --git a/crates/swc/tests/tsc-references/classExtendingNull_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendingNull_es5.2.minified.js index 841508d2c7d9..c29802ebbabf 100644 --- a/crates/swc/tests/tsc-references/classExtendingNull_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendingNull_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function(_superClass) { "use strict"; _inherits(C1, null); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2_es5.1.normal.js index f162c4ac298c..fe9a2c6ebd8b 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = /*#__PURE__*/ function(_E) { "use strict"; _inherits(C, _E); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2_es5.2.minified.js index 1c263ab55e76..8fa0e68e41a5 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M, N, O, C = function(_E) { "use strict"; _inherits(C, _E); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3_es5.1.normal.js index 9955b9969306..2f11f9e87923 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @Filename: classExtendsItselfIndirectly_file1.ts var C = /*#__PURE__*/ function(E1) { "use strict"; diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3_es5.2.minified.js index 62960af03ab1..da8ffe62b42a 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function(E1) { "use strict"; _inherits(C, E1); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly_es5.1.normal.js index 70f4a2c1ac38..6dd7364eeabd 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = /*#__PURE__*/ function(E1) { "use strict"; _inherits(C, E1); diff --git a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly_es5.2.minified.js index 62960af03ab1..da8ffe62b42a 100644 --- a/crates/swc/tests/tsc-references/classExtendsItselfIndirectly_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsItselfIndirectly_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function(E1) { "use strict"; _inherits(C, E1); diff --git a/crates/swc/tests/tsc-references/classExtendsItself_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendsItself_es5.1.normal.js index f84250ec9661..30b6758ec839 100644 --- a/crates/swc/tests/tsc-references/classExtendsItself_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsItself_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = /*#__PURE__*/ function(C) { "use strict"; _inherits(C1, C); diff --git a/crates/swc/tests/tsc-references/classExtendsItself_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendsItself_es5.2.minified.js index 682d516b57ab..92ad0e05582b 100644 --- a/crates/swc/tests/tsc-references/classExtendsItself_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsItself_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function(C) { "use strict"; _inherits(C1, C); diff --git a/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction_es5.1.normal.js index 7a66922e183b..7c03a5ce841f 100644 --- a/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction_es5.2.minified.js index 36511b7e3cd8..47f5a07b80ea 100644 --- a/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsShadowedConstructorFunction_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction_es5.1.normal.js index 9faf703d1aaa..501c7a757ab8 100644 --- a/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function foo() {} var x = new foo(); // can be used as a constructor function var C = /*#__PURE__*/ function(foo1) { diff --git a/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction_es5.2.minified.js index 001263807b3e..622cb61ca90b 100644 --- a/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classExtendsValidConstructorFunction_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function foo() {} new foo(); var C = function(foo1) { diff --git a/crates/swc/tests/tsc-references/classImplementsMergedClassInterface_es5.1.normal.js b/crates/swc/tests/tsc-references/classImplementsMergedClassInterface_es5.1.normal.js index 0b899851cbbd..3efd3191ae3b 100644 --- a/crates/swc/tests/tsc-references/classImplementsMergedClassInterface_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classImplementsMergedClassInterface_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C2 = function C2() { "use strict"; _class_call_check(this, C2); diff --git a/crates/swc/tests/tsc-references/classImplementsMergedClassInterface_es5.2.minified.js b/crates/swc/tests/tsc-references/classImplementsMergedClassInterface_es5.2.minified.js index 05c48343148c..7a78a9d59c01 100644 --- a/crates/swc/tests/tsc-references/classImplementsMergedClassInterface_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classImplementsMergedClassInterface_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C2 = function() { "use strict"; _class_call_check(this, C2); diff --git a/crates/swc/tests/tsc-references/classInsideBlock_es5.1.normal.js b/crates/swc/tests/tsc-references/classInsideBlock_es5.1.normal.js index b459dc1b17ed..aca3d09ae161 100644 --- a/crates/swc/tests/tsc-references/classInsideBlock_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classInsideBlock_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo() { var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classInsideBlock_es5.2.minified.js b/crates/swc/tests/tsc-references/classInsideBlock_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/classInsideBlock_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classInsideBlock_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType_es5.1.normal.js b/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType_es5.1.normal.js index 801d419243b2..d2cf94a43910 100644 --- a/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType_es5.2.minified.js b/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType_es5.2.minified.js index 4336fb813160..a6b005fcf407 100644 --- a/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classIsSubtypeOfBaseType_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classPropertyAsPrivate_es5.1.normal.js b/crates/swc/tests/tsc-references/classPropertyAsPrivate_es5.1.normal.js index b2462e12066d..329f96f2ff28 100644 --- a/crates/swc/tests/tsc-references/classPropertyAsPrivate_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classPropertyAsPrivate_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyAsPrivate_es5.2.minified.js b/crates/swc/tests/tsc-references/classPropertyAsPrivate_es5.2.minified.js index d8193ba39e72..34d02d4db4e6 100644 --- a/crates/swc/tests/tsc-references/classPropertyAsPrivate_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classPropertyAsPrivate_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var c, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyAsProtected_es5.1.normal.js b/crates/swc/tests/tsc-references/classPropertyAsProtected_es5.1.normal.js index b2462e12066d..329f96f2ff28 100644 --- a/crates/swc/tests/tsc-references/classPropertyAsProtected_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classPropertyAsProtected_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyAsProtected_es5.2.minified.js b/crates/swc/tests/tsc-references/classPropertyAsProtected_es5.2.minified.js index d8193ba39e72..34d02d4db4e6 100644 --- a/crates/swc/tests/tsc-references/classPropertyAsProtected_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classPropertyAsProtected_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var c, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault_es5.1.normal.js b/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault_es5.1.normal.js index 78c8b84a232b..d76aa503b7d0 100644 --- a/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault_es5.2.minified.js b/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault_es5.2.minified.js index d8193ba39e72..34d02d4db4e6 100644 --- a/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classPropertyIsPublicByDefault_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var c, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock10_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock10_es5.1.normal.js index 7b1b1df62452..6fea9ea4e42c 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock10_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es2015, es5 var a1 = 1; var a2 = 1; diff --git a/crates/swc/tests/tsc-references/classStaticBlock10_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock10_es5.2.minified.js index 188bbeebaca8..8f16ebe4cb71 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock10_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C2 = function() { "use strict"; _class_call_check(this, C2); diff --git a/crates/swc/tests/tsc-references/classStaticBlock11_es2015.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock11_es2015.1.normal.js index 621ad203d8a9..28ebb71f820b 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock11_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock11_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; // @target: esnext, es2022, es2015 let getX; var _x = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/classStaticBlock11_es2015.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock11_es2015.2.minified.js index 4dd6709316ab..b74178b18fea 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock11_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock11_es2015.2.minified.js @@ -1,3 +1,3 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock11_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock11_es5.1.normal.js index 3967fba9d245..7076dabab40e 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock11_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; // @target: esnext, es2022, es2015 var getX; var _x = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/classStaticBlock11_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock11_es5.2.minified.js index 0cb63369efc7..ffe62b8423bb 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock11_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _x = new WeakMap(), C = function(x) { "use strict"; _class_call_check(this, C), _class_private_field_init(this, _x, { diff --git a/crates/swc/tests/tsc-references/classStaticBlock12_es2015.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock12_es2015.1.normal.js index 1dfbd5769386..89d4c58f32bd 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock12_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock12_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; // @useDefineForClassFields: false // @target: es2015 class C { diff --git a/crates/swc/tests/tsc-references/classStaticBlock12_es2015.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock12_es2015.2.minified.js index d58899b68d90..445399130089 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock12_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock12_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; class C { } _class_static_private_field_spec_get(C, C, { diff --git a/crates/swc/tests/tsc-references/classStaticBlock12_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock12_es5.1.normal.js index bbae1af0c108..c72d2d2f07ff 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock12_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; // @useDefineForClassFields: false // @target: es2015 var C = function C() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock12_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock12_es5.2.minified.js index 94086c125291..e4c7cfcc3a8f 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock12_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock13_es2015.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock13_es2015.1.normal.js index 756005945194..540188ed5be6 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock13_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock13_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; // @target: esnext, es2022, es2015 // @useDefineForClassFields: true class C { diff --git a/crates/swc/tests/tsc-references/classStaticBlock13_es2015.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock13_es2015.2.minified.js index 135ed4d034a0..6041829c6a15 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock13_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock13_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; class C { foo() { return _class_static_private_field_spec_get(C, C, _x); diff --git a/crates/swc/tests/tsc-references/classStaticBlock13_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock13_es5.1.normal.js index fca9f8046f6b..e047a45b18b7 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock13_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; // @target: esnext, es2022, es2015 // @useDefineForClassFields: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock13_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock13_es5.2.minified.js index ec87cc4f227c..44cc42c30d09 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock13_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock14_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock14_es5.1.normal.js index f33f6c5a75b4..f1279222ce81 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @useDefineForClassFields: false // @target: es2015 var C = function C() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock14_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock14_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock14_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock15_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock15_es5.1.normal.js index 7abadf2ae1d6..60e611142b9a 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock15_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es2015 // @useDefineForClassFields: true var _C__1; diff --git a/crates/swc/tests/tsc-references/classStaticBlock15_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock15_es5.2.minified.js index ceea439b6dcb..94be4944419c 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock15_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _C__1, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock17_es2015.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock17_es2015.1.normal.js index e888550ab479..841c46fa482d 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock17_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock17_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; // @target: es2015 let friendA; var _x = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/classStaticBlock17_es2015.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock17_es2015.2.minified.js index cdb82916f482..3fc0b7ade25f 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock17_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock17_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; let friendA; var _x = new WeakMap(); friendA = { diff --git a/crates/swc/tests/tsc-references/classStaticBlock17_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock17_es5.1.normal.js index 21ab8b1d0e4c..804092c44915 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock17_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock17_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; // @target: es2015 var friendA; var _x = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/classStaticBlock17_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock17_es5.2.minified.js index 9a1924a7f118..796b57da2d96 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock17_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock17_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var friendA, _x = new WeakMap(), A = function() { "use strict"; function A(v) { diff --git a/crates/swc/tests/tsc-references/classStaticBlock18_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock18_es5.1.normal.js index bc8e5c9405a3..cdad9cb0331c 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock18_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock18_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es2015, es5 function foo() { var _class1, __1; diff --git a/crates/swc/tests/tsc-references/classStaticBlock18_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock18_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock18_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock18_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock1_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock1_es5.1.normal.js index 0125781523fd..ecebe4623418 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es2015, es5 var a = 2; var C = function C() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock1_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock1_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock21_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock21_es5.1.normal.js index 7b5ac6b9df18..935b6c03d149 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock21_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock21_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock21_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock21_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock21_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock21_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock24_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock24_es5.1.normal.js index b3e625199ad6..fa4e6c12cbaf 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs, es2015, es2020, es2022, UMD, AMD, System, esnext export var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock24_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock24_es5.2.minified.js index b992d34774ed..9aa636e59e60 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock24_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock24_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock25_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock25_es5.1.normal.js index 773cd709ff48..5c5e194f755e 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock25_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock25_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022 // @declaration: true // @declarationMap: true diff --git a/crates/swc/tests/tsc-references/classStaticBlock25_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock25_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock25_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock25_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock27_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock27_es5.1.normal.js index be709beef06b..a5da1795f620 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock27_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock27_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _Foo, __, __1, __2; // /~https://github.com/microsoft/TypeScript/issues/44872 void (_Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock27_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock27_es5.2.minified.js index c675a739390c..3edb6cc18d5e 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock27_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock27_es5.2.minified.js @@ -1,5 +1,5 @@ var _Foo; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (_Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/classStaticBlock2_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock2_es5.1.normal.js index d5c59e1aa016..ab09c1a2fefc 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es2015, es5 var a = 1; var b = 2; diff --git a/crates/swc/tests/tsc-references/classStaticBlock2_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock2_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock3_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock3_es5.1.normal.js index 59dd9e77bbb4..783c43271f5e 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022 var a = 1; var C = function C() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock3_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock3_es5.2.minified.js index 5bbd0ac4c657..c49a19b06254 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock4_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock4_es5.1.normal.js index 318891aac2e7..b4928b60712f 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock4_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock4_es5.2.minified.js index 5ecdfbee84b5..1f0f97ec5322 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classStaticBlock5_es2015.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock5_es2015.1.normal.js index 90b0d3175308..e5531df938ce 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock5_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; // @target: esnext, es2022, es2015, es5 class B { } diff --git a/crates/swc/tests/tsc-references/classStaticBlock5_es2015.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock5_es2015.2.minified.js index e2c721555e08..73d0e4d2891e 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock5_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; class B { } B.a = 1, B.b = 2; diff --git a/crates/swc/tests/tsc-references/classStaticBlock5_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock5_es5.1.normal.js index bb1c7aaa3d6e..089cad060113 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock5_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _superprop_get_b = ()=>super.b, _superprop_get_a = ()=>super.a; // @target: esnext, es2022, es2015, es5 var B = function B() { diff --git a/crates/swc/tests/tsc-references/classStaticBlock5_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock5_es5.2.minified.js index e40ed30d5544..68c84e341c13 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock5_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/classStaticBlock9_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlock9_es5.1.normal.js index f7cc51360ca8..62a600838600 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlock9_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es2015, es5 var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classStaticBlock9_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlock9_es5.2.minified.js index ad0863381d6c..985854625176 100644 --- a/crates/swc/tests/tsc-references/classStaticBlock9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlock9_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2_es5.1.normal.js b/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2_es5.1.normal.js index c6d4b8a3d345..825f9089f2f2 100644 --- a/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022 // @noEmit: true // @strict: true diff --git a/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2_es5.2.minified.js b/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2_es5.2.minified.js index ff5ecbf65826..3868d7c62f58 100644 --- a/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classStaticBlockUseBeforeDef2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor_es5.1.normal.js index 033ce8b07d00..06e071caad2a 100644 --- a/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor_es5.2.minified.js index 2db9bb467125..50f5cf034e0a 100644 --- a/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithBaseClassButNoConstructor_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/classWithConstructors_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithConstructors_es5.1.normal.js index ba3ea9d597d8..3c5f8df3ac35 100644 --- a/crates/swc/tests/tsc-references/classWithConstructors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithConstructors_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var NonGeneric; (function(NonGeneric) { var C = function C(x) { diff --git a/crates/swc/tests/tsc-references/classWithConstructors_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithConstructors_es5.2.minified.js index 7e39209fd08d..6d11ea90587f 100644 --- a/crates/swc/tests/tsc-references/classWithConstructors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithConstructors_es5.2.minified.js @@ -1,7 +1,7 @@ var NonGeneric, Generics; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(NonGeneric) { var C = function(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithEmptyBody_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithEmptyBody_es5.1.normal.js index 91dbf5fd4f33..3fcf4371eeb1 100644 --- a/crates/swc/tests/tsc-references/classWithEmptyBody_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithEmptyBody_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithEmptyBody_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithEmptyBody_es5.2.minified.js index 496818b4a801..3d16cbedf5b0 100644 --- a/crates/swc/tests/tsc-references/classWithEmptyBody_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithEmptyBody_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass_es5.1.normal.js index 3d0893068f03..5185bf3ed586 100644 --- a/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass_es5.2.minified.js index fedd89a9e928..8d14c82c9eaa 100644 --- a/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithNoConstructorOrBaseClass_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2_es5.1.normal.js index 27aa307c441a..88201ac99d4e 100644 --- a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 // no errors expected var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2_es5.2.minified.js index 5e866c25a206..1423ff5f79d1 100644 --- a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface_es5.1.normal.js index 27aa307c441a..88201ac99d4e 100644 --- a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 // no errors expected var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface_es5.2.minified.js index 5e866c25a206..1423ff5f79d1 100644 --- a/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithOnlyPublicMembersEquivalentToInterface_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithOptionalParameter_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithOptionalParameter_es5.1.normal.js index 4ae2538f670a..db1fe5b2e51a 100644 --- a/crates/swc/tests/tsc-references/classWithOptionalParameter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithOptionalParameter_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // classes do not permit optional parameters, these are errors var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithOptionalParameter_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithOptionalParameter_es5.2.minified.js index 278e8a8fb941..117d5b34c7f3 100644 --- a/crates/swc/tests/tsc-references/classWithOptionalParameter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithOptionalParameter_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithPrivateProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithPrivateProperty_es5.1.normal.js index a34bd459514c..f647408998b8 100644 --- a/crates/swc/tests/tsc-references/classWithPrivateProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithPrivateProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // accessing any private outside the class is an error var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithPrivateProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithPrivateProperty_es5.2.minified.js index 9821da4209a5..73b79e03809c 100644 --- a/crates/swc/tests/tsc-references/classWithPrivateProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithPrivateProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithProtectedProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithProtectedProperty_es5.1.normal.js index 68adb8788bba..5bdf2954dc10 100644 --- a/crates/swc/tests/tsc-references/classWithProtectedProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithProtectedProperty_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // accessing any protected outside the class is an error var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithProtectedProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithProtectedProperty_es5.2.minified.js index 9bcde9a56b7a..9b2f4c428975 100644 --- a/crates/swc/tests/tsc-references/classWithProtectedProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithProtectedProperty_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithPublicProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithPublicProperty_es5.1.normal.js index a32de0012184..99075319930a 100644 --- a/crates/swc/tests/tsc-references/classWithPublicProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithPublicProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithPublicProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithPublicProperty_es5.2.minified.js index 9821da4209a5..73b79e03809c 100644 --- a/crates/swc/tests/tsc-references/classWithPublicProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithPublicProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElement1_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElement1_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElement1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElement1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElement1_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElement1_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElement1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElement1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElement2_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElement2_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElement2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElement2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElement2_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElement2_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElement2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElement2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElementES61_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElementES61_es5.1.normal.js index e28f2297f5d4..7baba67e301a 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElementES61_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElementES61_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: es6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElementES61_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElementES61_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElementES61_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElementES61_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElementES62_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElementES62_es5.1.normal.js index e28f2297f5d4..7baba67e301a 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElementES62_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElementES62_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: es6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithSemicolonClassElementES62_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithSemicolonClassElementES62_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/classWithSemicolonClassElementES62_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithSemicolonClassElementES62_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2_es5.1.normal.js index b3a4e1d57852..b686a499b598 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _class, _class1; // @target: esnext,es2015,es5 // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2_es5.2.minified.js index d94d4fb48b68..b535a8ed78e6 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _class, _class1, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.3_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.3_es5.1.normal.js index 795376434981..4948ca1255fe 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _class, _class1; // @target: esnext // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.3_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.3_es5.2.minified.js index d94d4fb48b68..b535a8ed78e6 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern.3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _class, _class1, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern_es5.1.normal.js index 89c2ec0e482f..14163f5ad385 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _class; // @target: esnext,es2015,es5 // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern_es5.2.minified.js index 8c5e9002b5da..7e7bd820da39 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterBindingPattern_es5.2.minified.js @@ -1,5 +1,5 @@ var _class; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (void 0)[((_class = function _class1() { "use strict"; _class_call_check(this, _class1); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2_es5.1.normal.js index e174e0001b40..54ba8ad273b5 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _class, _class1; // @target: esnext,es2015,es5 // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2_es5.2.minified.js index 54b32c33cd53..c3fbf87e6971 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _class, _class1, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.3_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.3_es5.1.normal.js index 1d27bc2b2380..c945ac26e1ea 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _class, _class1; // @target: esnext // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.3_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.3_es5.2.minified.js index 54b32c33cd53..c3fbf87e6971 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer.3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _class, _class1, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer_es5.1.normal.js index 4ca5aba139b4..8edd5137dcc7 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _class; // @target: esnext,es2015,es5 // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer_es5.2.minified.js index ee0e6b441529..978785b3e4d7 100644 --- a/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticFieldInParameterInitializer_es5.2.minified.js @@ -1,5 +1,5 @@ var _class; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function() { arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ((_class = function _class1() { "use strict"; diff --git a/crates/swc/tests/tsc-references/classWithStaticMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithStaticMembers_es5.1.normal.js index 0a918a24ef28..4d7496aa20b5 100644 --- a/crates/swc/tests/tsc-references/classWithStaticMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithStaticMembers_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C(a, b) { diff --git a/crates/swc/tests/tsc-references/classWithStaticMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithStaticMembers_es5.2.minified.js index d72aa9cc7671..1c582e584ad3 100644 --- a/crates/swc/tests/tsc-references/classWithStaticMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithStaticMembers_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var C = function() { "use strict"; function C(a, b) { diff --git a/crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es5.1.normal.js index fab5b34b7349..9196368ed7c3 100644 --- a/crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es5.2.minified.js index d4fb96204a3c..59b3e798c22d 100644 --- a/crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/classWithoutExplicitConstructor_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C), this.x = 1, this.y = "hello"; diff --git a/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType_es5.1.normal.js b/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType_es5.1.normal.js index dea44a9a5047..b213e597df5c 100644 --- a/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowUnreachableCode: true var ANY; var BOOLEAN; diff --git a/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType_es5.2.minified.js b/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType_es5.2.minified.js index 208a0d6b75f8..2edbca0f20d3 100644 --- a/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/commaOperatorWithSecondOperandObjectType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var STRING, CLASS = function() { "use strict"; _class_call_check(this, CLASS); diff --git a/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression_es5.1.normal.js index 5a70fb5ff65b..5d9b4ea39f89 100644 --- a/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs // @Filename: foo_0.ts export var C1 = function C1() { diff --git a/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression_es5.2.minified.js index f26a2ac50d29..213ed71b92fd 100644 --- a/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportAsPrimaryExpression_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var foo, C1 = function() { "use strict"; _class_call_check(this, C1), this.m1 = 42; diff --git a/crates/swc/tests/tsc-references/commonJSImportClassTypeReference_es5.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportClassTypeReference_es5.1.normal.js index 12f8db163989..f9d26d66a0ca 100644 --- a/crates/swc/tests/tsc-references/commonJSImportClassTypeReference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportClassTypeReference_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @strict: true diff --git a/crates/swc/tests/tsc-references/commonJSImportClassTypeReference_es5.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportClassTypeReference_es5.2.minified.js index 0e56148ad141..3c9e83f6d46e 100644 --- a/crates/swc/tests/tsc-references/commonJSImportClassTypeReference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportClassTypeReference_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var K = require("./mod1").K, K = function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression_es5.1.normal.js index 5d7ce8407f39..919b81b06d8c 100644 --- a/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @strict: true diff --git a/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression_es5.2.minified.js index 355fa6e79202..b70ab64ad1ff 100644 --- a/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportExportedClassExpression_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; require("./mod1").K, exports.K = function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference_es5.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference_es5.1.normal.js index 3233adc3de02..72a45ac4e890 100644 --- a/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @strict: true diff --git a/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference_es5.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference_es5.2.minified.js index 509c6a57b23e..90ba5897781b 100644 --- a/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportNestedClassTypeReference_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; require("./mod1").K; var NS = {}; NS.K = function() { diff --git a/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression_es5.1.normal.js index 7ac1c0131b31..9230ae6050b4 100644 --- a/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs // @Filename: foo_0.ts export var C1 = function C1() { diff --git a/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression_es5.2.minified.js index 802c0e1ac716..e9fa13d3abb9 100644 --- a/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/commonJSImportNotAsPrimaryExpression_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var i, z, C1 = function() { "use strict"; _class_call_check(this, C1), this.m1 = 42; diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects_es5.1.normal.js index c411c9701078..b9df7fc93c68 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A1 = /*#__PURE__*/ function() { "use strict"; function A1() { diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects_es5.2.minified.js index 98f0f94ec229..199d3963d392 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithIdenticalObjects_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A1 = function() { "use strict"; function A1() { diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature_es5.1.normal.js index 9a8571f1cc03..a2b10c7847be 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature_es5.2.minified.js index f4148491e131..d4286d03401d 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnCallSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature_es5.1.normal.js index 9a8571f1cc03..a2b10c7847be 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature_es5.2.minified.js index f4148491e131..d4286d03401d 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature_es5.1.normal.js index 1f75e48ab021..09c2154ae93e 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature_es5.2.minified.js index f4148491e131..d4286d03401d 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature_es5.1.normal.js index ac1c0d9c4d9d..61e5eb3eb519 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature_es5.2.minified.js index f4148491e131..d4286d03401d 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature_es5.1.normal.js index ac1c0d9c4d9d..61e5eb3eb519 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature_es5.2.minified.js index f4148491e131..d4286d03401d 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty_es5.1.normal.js index b2232805129c..2a9d33835aa5 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A1 = function A1() { "use strict"; _class_call_check(this, A1); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty_es5.2.minified.js index ae3e72a6116a..a09ec04d90c0 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithNoRelationshipObjectsOnProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A1 = function() { "use strict"; _class_call_check(this, A1); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature_es5.1.normal.js index d18f96bf774f..63fb52bdfe99 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature_es5.2.minified.js index 4c8da75632d8..af223a1d07d8 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnCallSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature_es5.1.normal.js index 396e68653543..f4ddc4012c49 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature_es5.2.minified.js index 4c8da75632d8..af223a1d07d8 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnConstructorSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature_es5.1.normal.js index 6dec71fec676..53386d722bd3 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature_es5.2.minified.js index 4c8da75632d8..af223a1d07d8 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnIndexSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature_es5.1.normal.js index 296897693b4f..1df8d818c76e 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature_es5.2.minified.js index 4c8da75632d8..af223a1d07d8 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature_es5.1.normal.js index 2cd6c72a969d..a3e663a6a115 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature_es5.2.minified.js index 4c8da75632d8..af223a1d07d8 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty_es5.1.normal.js index acdb1e9e5d57..3039c7c018f0 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty_es5.2.minified.js index 8f4970015a44..3e86e8e246df 100644 --- a/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/comparisonOperatorWithSubtypeObjectOnProperty_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames10_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames10_ES5_es5.1.normal.js index 1325f0216cd6..0638b46b0083 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames10_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames10_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames10_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames10_ES5_es5.2.minified.js index b276d4adc42a..48f5a89149ea 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames10_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames10_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var s, n, a, _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _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/computedPropertyNames10_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames10_ES6_es5.1.normal.js index 127f52b30255..fa24828f8e92 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames10_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames10_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames10_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames10_ES6_es5.2.minified.js index b276d4adc42a..48f5a89149ea 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames10_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames10_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var s, n, a, _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames11_ES5_es5.1.normal.js index 384b5faf7b00..48a5294dc2c7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames11_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames11_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; // @target: es5 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames11_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames11_ES5_es5.2.minified.js index 6e2eb2b6d576..b4d33980267a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames11_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames11_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var s, n, a, _obj, _mutatorMap = {}; _obj = {}, _mutatorMap[s] = _mutatorMap[s] || {}, _mutatorMap[s].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames11_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames11_ES6_es5.1.normal.js index 7dcb8243bed3..04322a795f36 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames11_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames11_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; // @target: es6 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames11_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames11_ES6_es5.2.minified.js index 6e2eb2b6d576..b4d33980267a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames11_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames11_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var s, n, a, _obj, _mutatorMap = {}; _obj = {}, _mutatorMap[s] = _mutatorMap[s] || {}, _mutatorMap[s].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames13_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames13_ES5_es5.1.normal.js index cd25164cccac..9f56f855801a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames13_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames13_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames13_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames13_ES5_es5.2.minified.js index 2df63e9e4c73..07eb247904e0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames13_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames13_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var s, n, a, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames13_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames13_ES6_es5.1.normal.js index 54af550f298d..5a2011bc6b89 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames13_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames13_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames13_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames13_ES6_es5.2.minified.js index 2df63e9e4c73..07eb247904e0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames13_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames13_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var s, n, a, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames14_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames14_ES5_es5.1.normal.js index e2f5575c7ab9..14554bf31622 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames14_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames14_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var b; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames14_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames14_ES5_es5.2.minified.js index 38973618ce81..6f06bc91704a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames14_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames14_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var b, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames14_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames14_ES6_es5.1.normal.js index 83765d544f30..2d20c7bafcb6 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames14_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames14_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var b; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames14_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames14_ES6_es5.2.minified.js index 38973618ce81..6f06bc91704a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames14_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames14_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var b, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames15_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames15_ES5_es5.1.normal.js index 755cd762bc24..b175f54905a5 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames15_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames15_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var p1; var p2; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames15_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames15_ES5_es5.2.minified.js index 7d41903dbd83..d517fc56d1a7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames15_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames15_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var p1, p2, p3, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames15_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames15_ES6_es5.1.normal.js index 7df3d4bf773c..aa1ed515227c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames15_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames15_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var p1; var p2; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames15_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames15_ES6_es5.2.minified.js index 7d41903dbd83..d517fc56d1a7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames15_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames15_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var p1, p2, p3, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames16_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames16_ES5_es5.1.normal.js index 8c136e89c35c..c543fdad72f6 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames16_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames16_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames16_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames16_ES5_es5.2.minified.js index 2d02c5989fae..427e45bffe89 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames16_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames16_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var s, n, a, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames16_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames16_ES6_es5.1.normal.js index 86ed705ae1ef..a38d3174dc47 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames16_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames16_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames16_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames16_ES6_es5.2.minified.js index 2d02c5989fae..427e45bffe89 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames16_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames16_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var s, n, a, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames17_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames17_ES5_es5.1.normal.js index eb3071c209a2..d1d14e9a5dd8 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames17_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames17_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var b; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames17_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames17_ES5_es5.2.minified.js index 0034a96f1dd0..8231596dda66 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames17_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames17_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var b, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames17_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames17_ES6_es5.1.normal.js index f64ac79580e0..eec5ad138c0c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames17_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames17_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var b; var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames17_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames17_ES6_es5.2.minified.js index 0034a96f1dd0..8231596dda66 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames17_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames17_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var b, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames18_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames18_ES5_es5.1.normal.js index e8bf5e98b3b9..2b1c874a4c67 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames18_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames18_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 function foo() { var obj = _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames18_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames18_ES5_es5.2.minified.js index 51b7246c548c..fd5a8f748d2c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames18_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames18_ES5_es5.2.minified.js @@ -1 +1 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames18_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames18_ES6_es5.1.normal.js index 60f3b868afa1..ee219486566f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames18_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames18_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 function foo() { var obj = _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames18_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames18_ES6_es5.2.minified.js index 51b7246c548c..fd5a8f748d2c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames18_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames18_ES6_es5.2.minified.js @@ -1 +1 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames19_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames19_ES5_es5.1.normal.js index e1bf0c106b43..4e189ecd8faa 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames19_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames19_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var M; (function(M) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames19_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames19_ES5_es5.2.minified.js index bf35c512018a..52434cfe9d2d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames19_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames19_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !function(M) { _define_property({}, this.bar, 0); }(M || (M = {})); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames19_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames19_ES6_es5.1.normal.js index f928aac3ea18..5794d293df8b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames19_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames19_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var M; (function(M) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames19_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames19_ES6_es5.2.minified.js index bf35c512018a..52434cfe9d2d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames19_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames19_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !function(M) { _define_property({}, this.bar, 0); }(M || (M = {})); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames1_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames1_ES5_es5.1.normal.js index 94131d3a8521..8a3bc8ebd785 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames1_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames1_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; // @target: es5 var v = (_obj = {}, _mutatorMap[0 + 1] = _mutatorMap[0 + 1] || {}, _mutatorMap[0 + 1].get = function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames1_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames1_ES5_es5.2.minified.js index f54f3d3464a6..4ecb07bc7a53 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames1_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames1_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; _obj = {}, _mutatorMap[1] = _mutatorMap[1] || {}, _mutatorMap[1].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames1_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames1_ES6_es5.1.normal.js index 9158e7842ea3..2cd05bfd8317 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames1_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames1_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; // @target: es6 var v = (_obj = {}, _mutatorMap[0 + 1] = _mutatorMap[0 + 1] || {}, _mutatorMap[0 + 1].get = function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames1_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames1_ES6_es5.2.minified.js index f54f3d3464a6..4ecb07bc7a53 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames1_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames1_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; _obj = {}, _mutatorMap[1] = _mutatorMap[1] || {}, _mutatorMap[1].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames20_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames20_ES5_es5.1.normal.js index 4fd1c1137216..c01705f20057 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames20_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames20_ES5_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var obj = _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames20_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames20_ES5_es5.2.minified.js index ecc2a3edae40..f6b5d64bcd32 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames20_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames20_ES5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames20_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames20_ES6_es5.1.normal.js index ab24d2c629e0..02b0e7418fe3 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames20_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames20_ES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var obj = _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames20_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames20_ES6_es5.2.minified.js index ecc2a3edae40..f6b5d64bcd32 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames20_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames20_ES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, this.bar, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames21_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames21_ES5_es5.1.normal.js index fd4729f71333..d3b9b069e08e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames21_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames21_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames21_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames21_ES5_es5.2.minified.js index 960c198428e6..4f8ef9c9dde2 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames21_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames21_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames21_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames21_ES6_es5.1.normal.js index be913ab17caa..9937ac760a9a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames21_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames21_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames21_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames21_ES6_es5.2.minified.js index 960c198428e6..4f8ef9c9dde2 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames21_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames21_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames22_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames22_ES5_es5.1.normal.js index f25e0a657135..6de11078835e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames22_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames22_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames22_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames22_ES5_es5.2.minified.js index f665187317e8..b491bf68d537 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames22_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames22_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames22_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames22_ES6_es5.1.normal.js index 3d46389ca62c..9b4c7abec2e1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames22_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames22_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames22_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames22_ES6_es5.2.minified.js index f665187317e8..b491bf68d537 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames22_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames22_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames23_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames23_ES5_es5.1.normal.js index 49f68a819b6e..a74303222987 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames23_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames23_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames23_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames23_ES5_es5.2.minified.js index ca9f8172f76d..b4f45bffa1ce 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames23_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames23_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames23_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames23_ES6_es5.1.normal.js index da711bfc9ae7..bed071da2778 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames23_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames23_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames23_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames23_ES6_es5.2.minified.js index ca9f8172f76d..b4f45bffa1ce 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames23_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames23_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames24_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames24_ES5_es5.1.normal.js index 84eaf849075d..21672e3a0adf 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames24_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames24_ES5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es5 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames24_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames24_ES5_es5.2.minified.js index 81774c49d09e..c16f07b7a6bb 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames24_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames24_ES5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames24_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames24_ES6_es5.1.normal.js index 786e00896be6..2e9f514b08f6 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames24_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames24_ES6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es6 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames24_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames24_ES6_es5.2.minified.js index 81774c49d09e..c16f07b7a6bb 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames24_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames24_ES6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames25_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames25_ES5_es5.1.normal.js index cb5f76987539..cf5b3b37866b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames25_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames25_ES5_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es5 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames25_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames25_ES5_es5.2.minified.js index 0f745ef57f04..cb5b29039ab7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames25_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames25_ES5_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames25_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames25_ES6_es5.1.normal.js index 2e40930f4ced..d8c2e5f70bbb 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames25_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames25_ES6_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es6 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames25_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames25_ES6_es5.2.minified.js index 0f745ef57f04..cb5b29039ab7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames25_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames25_ES6_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames26_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames26_ES5_es5.1.normal.js index 07d6ab58a938..d92d84341c49 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames26_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames26_ES5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es5 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames26_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames26_ES5_es5.2.minified.js index 76e7e1e9c384..b80ff8aa1a40 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames26_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames26_ES5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames26_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames26_ES6_es5.1.normal.js index 7b44f1bad241..36349da91b98 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames26_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames26_ES6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es6 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames26_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames26_ES6_es5.2.minified.js index 76e7e1e9c384..b80ff8aa1a40 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames26_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames26_ES6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames27_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames27_ES5_es5.1.normal.js index 74430526ec89..c18a56b90946 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames27_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames27_ES5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es5 var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames27_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames27_ES5_es5.2.minified.js index 4ba2afbfca13..a39caf324bd1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames27_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames27_ES5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames27_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames27_ES6_es5.1.normal.js index 1eacb4324862..e94ebca3aa36 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames27_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames27_ES6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es6 var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames27_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames27_ES6_es5.2.minified.js index 4ba2afbfca13..a39caf324bd1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames27_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames27_ES6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames28_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames28_ES5_es5.1.normal.js index cd5cc91c70c0..bd85fc062231 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames28_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames28_ES5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es5 var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames28_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames28_ES5_es5.2.minified.js index 2ecb4ca8e721..37427eb14a18 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames28_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames28_ES5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames28_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames28_ES6_es5.1.normal.js index 9e93cd583b8c..675efe17443d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames28_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames28_ES6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es6 var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames28_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames28_ES6_es5.2.minified.js index 2ecb4ca8e721..37427eb14a18 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames28_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames28_ES6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames29_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames29_ES5_es5.1.normal.js index 637662e14f6c..16ee9754e785 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames29_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames29_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames29_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames29_ES5_es5.2.minified.js index 79b3cba41596..02724a0f9769 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames29_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames29_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames29_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames29_ES6_es5.1.normal.js index f9bd39a7683d..fc771e40d290 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames29_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames29_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames29_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames29_ES6_es5.2.minified.js index 79b3cba41596..02724a0f9769 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames29_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames29_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames2_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames2_ES5_es5.1.normal.js index 8f25eb8a5455..28efb9ccd439 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames2_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames2_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var methodName = "method"; var accessorName = "accessor"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames2_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames2_ES5_es5.2.minified.js index a3092e696fed..b64b17024393 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames2_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames2_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var methodName = "method", accessorName = "accessor", C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames2_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames2_ES6_es5.1.normal.js index c3b77c0b1021..ddc3faf7822f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames2_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames2_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var methodName = "method"; var accessorName = "accessor"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames2_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames2_ES6_es5.2.minified.js index a3092e696fed..b64b17024393 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames2_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames2_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var methodName = "method", accessorName = "accessor", C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames30_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames30_ES5_es5.1.normal.js index eb269baaa920..b92551e18247 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames30_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames30_ES5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es5 var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames30_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames30_ES5_es5.2.minified.js index 69f88312ffad..639f3cc0d369 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames30_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames30_ES5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames30_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames30_ES6_es5.1.normal.js index e84221d835a7..9f4c7aa51319 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames30_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames30_ES6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es6 var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames30_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames30_ES6_es5.2.minified.js index 69f88312ffad..639f3cc0d369 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames30_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames30_ES6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames31_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames31_ES5_es5.1.normal.js index 3a49311d91aa..396dec40ff5c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames31_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames31_ES5_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es5 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames31_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames31_ES5_es5.2.minified.js index b864100f5e3e..8eb79eb9bbd8 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames31_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames31_ES5_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames31_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames31_ES6_es5.1.normal.js index 2022c95ff384..f237cedbe45f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames31_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames31_ES6_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es6 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames31_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames31_ES6_es5.2.minified.js index b864100f5e3e..8eb79eb9bbd8 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames31_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames31_ES6_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames32_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames32_ES5_es5.1.normal.js index fc5a8e661bdb..60397669061c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames32_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames32_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 function foo() { return ""; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames32_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames32_ES5_es5.2.minified.js index 9c979f6940ec..7292416f8a2d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames32_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames32_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames32_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames32_ES6_es5.1.normal.js index a1af62a46b6a..4b57122dbf9a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames32_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames32_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 function foo() { return ""; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames32_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames32_ES6_es5.2.minified.js index 9c979f6940ec..7292416f8a2d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames32_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames32_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames33_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames33_ES5_es5.1.normal.js index 20f0fdd69302..df3778f67e70 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames33_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames33_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 function foo() { return ""; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames33_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames33_ES5_es5.2.minified.js index 735c58f10709..006ab7aac266 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames33_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames33_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames33_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames33_ES6_es5.1.normal.js index d5b9c9c2c3c3..d27db4f8eea5 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames33_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames33_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 function foo() { return ""; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames33_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames33_ES6_es5.2.minified.js index 735c58f10709..006ab7aac266 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames33_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames33_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames34_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames34_ES5_es5.1.normal.js index 7c98295a2b93..9c2becdf6a53 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames34_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames34_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 function foo() { return ""; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames34_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames34_ES5_es5.2.minified.js index 9a11ddc12c06..c506867b9471 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames34_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames34_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames34_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames34_ES6_es5.1.normal.js index ae21cd245b96..ddf400c34cc0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames34_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames34_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 function foo() { return ""; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames34_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames34_ES6_es5.2.minified.js index 9a11ddc12c06..c506867b9471 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames34_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames34_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames36_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames36_ES5_es5.1.normal.js index 2762ba05d3fe..b7916d4601bf 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames36_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames36_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames36_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames36_ES5_es5.2.minified.js index 9f4d4ca97399..28376c9f9988 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames36_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames36_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames36_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames36_ES6_es5.1.normal.js index ec3f89901970..27aa431c3681 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames36_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames36_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames36_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames36_ES6_es5.2.minified.js index 9f4d4ca97399..28376c9f9988 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames36_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames36_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames37_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames37_ES5_es5.1.normal.js index 2762ba05d3fe..b7916d4601bf 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames37_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames37_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames37_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames37_ES5_es5.2.minified.js index 9f4d4ca97399..28376c9f9988 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames37_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames37_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames37_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames37_ES6_es5.1.normal.js index ec3f89901970..27aa431c3681 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames37_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames37_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames37_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames37_ES6_es5.2.minified.js index 9f4d4ca97399..28376c9f9988 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames37_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames37_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames38_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames38_ES5_es5.1.normal.js index 566f9b328759..8e255023e602 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames38_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames38_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames38_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames38_ES5_es5.2.minified.js index c30fc3538caf..c5565d0dbd55 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames38_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames38_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames38_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames38_ES6_es5.1.normal.js index 600a258a20c3..e116c46b1cfa 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames38_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames38_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames38_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames38_ES6_es5.2.minified.js index c30fc3538caf..c5565d0dbd55 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames38_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames38_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames39_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames39_ES5_es5.1.normal.js index 566f9b328759..8e255023e602 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames39_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames39_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames39_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames39_ES5_es5.2.minified.js index c30fc3538caf..c5565d0dbd55 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames39_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames39_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames39_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames39_ES6_es5.1.normal.js index 600a258a20c3..e116c46b1cfa 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames39_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames39_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames39_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames39_ES6_es5.2.minified.js index c30fc3538caf..c5565d0dbd55 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames39_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames39_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames40_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames40_ES5_es5.1.normal.js index 4f22a9d9dd08..2a3d33434a02 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames40_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames40_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames40_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames40_ES5_es5.2.minified.js index 0f7e7367f43f..3bf929deb414 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames40_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames40_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames40_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames40_ES6_es5.1.normal.js index 46271ab3cf6a..872709a90115 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames40_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames40_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames40_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames40_ES6_es5.2.minified.js index 0f7e7367f43f..3bf929deb414 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames40_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames40_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames41_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames41_ES5_es5.1.normal.js index 686d8020aa39..963ae14f7065 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames41_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames41_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames41_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames41_ES5_es5.2.minified.js index d898392b60d5..5056b5e9a16c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames41_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames41_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames41_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames41_ES6_es5.1.normal.js index fcb851d551c1..7fac41ad7c91 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames41_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames41_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames41_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames41_ES6_es5.2.minified.js index d898392b60d5..5056b5e9a16c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames41_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames41_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames42_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames42_ES5_es5.1.normal.js index fcbfa6bfbfa4..fdfb3dc30a9a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames42_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames42_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames42_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames42_ES5_es5.2.minified.js index 6cf1c82029a4..ea3ee3a01f4d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames42_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames42_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames42_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames42_ES6_es5.1.normal.js index c17692c8d4c8..3b77a6aaef0e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames42_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames42_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames42_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames42_ES6_es5.2.minified.js index 6cf1c82029a4..ea3ee3a01f4d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames42_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames42_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames43_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames43_ES5_es5.1.normal.js index 13fb65245270..75675030d0b0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames43_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames43_ES5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames43_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames43_ES5_es5.2.minified.js index 43aafd755f6b..7dd9107a38a1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames43_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames43_ES5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames43_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames43_ES6_es5.1.normal.js index 522ff6b48060..02794aa6e923 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames43_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames43_ES6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames43_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames43_ES6_es5.2.minified.js index 43aafd755f6b..7dd9107a38a1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames43_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames43_ES6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames44_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames44_ES5_es5.1.normal.js index f1094b42da8c..43af8c85135c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames44_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames44_ES5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames44_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames44_ES5_es5.2.minified.js index 10d34b9ca355..5ac8682b3348 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames44_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames44_ES5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames44_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames44_ES6_es5.1.normal.js index b3734ab3f3fc..b45cf57943e1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames44_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames44_ES6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames44_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames44_ES6_es5.2.minified.js index 10d34b9ca355..5ac8682b3348 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames44_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames44_ES6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames45_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames45_ES5_es5.1.normal.js index f1094b42da8c..43af8c85135c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames45_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames45_ES5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es5 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames45_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames45_ES5_es5.2.minified.js index 10d34b9ca355..5ac8682b3348 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames45_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames45_ES5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames45_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames45_ES6_es5.1.normal.js index b3734ab3f3fc..b45cf57943e1 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames45_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames45_ES6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames45_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames45_ES6_es5.2.minified.js index 10d34b9ca355..5ac8682b3348 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames45_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames45_ES6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames46_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames46_ES5_es5.1.normal.js index 42da79ed99d1..12dd57aca29c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames46_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames46_ES5_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var o = _define_property({}, "" || 0, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames46_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames46_ES5_es5.2.minified.js index 2e6bc90d4057..8eb47265cdc3 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames46_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames46_ES5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, 0, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames46_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames46_ES6_es5.1.normal.js index 2f4f4dcc02ab..47d1ffdde7b3 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames46_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames46_ES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var o = _define_property({}, "" || 0, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames46_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames46_ES6_es5.2.minified.js index 2e6bc90d4057..8eb47265cdc3 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames46_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames46_ES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, 0, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames47_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames47_ES5_es5.1.normal.js index 6e973ecc4aa6..bdd4b026bdee 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames47_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames47_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var // @target: es5 E1; (function(E1) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames47_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames47_ES5_es5.2.minified.js index c14b3dc63b20..43bd896a5373 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames47_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames47_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var E1, E2; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !function(E1) { E1[E1.x = 0] = "x"; }(E1 || (E1 = {})), function(E2) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames47_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames47_ES6_es5.1.normal.js index 94188675be19..f773c037d8d6 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames47_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames47_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var // @target: es6 E1; (function(E1) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames47_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames47_ES6_es5.2.minified.js index c14b3dc63b20..43bd896a5373 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames47_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames47_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var E1, E2; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !function(E1) { E1[E1.x = 0] = "x"; }(E1 || (E1 = {})), function(E2) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames48_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames48_ES5_es5.1.normal.js index 00000644fa84..b4527d4890b6 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames48_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames48_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var E; (function(E) { E[E["x"] = 0] = "x"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames48_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames48_ES5_es5.2.minified.js index 0280a9dd0057..24f52312ae70 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames48_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames48_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var E, a; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !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/computedPropertyNames48_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames48_ES6_es5.1.normal.js index 00000644fa84..b4527d4890b6 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames48_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames48_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var E; (function(E) { E[E["x"] = 0] = "x"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames48_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames48_ES6_es5.2.minified.js index 0280a9dd0057..24f52312ae70 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames48_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames48_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var E, a; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames4_ES5_es5.1.normal.js index 570d62a1dcd8..098930b1a664 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames4_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames4_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames4_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames4_ES5_es5.2.minified.js index 7667a1e4d56f..bc0219183c47 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames4_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames4_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var s, n, a, _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _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/computedPropertyNames4_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames4_ES6_es5.1.normal.js index 679933914d4c..f64b3bc82242 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames4_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames4_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var s; var n; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames4_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames4_ES6_es5.2.minified.js index 7667a1e4d56f..bc0219183c47 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames4_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames4_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var s, n, a, _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames51_ES5_es5.1.normal.js index 686a00e0aecd..520a60561415 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames51_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames51_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; function f() { var t; var k; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames51_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames51_ES5_es5.2.minified.js index 51b7246c548c..fd5a8f748d2c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames51_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames51_ES5_es5.2.minified.js @@ -1 +1 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames51_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames51_ES6_es5.1.normal.js index 415da11b5745..b617840d5249 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames51_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames51_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 function f() { var t; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames51_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames51_ES6_es5.2.minified.js index 51b7246c548c..fd5a8f748d2c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames51_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames51_ES6_es5.2.minified.js @@ -1 +1 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames5_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames5_ES5_es5.1.normal.js index 522db09cf5d7..c475e3577a24 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames5_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames5_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var b; var _obj; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames5_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames5_ES5_es5.2.minified.js index 3d73cf100f1a..b281492e5811 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames5_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames5_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, void 0, 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/computedPropertyNames5_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames5_ES6_es5.1.normal.js index 29cc2bb27c4b..6004cc21ae47 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames5_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames5_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var b; var _obj; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames5_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames5_ES6_es5.2.minified.js index 3d73cf100f1a..b281492e5811 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames5_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames5_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, void 0, 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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames6_ES5_es5.1.normal.js index fc9f4960cb9c..b188a3f4cb0e 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames6_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames6_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 var p1; var p2; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames6_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames6_ES5_es5.2.minified.js index bfe558826140..816c2ca3d2d9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames6_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames6_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var p2, p3, _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, void 0, 0), _define_property(_obj, p2, 1), _define_property(_obj, p3, 2); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames6_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames6_ES6_es5.1.normal.js index da185cb2f57d..b58190a41a9a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames6_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames6_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 var p1; var p2; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames6_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames6_ES6_es5.2.minified.js index bfe558826140..816c2ca3d2d9 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames6_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames6_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var p2, p3, _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, void 0, 0), _define_property(_obj, p2, 1), _define_property(_obj, p3, 2); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames7_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames7_ES5_es5.1.normal.js index 5a52a3520f5e..9cb11b8e0b4b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames7_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames7_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var // @target: es5 E; (function(E) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames7_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames7_ES5_es5.2.minified.js index 1251f1ab7f02..44cc70ebc3e5 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames7_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames7_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var E; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !function(E) { E[E.member = 0] = "member"; }(E || (E = {})), _define_property({}, E.member, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames7_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames7_ES6_es5.1.normal.js index 796f38692b13..b3fcb088b8a3 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames7_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames7_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var // @target: es6 E; (function(E) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNames7_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames7_ES6_es5.2.minified.js index 1251f1ab7f02..44cc70ebc3e5 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames7_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames7_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var E; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !function(E) { E[E.member = 0] = "member"; }(E || (E = {})), _define_property({}, E.member, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNames8_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames8_ES5_es5.1.normal.js index 3e3b1a90622f..b3ed611a0652 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames8_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames8_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5 function f() { var t; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames8_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames8_ES5_es5.2.minified.js index 51b7246c548c..fd5a8f748d2c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames8_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames8_ES5_es5.2.minified.js @@ -1 +1 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames8_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames8_ES6_es5.1.normal.js index 9a4b39293a25..793ef2426408 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames8_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames8_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es6 function f() { var t; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames8_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames8_ES6_es5.2.minified.js index 51b7246c548c..fd5a8f748d2c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames8_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames8_ES6_es5.2.minified.js @@ -1 +1 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; diff --git a/crates/swc/tests/tsc-references/computedPropertyNames9_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames9_ES5_es5.1.normal.js index f51d8cf81d1d..895f615cb61a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames9_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames9_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames9_ES5_es5.2.minified.js index 1513dedcf517..54ce8a5d11db 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames9_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames9_ES5_es5.2.minified.js @@ -1,4 +1,4 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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/computedPropertyNames9_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNames9_ES6_es5.1.normal.js index f51d8cf81d1d..895f615cb61a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames9_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames9_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNames9_ES6_es5.2.minified.js index 1513dedcf517..54ce8a5d11db 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNames9_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNames9_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5_es5.1.normal.js index f4e88eadbbbe..3d110c773229 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5_es5.2.minified.js index 6c7425840103..6ce34ae9eaa7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES6_es5.1.normal.js index f4e88eadbbbe..3d110c773229 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", ""), _define_property(_obj, +"bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES6_es5.2.minified.js index 6c7425840103..6ce34ae9eaa7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType10_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5_es5.1.normal.js index 8be4bf4cbc19..cd68d41c2de4 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, "" + 0, function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5_es5.2.minified.js index 91333ea6df42..93d4c4923c73 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, "0", function(y) { return y.length; }), _define_property(_obj, "1", function(y) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES6_es5.1.normal.js index 8be4bf4cbc19..cd68d41c2de4 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, "" + 0, function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES6_es5.2.minified.js index 91333ea6df42..93d4c4923c73 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType1_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5_es5.1.normal.js index 18c6d6a06060..a5ca47acecab 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5_es5.2.minified.js index 2305eb4710a3..802c297fccfa 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, NaN, function(y) { return y.length; }), _define_property(_obj, NaN, function(y) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES6_es5.1.normal.js index 18c6d6a06060..a5ca47acecab 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES6_es5.2.minified.js index 2305eb4710a3..802c297fccfa 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType2_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5_es5.1.normal.js index 18c6d6a06060..a5ca47acecab 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5_es5.2.minified.js index 2305eb4710a3..802c297fccfa 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, NaN, function(y) { return y.length; }), _define_property(_obj, NaN, function(y) { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES6_es5.1.normal.js index 18c6d6a06060..a5ca47acecab 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", function(y) { return y.length; diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES6_es5.2.minified.js index 2305eb4710a3..802c297fccfa 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType3_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5_es5.1.normal.js index 8d3db0f1cb5d..2d5a22521c7c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5_es5.2.minified.js index a10da9a248b8..0d18c320c151 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, "foo", ""), _define_property(_obj, "bar", 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES6_es5.1.normal.js index 8d3db0f1cb5d..2d5a22521c7c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, "" + "foo", ""), _define_property(_obj, "" + "bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES6_es5.2.minified.js index a10da9a248b8..0d18c320c151 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType4_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, "foo", ""), _define_property(_obj, "bar", 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5_es5.1.normal.js index f4e88eadbbbe..3d110c773229 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5_es5.2.minified.js index 6c7425840103..6ce34ae9eaa7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES6_es5.1.normal.js index f4e88eadbbbe..3d110c773229 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", ""), _define_property(_obj, +"bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES6_es5.2.minified.js index 6c7425840103..6ce34ae9eaa7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType5_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5_es5.1.normal.js index a41bfa02f16e..bb0a6e833fad 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; foo((_obj = { p: "", diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5_es5.2.minified.js index 6518e95aef96..5d5040f9cc75 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; foo((_define_property(_obj = { p: "", 0: function() {} diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES6_es5.1.normal.js index a41bfa02f16e..bb0a6e833fad 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; foo((_obj = { p: "", diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES6_es5.2.minified.js index 6518e95aef96..5d5040f9cc75 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType6_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; foo((_define_property(_obj = { p: "", 0: function() {} diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5_es5.1.normal.js index 6997f634fc56..a6a3ec77fd85 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; foo((_obj = { 0: function() {} diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5_es5.2.minified.js index b12b3829d3f5..5d88233d64ba 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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/computedPropertyNamesContextualType7_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES6_es5.1.normal.js index 6997f634fc56..a6a3ec77fd85 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; foo((_obj = { 0: function() {} diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES6_es5.2.minified.js index b12b3829d3f5..5d88233d64ba 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType7_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5_es5.1.normal.js index 8d3db0f1cb5d..2d5a22521c7c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5_es5.2.minified.js index a10da9a248b8..0d18c320c151 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, "foo", ""), _define_property(_obj, "bar", 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES6_es5.1.normal.js index 8d3db0f1cb5d..2d5a22521c7c 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, "" + "foo", ""), _define_property(_obj, "" + "bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES6_es5.2.minified.js index a10da9a248b8..0d18c320c151 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType8_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, "foo", ""), _define_property(_obj, "bar", 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5_es5.1.normal.js index f4e88eadbbbe..3d110c773229 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5_es5.2.minified.js index 6c7425840103..6ce34ae9eaa7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES6_es5.1.normal.js index f4e88eadbbbe..3d110c773229 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var o = (_obj = {}, _define_property(_obj, +"foo", ""), _define_property(_obj, +"bar", 0), _obj); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES6_es5.2.minified.js index 6c7425840103..6ce34ae9eaa7 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesContextualType9_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, NaN, ""), _define_property(_obj, NaN, 0); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5_es5.1.normal.js index 8374a552ce7c..9e5593ccfb9d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 // @declaration: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5_es5.2.minified.js index 4b6079a9a469..47056cebdd51 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES6_es5.1.normal.js index 0a8916ac7fcf..9c1238e65445 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 // @declaration: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES6_es5.2.minified.js index 4b6079a9a469..47056cebdd51 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit1_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5_es5.1.normal.js index f7b196ab69a8..336833f2eda2 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 // @declaration: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5_es5.2.minified.js index 661c7293adf9..77e300d0006b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES6_es5.1.normal.js index 3e8246ce4218..53cd17317056 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 // @declaration: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES6_es5.2.minified.js index 661c7293adf9..77e300d0006b 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit2_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5_es5.1.normal.js index b9fbaecba0f6..439511a21082 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; // @target: es5 // @declaration: true diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5_es5.2.minified.js index 47ec21f1ddf0..8585a6512729 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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/computedPropertyNamesDeclarationEmit5_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES6_es5.1.normal.js index 8233cf3fbe07..28d57679e40d 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; // @target: es6 // @declaration: true diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES6_es5.2.minified.js index 47ec21f1ddf0..8585a6512729 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit5_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5_es5.1.normal.js index 39ea713ecb53..215d02e13215 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; // @target: es5 // @declaration: true diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5_es5.2.minified.js index 7e1d6aed0521..1129f0e102a4 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, -1, {}), _define_property(_obj, 1, {}), _define_property(_obj, -2, {}), _define_property(_obj, !1, {}); diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES6_es5.1.normal.js index 3bba06de7645..e7c96adefe29 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; // @target: es6 // @declaration: true diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES6_es5.2.minified.js index 7e1d6aed0521..1129f0e102a4 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesDeclarationEmit6_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5_es5.1.normal.js index 866717bf8179..e65d2f3778e0 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 // @sourceMap: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5_es5.2.minified.js index 52a81abc794e..f8eb364ed336 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES6_es5.1.normal.js index f20c5fc38cd9..a88b98bc117f 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 // @sourceMap: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES6_es5.2.minified.js index 52a81abc794e..f8eb364ed336 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap1_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5_es5.1.normal.js index ff15e25c920f..de77c80c820a 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; // @target: es5 // @sourceMap: true diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5_es5.2.minified.js index 87ab9e61d41e..c913f944d871 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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/computedPropertyNamesSourceMap2_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES6_es5.1.normal.js index b616879958a1..4451c1eeebbf 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; // @target: es6 // @sourceMap: true diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES6_es5.2.minified.js index 87ab9e61d41e..c913f944d871 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesSourceMap2_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es2015.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es2015.1.normal.js index 445a86988d5f..4cf06b229632 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_name_tdz_error from "@swc/helpers/lib/_class_name_tdz_error.js"; +import _class_name_tdz_error from "@swc/helpers/src/_class_name_tdz_error.mjs"; 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; // @target: es6 class C { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es2015.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es2015.2.minified.js index 572c21a2a265..a8763620d305 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_name_tdz_error from "@swc/helpers/lib/_class_name_tdz_error.js"; +import _class_name_tdz_error from "@swc/helpers/src/_class_name_tdz_error.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es5.1.normal.js index 03a1193f373d..51c918ebcd42 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_name_tdz_error from "@swc/helpers/lib/_class_name_tdz_error.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_name_tdz_error from "@swc/helpers/src/_class_name_tdz_error.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var _staticProp = (_class_name_tdz_error("C"), C).staticProp, _staticProp1 = (_class_name_tdz_error("C"), C).staticProp, _staticProp2 = (_class_name_tdz_error("C"), C).staticProp; // @target: es6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es5.2.minified.js index e93ad341e2dd..7a6915fc0410 100644 --- a/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/computedPropertyNamesWithStaticProperty_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_name_tdz_error from "@swc/helpers/lib/_class_name_tdz_error.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_name_tdz_error from "@swc/helpers/src/_class_name_tdz_error.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var _staticProp = (_class_name_tdz_error("C"), C).staticProp, _staticProp1 = (_class_name_tdz_error("C"), C).staticProp, _staticProp2 = (_class_name_tdz_error("C"), C).staticProp, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType_es5.1.normal.js b/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType_es5.1.normal.js index d2dd2950e8ba..fe766b5c129e 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; //Cond ? Expr1 : Expr2, Cond is of string type, Expr1 and Expr2 have the same type var condString; var exprAny1; diff --git a/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType_es5.2.minified.js b/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType_es5.2.minified.js index e3d5f7b2e7ca..eb5675f7340f 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorConditoinIsStringType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var condString, array = [ "1", "2", diff --git a/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT_es5.1.normal.js b/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT_es5.1.normal.js index aa89510f0258..844ebdae2827 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //Cond ? Expr1 : Expr2, Expr1 and Expr2 have identical best common type var X = function X() { "use strict"; diff --git a/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT_es5.2.minified.js b/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT_es5.2.minified.js index 84b4114469c6..6b22da60ceb1 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorWithIdenticalBCT_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var X = function() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT_es5.1.normal.js b/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT_es5.1.normal.js index 4178814e53f2..9124fb0fceb9 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //Cond ? Expr1 : Expr2, Expr1 and Expr2 have no identical best common type var X = function X() { "use strict"; diff --git a/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT_es5.2.minified.js b/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT_es5.2.minified.js index 84b4114469c6..6b22da60ceb1 100644 --- a/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/conditionalOperatorWithoutIdenticalBCT_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var X = function() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/conditionalTypes2_es5.1.normal.js b/crates/swc/tests/tsc-references/conditionalTypes2_es5.1.normal.js index 28d79cc47088..c78c82ff3e87 100644 --- a/crates/swc/tests/tsc-references/conditionalTypes2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/conditionalTypes2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function f1(a, b) { a = b; b = a; // Error diff --git a/crates/swc/tests/tsc-references/conditionalTypes2_es5.2.minified.js b/crates/swc/tests/tsc-references/conditionalTypes2_es5.2.minified.js index dad8a861d197..cfd09863feae 100644 --- a/crates/swc/tests/tsc-references/conditionalTypes2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/conditionalTypes2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Opt = function() { "use strict"; function Opt() { diff --git a/crates/swc/tests/tsc-references/constEnumPropertyAccess1_es5.1.normal.js b/crates/swc/tests/tsc-references/constEnumPropertyAccess1_es5.1.normal.js index aa2825b31613..6b0aa41d85aa 100644 --- a/crates/swc/tests/tsc-references/constEnumPropertyAccess1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constEnumPropertyAccess1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var // @declaration: true // @target: es6 // constant enum declarations are completely erased in the emitted JavaScript code. diff --git a/crates/swc/tests/tsc-references/constEnumPropertyAccess1_es5.2.minified.js b/crates/swc/tests/tsc-references/constEnumPropertyAccess1_es5.2.minified.js index 59b488618903..cf7fa38718db 100644 --- a/crates/swc/tests/tsc-references/constEnumPropertyAccess1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constEnumPropertyAccess1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; !function(G) { G[G.A = 1] = "A", G[G.B = 2] = "B", G[G.C = 3] = "C", G[G.D = 2] = "D"; }(G || (G = {})); diff --git a/crates/swc/tests/tsc-references/constraintSatisfactionWithAny_es5.1.normal.js b/crates/swc/tests/tsc-references/constraintSatisfactionWithAny_es5.1.normal.js index 0ff8b4ebb933..5a1b9b2f35e5 100644 --- a/crates/swc/tests/tsc-references/constraintSatisfactionWithAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constraintSatisfactionWithAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // any is not a valid type argument unless there is no constraint, or the constraint is any function foo(x) { return null; diff --git a/crates/swc/tests/tsc-references/constraintSatisfactionWithAny_es5.2.minified.js b/crates/swc/tests/tsc-references/constraintSatisfactionWithAny_es5.2.minified.js index 7f2e9fed64c5..040bc58c01bb 100644 --- a/crates/swc/tests/tsc-references/constraintSatisfactionWithAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constraintSatisfactionWithAny_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var a, b, C = function(x) { "use strict"; _class_call_check(this, C), this.x = x; diff --git a/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject_es5.1.normal.js b/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject_es5.1.normal.js index 2c53b74ea8e2..7aa00d400dc4 100644 --- a/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // valid uses of a basic object constraint, no errors expected // Object constraint function foo(x) {} diff --git a/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject_es5.2.minified.js b/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject_es5.2.minified.js index 3aaf7623fa14..c173c773945c 100644 --- a/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constraintSatisfactionWithEmptyObject_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo(x) {} foo({}), foo({}); var C = function(x) { diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2_es5.1.normal.js index af678c792485..1306d45be527 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3_es5.1.normal.js index e51f6a6a198a..df55724dd15e 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation // error cases var Errors; diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3_es5.2.minified.js index a262ec1ddce3..89e49e37b0a7 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance3_es5.2.minified.js @@ -1,7 +1,7 @@ var Errors; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(Errors) { var Base1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4_es5.1.normal.js index af678c792485..1306d45be527 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5_es5.1.normal.js index 1cf6ef6fd5ee..f3e3768a9bfd 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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 var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6_es5.1.normal.js index 3d16cc5324ed..382e5dd86e89 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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 diff --git a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignatureAssignabilityInInheritance6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads_es5.1.normal.js index cda1966fb420..fa6bc2b1c440 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Duplicate overloads of construct signatures should generate errors var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads_es5.2.minified.js index c837b6a2f03c..228d01b0007d 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithIdenticalOverloads_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, i2, a, b, C = function(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2_es5.1.normal.js index 463ce016d277..65a5e50c5ed7 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // No errors expected for basic overloads of construct signatures with merged declarations // clodules var C = function C(x) { diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2_es5.2.minified.js index e0cdec8ef4fd..bb7d8b57dc5a 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i2, C = function(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType_es5.1.normal.js index 3a4ef73afe3f..7d2f57693a79 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Error for construct signature overloads to differ only by return type var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType_es5.2.minified.js index 837711813824..33683b3e8448 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloadsThatDifferOnlyByReturnType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads_es5.1.normal.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads_es5.1.normal.js index 3956d9fdb231..55c36e63878d 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // No errors expected for basic overloads of construct signatures var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads_es5.2.minified.js b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads_es5.2.minified.js index c837b6a2f03c..228d01b0007d 100644 --- a/crates/swc/tests/tsc-references/constructSignaturesWithOverloads_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructSignaturesWithOverloads_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, i2, a, b, C = function(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis_es5.1.normal.js index a4f47868da75..619cfaa6c0a3 100644 --- a/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis_es5.2.minified.js index 03e6f72bbac2..a95e48b83e7a 100644 --- a/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorDefaultValuesReferencingThis_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; arguments.length > 0 && void 0 !== arguments[0] && arguments[0], _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass_es5.1.normal.js index ba0213c736e3..da68170acbba 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @noEmit: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass_es5.2.minified.js index 81ccddfc06fe..76541eaaf277 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctionMergeWithClass_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var SomeClass = function() { this.otherProp = 0; }; diff --git a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2_es5.1.normal.js index 58bf4f9fb330..1e335d1b7fb0 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // the constructor function itself does not need to be a subtype of the base type constructor function var Base = function Base(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2_es5.2.minified.js index 30d2c28bd5a1..c4b2e07d8d8d 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType2_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType_es5.1.normal.js index 801d419243b2..d2cf94a43910 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType_es5.2.minified.js index 4336fb813160..a6b005fcf407 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctionTypeIsAssignableToBaseType_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/constructorFunctionsStrict_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctionsStrict_es5.1.normal.js index 8b0988d8fdf6..a833012771a8 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionsStrict_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctionsStrict_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/constructorFunctionsStrict_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctionsStrict_es5.2.minified.js index ceb3e18493b1..31cbe6f75886 100644 --- a/crates/swc/tests/tsc-references/constructorFunctionsStrict_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctionsStrict_es5.2.minified.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; function C(x) { this.x = x; } diff --git a/crates/swc/tests/tsc-references/constructorFunctions_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorFunctions_es5.1.normal.js index fa8667e39b60..465e9ce9a579 100644 --- a/crates/swc/tests/tsc-references/constructorFunctions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorFunctions_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/constructorFunctions_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorFunctions_es5.2.minified.js index 810115965145..c5b4e2473658 100644 --- a/crates/swc/tests/tsc-references/constructorFunctions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorFunctions_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; function C1() { if (!_instanceof(this, C1)) return new C1(); this.x = 1; diff --git a/crates/swc/tests/tsc-references/constructorHasPrototypeProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorHasPrototypeProperty_es5.1.normal.js index 813feb0a4d4a..1149a690f884 100644 --- a/crates/swc/tests/tsc-references/constructorHasPrototypeProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorHasPrototypeProperty_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var NonGeneric; (function(NonGeneric) { var C = function C() { diff --git a/crates/swc/tests/tsc-references/constructorHasPrototypeProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorHasPrototypeProperty_es5.2.minified.js index bd677f1e7439..a98b93d43496 100644 --- a/crates/swc/tests/tsc-references/constructorHasPrototypeProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorHasPrototypeProperty_es5.2.minified.js @@ -1,7 +1,7 @@ var NonGeneric, Generic; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(NonGeneric) { var C1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2_es5.1.normal.js index ea1d9b7ad26c..f41d3be41ebb 100644 --- a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2_es5.2.minified.js index 72d09fb19477..7c8528093bed 100644 --- a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; var x = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1; diff --git a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues_es5.1.normal.js index b47060de6b8e..4443e39c5482 100644 --- a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues_es5.2.minified.js index 6937c7602da8..38fdc6bb55d3 100644 --- a/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorImplementationWithDefaultValues_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; arguments.length > 0 && void 0 !== arguments[0] && arguments[0], _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters_es5.1.normal.js index e8053dfa20d3..fc9301df4f57 100644 --- a/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters_es5.2.minified.js index 936c11c91edb..b1d9b8780f44 100644 --- a/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorOverloadsWithOptionalParameters_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorParameterProperties2_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorParameterProperties2_es5.1.normal.js index 3573f994612c..12e5e358f276 100644 --- a/crates/swc/tests/tsc-references/constructorParameterProperties2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorParameterProperties2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C(y) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorParameterProperties2_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorParameterProperties2_es5.2.minified.js index 76b5f5920d33..d9234fb60280 100644 --- a/crates/swc/tests/tsc-references/constructorParameterProperties2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorParameterProperties2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var d, e, f, C = function(y) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorParameterProperties_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorParameterProperties_es5.1.normal.js index 4a0e7d759dc4..1cce76bd54a3 100644 --- a/crates/swc/tests/tsc-references/constructorParameterProperties_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorParameterProperties_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C(x, z) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorParameterProperties_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorParameterProperties_es5.2.minified.js index 580758780c6d..03b9e1cdd74d 100644 --- a/crates/swc/tests/tsc-references/constructorParameterProperties_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorParameterProperties_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, d, C = function(x, z) { "use strict"; _class_call_check(this, C), this.x = x, this.z = z; diff --git a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes2_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes2_es5.1.normal.js index 5d3a5ecba89e..c8f71e3e38db 100644 --- a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext // @useDefineForClassFields: true // With useDefineForClassFields: true and ESNext target, initializer diff --git a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes2_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes2_es5.2.minified.js index bf97a0233d35..513c057464b5 100644 --- a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x) { "use strict"; _class_call_check(this, C), this.b = 1; diff --git a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes_es5.1.normal.js index adfa97b419f6..29b4bf916d9b 100644 --- a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. // This effectively means that entities from outer scopes by the same name as a constructor parameter or diff --git a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes_es5.2.minified.js index b14109d64941..68d01a9bdd3a 100644 --- a/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorParameterShadowsOuterScopes_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x) { "use strict"; _class_call_check(this, C), this.b = 1; diff --git a/crates/swc/tests/tsc-references/constructorTagOnClassConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorTagOnClassConstructor_es5.1.normal.js index f84b5e70e4bb..ec7101e1f134 100644 --- a/crates/swc/tests/tsc-references/constructorTagOnClassConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorTagOnClassConstructor_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @noEmit: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/constructorTagOnClassConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorTagOnClassConstructor_es5.2.minified.js index 4cabde47f893..44cd8dab83e0 100644 --- a/crates/swc/tests/tsc-references/constructorTagOnClassConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorTagOnClassConstructor_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Alpha = function() { "use strict"; _class_call_check(this, Alpha); diff --git a/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression_es5.1.normal.js index 8385510466d3..d42014b875f4 100644 --- a/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // a class constructor may return an expression, it must be assignable to the class instance type to be valid var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression_es5.2.minified.js index 7b5e4654dee5..101d73da4aee 100644 --- a/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorWithAssignableReturnExpression_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { return _class_call_check(this, C), 1; }, D = function() { diff --git a/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn_es5.1.normal.js b/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn_es5.1.normal.js index c36695aefc32..eb158e89973c 100644 --- a/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn_es5.2.minified.js b/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn_es5.2.minified.js index 886100870944..907dd14b83e7 100644 --- a/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/constructorWithExpressionLessReturn_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/contextualTypeFromJSDoc_es5.1.normal.js b/crates/swc/tests/tsc-references/contextualTypeFromJSDoc_es5.1.normal.js index f5c1d860b3cd..1030415c8fb8 100644 --- a/crates/swc/tests/tsc-references/contextualTypeFromJSDoc_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/contextualTypeFromJSDoc_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/contextualTypeFromJSDoc_es5.2.minified.js b/crates/swc/tests/tsc-references/contextualTypeFromJSDoc_es5.2.minified.js index 8b51518e6b51..09cfb308e82a 100644 --- a/crates/swc/tests/tsc-references/contextualTypeFromJSDoc_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/contextualTypeFromJSDoc_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/contextualTypeWithTuple_es5.1.normal.js b/crates/swc/tests/tsc-references/contextualTypeWithTuple_es5.1.normal.js index 5c386f044293..20a1bb30f790 100644 --- a/crates/swc/tests/tsc-references/contextualTypeWithTuple_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/contextualTypeWithTuple_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // no error var numStrTuple = [ 5, diff --git a/crates/swc/tests/tsc-references/contextualTypeWithTuple_es5.2.minified.js b/crates/swc/tests/tsc-references/contextualTypeWithTuple_es5.2.minified.js index e70403e8d521..150c17a90ce9 100644 --- a/crates/swc/tests/tsc-references/contextualTypeWithTuple_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/contextualTypeWithTuple_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment_es5.1.normal.js index 753e5af2b8f3..fdd43049f336 100644 --- a/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @checkJs: true // @allowJs: true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment_es5.2.minified.js index 3668144432dd..e651356857c5 100644 --- a/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/contextualTypedSpecialAssignment_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var ns = {}; ns.x = { status: "done", diff --git a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es2015.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es2015.1.normal.js index d5ad5d36ef7d..2fd4f6fb48af 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function fn1() { return _fn1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es2015.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es5.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es5.1.normal.js index 594eeaa20f5a..8c33f5fbac2c 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function fn1() { return _fn1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es5.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionAwaitOperand_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es2015.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es2015.1.normal.js index d2e0367bada2..ae35c7e005ac 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function fn1() { return _fn1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es2015.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es5.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es5.1.normal.js index 010c55c48760..56e2e3526591 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function fn1() { return _fn1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es5.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypeAsyncFunctionReturnType_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01_es5.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01_es5.1.normal.js index ad4e9a7a09a2..03c869136d3d 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function getFoo1() { return /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01_es5.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration01_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02_es5.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02_es5.1.normal.js index 7730a7508185..21fef58ab730 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function getFoo1() { return /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02_es5.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedClassExpressionMethodDeclaration02_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es2015.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es2015.1.normal.js index d7b59881d93c..5fd1ffff87ab 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es2015.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es2015.2.minified.js index f00731a04ac7..53f3c02a2cab 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); export function MainButton(props) { return props.goTo ? this._buildMainLink(props) : this._buildMainButton(props); diff --git a/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es5.1.normal.js b/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es5.1.normal.js index a03061a0443b..9a36c5bcf9e4 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es5.2.minified.js b/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es5.2.minified.js index 6df42a746c99..05362af7187a 100644 --- a/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/contextuallyTypedStringLiteralsInJsxAttributes02_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); export function MainButton(props) { return props.goTo ? this._buildMainLink(props) : this._buildMainButton(props); diff --git a/crates/swc/tests/tsc-references/controlFlowAliasing_es5.1.normal.js b/crates/swc/tests/tsc-references/controlFlowAliasing_es5.1.normal.js index 58705c2d7ff2..709ea4480b38 100644 --- a/crates/swc/tests/tsc-references/controlFlowAliasing_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowAliasing_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strict: true // @declaration: true // Narrowing by aliased conditional expressions diff --git a/crates/swc/tests/tsc-references/controlFlowAliasing_es5.2.minified.js b/crates/swc/tests/tsc-references/controlFlowAliasing_es5.2.minified.js index a8f5547c34bf..a02c34d21eb6 100644 --- a/crates/swc/tests/tsc-references/controlFlowAliasing_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowAliasing_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C10 = function(x) { "use strict"; _class_call_check(this, C10), this.x = x, "string" == typeof this.x && "string" == typeof x && this.x; diff --git a/crates/swc/tests/tsc-references/controlFlowGenericTypes_es5.1.normal.js b/crates/swc/tests/tsc-references/controlFlowGenericTypes_es5.1.normal.js index 1a5bb1b997ee..0ae2eb64233b 100644 --- a/crates/swc/tests/tsc-references/controlFlowGenericTypes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowGenericTypes_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strict: true function f1(x, y, z) { if (x) { diff --git a/crates/swc/tests/tsc-references/controlFlowGenericTypes_es5.2.minified.js b/crates/swc/tests/tsc-references/controlFlowGenericTypes_es5.2.minified.js index 68e055931664..4ec49949f41e 100644 --- a/crates/swc/tests/tsc-references/controlFlowGenericTypes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowGenericTypes_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function bounceAndTakeIfA(value) { return "A" === value && takeA(value), value; } diff --git a/crates/swc/tests/tsc-references/controlFlowIIFE_es2015.1.normal.js b/crates/swc/tests/tsc-references/controlFlowIIFE_es2015.1.normal.js index 49f447ffa246..1dadc458a0ad 100644 --- a/crates/swc/tests/tsc-references/controlFlowIIFE_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowIIFE_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f1() { let x = getStringOrNumber(); if (typeof x === "string") { diff --git a/crates/swc/tests/tsc-references/controlFlowIIFE_es2015.2.minified.js b/crates/swc/tests/tsc-references/controlFlowIIFE_es2015.2.minified.js index 07b60e85e8ee..e92af0109b5c 100644 --- a/crates/swc/tests/tsc-references/controlFlowIIFE_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowIIFE_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; let maybeNumber; maybeNumber = 1, ++maybeNumber, maybeNumber++; let test; diff --git a/crates/swc/tests/tsc-references/controlFlowIIFE_es5.1.normal.js b/crates/swc/tests/tsc-references/controlFlowIIFE_es5.1.normal.js index b6f5357da8ca..f1a35e58ab51 100644 --- a/crates/swc/tests/tsc-references/controlFlowIIFE_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowIIFE_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f1() { var x = getStringOrNumber(); diff --git a/crates/swc/tests/tsc-references/controlFlowIIFE_es5.2.minified.js b/crates/swc/tests/tsc-references/controlFlowIIFE_es5.2.minified.js index cd1b86a00298..d93e8e6ceaba 100644 --- a/crates/swc/tests/tsc-references/controlFlowIIFE_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowIIFE_es5.2.minified.js @@ -1,5 +1,5 @@ var maybeNumber, test; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; if (maybeNumber = 1, ++maybeNumber, maybeNumber++, !test) throw Error("Test is not defined"); test.slice(1); diff --git a/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives_es5.1.normal.js b/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives_es5.1.normal.js index 6afb0f4a4af9..cdea4dd47d5d 100644 --- a/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives_es5.2.minified.js index 0ccb12ffcd4f..b70e339ad18b 100644 --- a/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowInstanceOfGuardPrimitives_es5.2.minified.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction_es5.1.normal.js index 082271c066e4..1abd811269f0 100644 --- a/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; Function.prototype.now = function() { return "now"; }; diff --git a/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction_es5.2.minified.js index 7ae1e6f74ba3..a7c92e4fb112 100644 --- a/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowInstanceofExtendsFunction_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; Function.prototype.now = function() { return "now"; }; diff --git a/crates/swc/tests/tsc-references/controlFlowOptionalChain_es5.1.normal.js b/crates/swc/tests/tsc-references/controlFlowOptionalChain_es5.1.normal.js index a8a0c32431b6..08179dd1e3fb 100644 --- a/crates/swc/tests/tsc-references/controlFlowOptionalChain_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowOptionalChain_es5.1.normal.js @@ -1,5 +1,5 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7, ref8; var a; o === null || o === void 0 ? void 0 : o[a = 1]; diff --git a/crates/swc/tests/tsc-references/controlFlowOptionalChain_es5.2.minified.js b/crates/swc/tests/tsc-references/controlFlowOptionalChain_es5.2.minified.js index 5561629b81c2..fe422602420f 100644 --- a/crates/swc/tests/tsc-references/controlFlowOptionalChain_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowOptionalChain_es5.2.minified.js @@ -1,5 +1,5 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess_es5.1.normal.js index 81f5068ed039..c930e3e2cd76 100644 --- a/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @strictNullChecks: true var B = function B() { "use strict"; diff --git a/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess_es5.2.minified.js index ea8ac6663aa3..fbb5c14b80f8 100644 --- a/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/controlFlowSuperPropertyAccess_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es2015.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es2015.1.normal.js index c7ee8e61669c..cce90fbcdfcc 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: 0.tsx /// import * as cx from 'classnames'; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es2015.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es2015.2.minified.js index c27c743fe65f..b6c615fd7c47 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import * as cx from 'classnames'; import * as React from "react"; _extends({}, void 0), cx('class1', { diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es5.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es5.1.normal.js index 2aeb385acdbe..7318424f8698 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: 0.tsx /// import * as cx from "classnames"; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es5.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es5.2.minified.js index 462ced21bdf6..9efaffa55485 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences1_es5.2.minified.js @@ -1,5 +1,5 @@ var buttonProps; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import * as cx from "classnames"; import * as React from "react"; _extends({}, buttonProps), cx("class1", { diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es2015.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es2015.1.normal.js index 20ebf44443dc..19a7fa2fb65a 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: 0.tsx /// import * as cx from 'classnames'; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es2015.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es2015.2.minified.js index c27c743fe65f..b6c615fd7c47 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import * as cx from 'classnames'; import * as React from "react"; _extends({}, void 0), cx('class1', { diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es5.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es5.1.normal.js index ee5de18382a2..2e348a165e10 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: 0.tsx /// import * as cx from "classnames"; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es5.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es5.2.minified.js index 462ced21bdf6..9efaffa55485 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences2_es5.2.minified.js @@ -1,5 +1,5 @@ var buttonProps; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import * as cx from "classnames"; import * as React from "react"; _extends({}, buttonProps), cx("class1", { diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es2015.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es2015.1.normal.js index 20ebf44443dc..19a7fa2fb65a 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: 0.tsx /// import * as cx from 'classnames'; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es2015.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es2015.2.minified.js index c27c743fe65f..b6c615fd7c47 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import * as cx from 'classnames'; import * as React from "react"; _extends({}, void 0), cx('class1', { diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es5.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es5.1.normal.js index ee5de18382a2..2e348a165e10 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: 0.tsx /// import * as cx from "classnames"; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es5.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es5.2.minified.js index 462ced21bdf6..9efaffa55485 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences3_es5.2.minified.js @@ -1,5 +1,5 @@ var buttonProps; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import * as cx from "classnames"; import * as React from "react"; _extends({}, buttonProps), cx("class1", { diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es2015.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es2015.1.normal.js index aceca74a01cf..6992d922d6f3 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: 0.tsx /// import * as cx from 'classnames'; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es2015.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es2015.2.minified.js index 79694c0d747e..6ba754deac78 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import * as cx from 'classnames'; import * as React from "react"; _extends({}, void 0, { diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es5.1.normal.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es5.1.normal.js index d54532d61a54..1be2f8addafe 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: 0.tsx /// import * as cx from "classnames"; diff --git a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es5.2.minified.js b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es5.2.minified.js index 3eda44a61ce7..a24486ab5322 100644 --- a/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/correctlyMarkAliasAsReferences4_es5.2.minified.js @@ -1,5 +1,5 @@ var buttonProps; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import * as cx from "classnames"; import * as React from "react"; _extends({}, buttonProps, { diff --git a/crates/swc/tests/tsc-references/declarationEmitReadonly_es5.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitReadonly_es5.1.normal.js index 4bdda1e3012d..11ebea3a6cee 100644 --- a/crates/swc/tests/tsc-references/declarationEmitReadonly_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitReadonly_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/declarationEmitReadonly_es5.2.minified.js b/crates/swc/tests/tsc-references/declarationEmitReadonly_es5.2.minified.js index c82376f63a22..908b2ddf758f 100644 --- a/crates/swc/tests/tsc-references/declarationEmitReadonly_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationEmitReadonly_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x) { "use strict"; _class_call_check(this, C), this.x = x; diff --git a/crates/swc/tests/tsc-references/declarationEmitThisPredicates01_es5.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitThisPredicates01_es5.1.normal.js index 7b83f7abea6d..041a3e28abd1 100644 --- a/crates/swc/tests/tsc-references/declarationEmitThisPredicates01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitThisPredicates01_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @declaration: true // @module: commonjs export var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/declarationEmitThisPredicates01_es5.2.minified.js b/crates/swc/tests/tsc-references/declarationEmitThisPredicates01_es5.2.minified.js index 84678aa72ce3..4c2fa68a5fd4 100644 --- a/crates/swc/tests/tsc-references/declarationEmitThisPredicates01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationEmitThisPredicates01_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; export var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01_es5.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01_es5.1.normal.js index fcc38dfd2afd..860a87da95ac 100644 --- a/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @declaration: true // @module: commonjs export var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01_es5.2.minified.js b/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01_es5.2.minified.js index abdd3d1fa57d..cebb66f46859 100644 --- a/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationEmitThisPredicatesWithPrivateName01_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; export var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments_es5.1.normal.js b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments_es5.1.normal.js index 870ce1479b31..775acb1f7106 100644 --- a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true // @stripInternal:true export var Foo = function Foo(isInternal1, isInternal2, isInternal3, isInternal4, isInternal5, isInternal6 /* trailing */ , isInternal7, notInternal1, notInternal2, notInternal3) { diff --git a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments_es5.2.minified.js b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments_es5.2.minified.js index 963a05ce300e..3ef04df9566d 100644 --- a/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationEmitWorkWithInlineComments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Foo = function(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_es5.1.normal.js b/crates/swc/tests/tsc-references/declarationFiles_es5.1.normal.js index bd8bcf8bc739..3daa3238bf98 100644 --- a/crates/swc/tests/tsc-references/declarationFiles_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationFiles_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true var C1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/declarationFiles_es5.2.minified.js b/crates/swc/tests/tsc-references/declarationFiles_es5.2.minified.js index daea007f0093..1d01ab8af0dd 100644 --- a/crates/swc/tests/tsc-references/declarationFiles_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationFiles_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C1 = function() { "use strict"; function C1(x) { diff --git a/crates/swc/tests/tsc-references/declarationsAndAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/declarationsAndAssignments_es5.1.normal.js index 97684631060e..c72009a6f92d 100644 --- a/crates/swc/tests/tsc-references/declarationsAndAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/declarationsAndAssignments_es5.1.normal.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; function f0() { var ref = [ 1, diff --git a/crates/swc/tests/tsc-references/declarationsAndAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/declarationsAndAssignments_es5.2.minified.js index f38768880619..fc833193b23a 100644 --- a/crates/swc/tests/tsc-references/declarationsAndAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/declarationsAndAssignments_es5.2.minified.js @@ -1,7 +1,7 @@ var M; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; function f14(param) { var _param = _sliced_to_array(param, 2), ref = (_param[0], _sliced_to_array(_param[1], 2)), ref1 = (ref[0], ref[1]); ref1.x, ref1.y; diff --git a/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType_es5.1.normal.js b/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType_es5.1.normal.js index 60eed7a1bb9f..6f952c2ff4a4 100644 --- a/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // -- operator on any type var ANY; var ANY1; diff --git a/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType_es5.2.minified.js b/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType_es5.2.minified.js index 4a95042416cd..68e87208b16e 100644 --- a/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/decrementOperatorWithAnyOtherType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var ANY, ANY1, M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/decrementOperatorWithNumberType_es5.1.normal.js b/crates/swc/tests/tsc-references/decrementOperatorWithNumberType_es5.1.normal.js index 013f8aec10a1..9aa71580044a 100644 --- a/crates/swc/tests/tsc-references/decrementOperatorWithNumberType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/decrementOperatorWithNumberType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // -- operator on number type var NUMBER; var NUMBER1 = [ diff --git a/crates/swc/tests/tsc-references/decrementOperatorWithNumberType_es5.2.minified.js b/crates/swc/tests/tsc-references/decrementOperatorWithNumberType_es5.2.minified.js index f2b2d69a06c5..461b8f01e9be 100644 --- a/crates/swc/tests/tsc-references/decrementOperatorWithNumberType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/decrementOperatorWithNumberType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var NUMBER, M, NUMBER1 = [ 1, 2 diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es2015.1.normal.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es2015.1.normal.js index 053a21285162..fa931648bbb8 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES6 // @module: umd // @filename: a.ts diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es2015.2.minified.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es2015.2.minified.js index aaa22bd46557..69e836996803 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; let x = new Promise((resolve, reject)=>{ resolve({}); }); diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es5.1.normal.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es5.1.normal.js index 8e2c2c0e43b1..54401dfb0233 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: ES6 // @module: umd diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es5.2.minified.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es5.2.minified.js index 0c242b2a14dd..5405b696b377 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression01_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var x = new Promise(function(resolve, reject) { resolve({}); diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es2015.1.normal.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es2015.1.normal.js index 9d737b3e2360..b730af4072b1 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: ES6 // @module: commonjs // @filename: a.ts diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es2015.2.minified.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es2015.2.minified.js index aaa22bd46557..69e836996803 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; let x = new Promise((resolve, reject)=>{ resolve({}); }); diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es5.1.normal.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es5.1.normal.js index 3654f8169f2a..236027ac84bf 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: ES6 // @module: commonjs diff --git a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es5.2.minified.js b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es5.2.minified.js index 0c242b2a14dd..5405b696b377 100644 --- a/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportInAwaitExpression02_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var x = new Promise(function(resolve, reject) { resolve({}); diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge02_es5.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge02_es5.1.normal.js index dce342658d16..124dedebf26f 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge02_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge02_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: m2.ts import Entity from "m1"; var Decl = function Decl() { diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge02_es5.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge02_es5.2.minified.js index 072782735e73..7c9ddcd1832b 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge02_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge02_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import Entity from "m1"; var Decl = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge03_es5.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge03_es5.1.normal.js index dce342658d16..124dedebf26f 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge03_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge03_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: m2.ts import Entity from "m1"; var Decl = function Decl() { diff --git a/crates/swc/tests/tsc-references/defaultExportsCannotMerge03_es5.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsCannotMerge03_es5.2.minified.js index 072782735e73..7c9ddcd1832b 100644 --- a/crates/swc/tests/tsc-references/defaultExportsCannotMerge03_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsCannotMerge03_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import Entity from "m1"; var Decl = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/defaultExportsGetExportedAmd_es5.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsGetExportedAmd_es5.1.normal.js index 1439732b7a2a..17fddc90f672 100644 --- a/crates/swc/tests/tsc-references/defaultExportsGetExportedAmd_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsGetExportedAmd_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/defaultExportsGetExportedAmd_es5.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsGetExportedAmd_es5.2.minified.js index af51c83fabb1..6e3289ca2099 100644 --- a/crates/swc/tests/tsc-references/defaultExportsGetExportedAmd_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsGetExportedAmd_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/defaultExportsGetExportedCommonjs_es5.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsGetExportedCommonjs_es5.1.normal.js index 1439732b7a2a..17fddc90f672 100644 --- a/crates/swc/tests/tsc-references/defaultExportsGetExportedCommonjs_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsGetExportedCommonjs_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/defaultExportsGetExportedCommonjs_es5.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsGetExportedCommonjs_es5.2.minified.js index af51c83fabb1..6e3289ca2099 100644 --- a/crates/swc/tests/tsc-references/defaultExportsGetExportedCommonjs_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsGetExportedCommonjs_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/defaultExportsGetExportedSystem_es5.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsGetExportedSystem_es5.1.normal.js index 1439732b7a2a..17fddc90f672 100644 --- a/crates/swc/tests/tsc-references/defaultExportsGetExportedSystem_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsGetExportedSystem_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/defaultExportsGetExportedSystem_es5.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsGetExportedSystem_es5.2.minified.js index af51c83fabb1..6e3289ca2099 100644 --- a/crates/swc/tests/tsc-references/defaultExportsGetExportedSystem_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsGetExportedSystem_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/defaultExportsGetExportedUmd_es5.1.normal.js b/crates/swc/tests/tsc-references/defaultExportsGetExportedUmd_es5.1.normal.js index 1439732b7a2a..17fddc90f672 100644 --- a/crates/swc/tests/tsc-references/defaultExportsGetExportedUmd_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defaultExportsGetExportedUmd_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/defaultExportsGetExportedUmd_es5.2.minified.js b/crates/swc/tests/tsc-references/defaultExportsGetExportedUmd_es5.2.minified.js index af51c83fabb1..6e3289ca2099 100644 --- a/crates/swc/tests/tsc-references/defaultExportsGetExportedUmd_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defaultExportsGetExportedUmd_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/definePropertyOutputES3_es5.1.normal.js b/crates/swc/tests/tsc-references/definePropertyOutputES3_es5.1.normal.js index c2ea511c96db..0f52abbe878d 100644 --- a/crates/swc/tests/tsc-references/definePropertyOutputES3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/definePropertyOutputES3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es3 // @useDefineForClassFields: true var A = function A() { diff --git a/crates/swc/tests/tsc-references/definePropertyOutputES3_es5.2.minified.js b/crates/swc/tests/tsc-references/definePropertyOutputES3_es5.2.minified.js index bc408025b8de..37bc36d63406 100644 --- a/crates/swc/tests/tsc-references/definePropertyOutputES3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/definePropertyOutputES3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A), this.a = 12; diff --git a/crates/swc/tests/tsc-references/defineProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/defineProperty_es5.1.normal.js index 0d2f041367de..b48c94d8f29c 100644 --- a/crates/swc/tests/tsc-references/defineProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/defineProperty_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es5, esnext // @useDefineForClassFields: true var x = "p"; diff --git a/crates/swc/tests/tsc-references/defineProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/defineProperty_es5.2.minified.js index 7bfe444c1fd1..0c08f304188b 100644 --- a/crates/swc/tests/tsc-references/defineProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/defineProperty_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A(y) { diff --git a/crates/swc/tests/tsc-references/dependentDestructuredVariables_es5.1.normal.js b/crates/swc/tests/tsc-references/dependentDestructuredVariables_es5.1.normal.js index 3c52bb25c726..69ea2bbaa718 100644 --- a/crates/swc/tests/tsc-references/dependentDestructuredVariables_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/dependentDestructuredVariables_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; function f10(param) { var kind = param.kind, payload = param.payload; if (kind === "A") { diff --git a/crates/swc/tests/tsc-references/dependentDestructuredVariables_es5.2.minified.js b/crates/swc/tests/tsc-references/dependentDestructuredVariables_es5.2.minified.js index b855a91d953c..7b5eff8990d4 100644 --- a/crates/swc/tests/tsc-references/dependentDestructuredVariables_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/dependentDestructuredVariables_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var ref = it.next(); ref.value, ref.done, f50(function(kind, data) { "A" === kind && data.toFixed(), "B" === kind && data.toUpperCase(); diff --git a/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall_es5.1.normal.js index 9b145b29ce3e..98f8a3b2b77e 100644 --- a/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // derived class constructors must contain a super call var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall_es5.2.minified.js index bbf51f89ffdf..76776c1ba25d 100644 --- a/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassConstructorWithoutSuperCall_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor_es5.1.normal.js index de91a456b05e..51a8d73109f5 100644 --- a/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor_es5.2.minified.js index 3395607b186f..2a17a77e3d69 100644 --- a/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassFunctionOverridesBaseClassAccessor_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers_es5.1.normal.js index db2aa1b9d664..d978bba4bacb 100644 --- a/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = /*#__PURE__*/ function() { "use strict"; function Base(x) { diff --git a/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers_es5.2.minified.js index 4ae28597019c..c7236ee68d3f 100644 --- a/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassIncludesInheritedMembers_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var d2, Base = function() { "use strict"; function Base(x) { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility_es5.1.normal.js index 8f011fa7c31f..393f97df9657 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility_es5.2.minified.js index efa9720d149e..a71f5dba65a3 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesIndexersWithAssignmentCompatibility_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesPrivates_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesPrivates_es5.1.normal.js index 51bda1d766e7..ee94c230a524 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesPrivates_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesPrivates_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesPrivates_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesPrivates_es5.2.minified.js index efa9720d149e..a71f5dba65a3 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesPrivates_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesPrivates_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2_es5.1.normal.js index ca712fa11878..d36cc9bea8c8 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: ES5 var x; var y; diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2_es5.2.minified.js index 5e7269720020..631bf31d3a74 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers2_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var x, y, d2, Base = function() { "use strict"; function Base(a) { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3_es5.1.normal.js index 77752a1620cc..4d1d82573b3c 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: ES5 var x; var y; diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3_es5.2.minified.js index 45a36dfd813d..c11a84203797 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var x, Base = function() { "use strict"; function Base(a) { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4_es5.1.normal.js index 34bb46223ac8..10e9f0784ad1 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var x; var y; var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4_es5.2.minified.js index 6ea76bce00d3..736914f82b04 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers_es5.1.normal.js index a27695eead5e..67f2276e350a 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: ES5 var x; var y; diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers_es5.2.minified.js index 9fd71df1dc21..e3ffd1fba419 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesProtectedMembers_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var x, y, Base = function() { "use strict"; function Base(a) { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers_es5.1.normal.js index e495c9479cdd..0cf941716bfa 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var x; var y; var Base = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers_es5.2.minified.js index 9f7dbf51ea74..6482ddac297c 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesPublicMembers_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var x, y, d2, Base = function() { "use strict"; function Base(a) { diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype_es5.1.normal.js index 51bda1d766e7..ee94c230a524 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype_es5.2.minified.js index efa9720d149e..a71f5dba65a3 100644 --- a/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassOverridesWithoutSubtype_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity2_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassTransitivity2_es5.1.normal.js index caee4204577e..7be1ef99346e 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // subclassing is not transitive when you can remove required parameters and add optional parameters var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity2_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassTransitivity2_es5.2.minified.js index dbc0e9d39d6b..36e286b719c1 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var e, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity3_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassTransitivity3_es5.1.normal.js index 0a434f81b210..7e19f66ff1f2 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // subclassing is not transitive when you can remove required parameters and add optional parameters var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity3_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassTransitivity3_es5.2.minified.js index c550d0475b72..ba83cd5100ce 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var e, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity4_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassTransitivity4_es5.1.normal.js index c120d9d4f001..4c0d3c6c3d25 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // subclassing is not transitive when you can remove required parameters and add optional parameters on protected members var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity4_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassTransitivity4_es5.2.minified.js index 2875f7f499bd..785bd663306f 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var e, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassTransitivity_es5.1.normal.js index 40ff859d105b..9b8f3fb95575 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // subclassing is not transitive when you can remove required parameters and add optional parameters var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/derivedClassTransitivity_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassTransitivity_es5.2.minified.js index 2875f7f499bd..785bd663306f 100644 --- a/crates/swc/tests/tsc-references/derivedClassTransitivity_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassTransitivity_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var e, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithAny_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithAny_es5.1.normal.js index 22ea88de45ec..e6b2b7cf65e4 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithAny_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithAny_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithAny_es5.2.minified.js index 6cc056fbcedd..7d14a7c9a4f8 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithAny_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var e, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance_es5.1.normal.js index 923d0308e5ec..4e1ff7625576 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: ES5 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance_es5.2.minified.js index b7518ec4d0e2..922e8e84d714 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingProtectedInstance_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance_es5.1.normal.js index 8c01ab81c6d0..f148840ec124 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance_es5.2.minified.js index cd516bef8428..a0a0d45cd596 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateInstanceShadowingPublicInstance_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic_es5.1.normal.js index 9508a213751c..f042d1b267d4 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: ES5 var Base = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic_es5.2.minified.js index 205ebbe689ab..828766593ae5 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingProtectedStatic_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic_es5.1.normal.js index afcee0388a2b..0f729c811bfc 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic_es5.2.minified.js index bf2507021c2b..5c7ff34eeb8a 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithPrivateStaticShadowingPublicStatic_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2_es5.1.normal.js index 012dd6c576c5..32bf82ae26e2 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2_es5.2.minified.js index 4b3ae8c82233..c905f2c018bc 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function(x) { "use strict"; _class_call_check(this, Base), this.a = 1, this.a = x; diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3_es5.1.normal.js index b07798ca3b7b..8ddfe3c4fe06 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // automatic constructors with a class hieararchy of depth > 2 var Base = function Base(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3_es5.2.minified.js index 68a605091613..98bba7f4dfa4 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function(x) { "use strict"; _class_call_check(this, Base), this.a = 1, this.a = x; diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor_es5.1.normal.js index 3c89509ad9a1..114ba56cda33 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base(x) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor_es5.2.minified.js index 166b5a5aa657..140ba8a9cae5 100644 --- a/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedClassWithoutExplicitConstructor_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function(x) { "use strict"; _class_call_check(this, Base), this.a = 1, this.a = x; diff --git a/crates/swc/tests/tsc-references/derivedGenericClassWithAny_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedGenericClassWithAny_es5.1.normal.js index 3a8c3562201d..a0c00a852f0b 100644 --- a/crates/swc/tests/tsc-references/derivedGenericClassWithAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedGenericClassWithAny_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedGenericClassWithAny_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedGenericClassWithAny_es5.2.minified.js index 78189bcb2c30..101b8d8b2bcb 100644 --- a/crates/swc/tests/tsc-references/derivedGenericClassWithAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedGenericClassWithAny_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var e, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess_es5.1.normal.js index 0be9899fd651..beddd6da118f 100644 --- a/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess_es5.2.minified.js index c9442e3c1856..b46cc4fdefb5 100644 --- a/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause_es5.1.normal.js b/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause_es5.1.normal.js index 971520d48d38..979cd33f4523 100644 --- a/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause_es5.2.minified.js b/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause_es5.2.minified.js index a0bde506b524..c7e3cb95236e 100644 --- a/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/derivedTypeDoesNotRequireExtendsClause_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5_es5.1.normal.js index bee2980b9003..b08fdaaa9fe1 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; /* AssignmentPattern: * ObjectAssignmentPattern * ArrayAssignmentPattern diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5_es5.2.minified.js index 72e509063cba..b8e540d0d3c4 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable_es5.1.normal.js index bfd3cb15c764..d70122383393 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable_es5.1.normal.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; // @downlevelIteration: true /* AssignmentPattern: * ObjectAssignmentPattern diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable_es5.2.minified.js index 72e509063cba..b8e540d0d3c4 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES5iterable_es5.2.minified.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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/destructuringArrayBindingPatternAndAssignment1ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES6_es5.1.normal.js index 5d31a7583bae..b92ef807627d 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; // @target: es6 /* AssignmentPattern: * ObjectAssignmentPattern diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES6_es5.2.minified.js index 72e509063cba..b8e540d0d3c4 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment1ES6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2_es5.1.normal.js index 3e1c0585cc4b..acaefcb600eb 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // 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 var ref // Error diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2_es5.2.minified.js index 3d71ab8d3e2c..51d3ff070a61 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var ref = [], ref1 = (_sliced_to_array(ref[0], 1)[0], _sliced_to_array(ref[1], 1)), ref2 = _sliced_to_array(ref1[0], 1); ref2[0]; var _undefined = _sliced_to_array(void 0, 2), ref3 = _sliced_to_array(_undefined[0], 1), ref4 = (ref3[0], _sliced_to_array(_undefined[1], 1)), ref5 = _sliced_to_array(ref4[0], 1); diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3_es5.1.normal.js index 23eaac944a15..b79772331b37 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3_es5.2.minified.js index 5ced9d9d6602..388d02bbcf7a 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var ref = [ 1 ], ref1 = (ref[0], ref[1], [ diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4_es5.1.normal.js index 0b2bfce10b16..273efcf3f897 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4_es5.1.normal.js @@ -1,2 +1,2 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _data = _sliced_to_array(data, 1), value = _data[0]; // Error diff --git a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4_es5.2.minified.js index 3afbb7637814..decee23ea218 100644 --- a/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringArrayBindingPatternAndAssignment4_es5.2.minified.js @@ -1,2 +1,2 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; _sliced_to_array(data, 1)[0]; diff --git a/crates/swc/tests/tsc-references/destructuringAssignabilityCheck_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringAssignabilityCheck_es5.1.normal.js index 8013823ceda4..f3209e07bd99 100644 --- a/crates/swc/tests/tsc-references/destructuringAssignabilityCheck_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringAssignabilityCheck_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; // @strict: true var ref = _sliced_to_array({}, 0); // should be error var undefined = undefined !== null ? undefined : _throw(new TypeError("Cannot destructure undefined")); // error correctly diff --git a/crates/swc/tests/tsc-references/destructuringAssignabilityCheck_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringAssignabilityCheck_es5.2.minified.js index 2a5e3f99e09b..adf0a27616dd 100644 --- a/crates/swc/tests/tsc-references/destructuringAssignabilityCheck_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringAssignabilityCheck_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; _sliced_to_array({}, 0); var undefined = undefined; _sliced_to_array({}, 0), function(param) { diff --git a/crates/swc/tests/tsc-references/destructuringCatch_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringCatch_es5.1.normal.js index c600cfd81a75..ac74aea436a1 100644 --- a/crates/swc/tests/tsc-references/destructuringCatch_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringCatch_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @noImplicitAny: true try { throw [ diff --git a/crates/swc/tests/tsc-references/destructuringCatch_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringCatch_es5.2.minified.js index 92b2f4f27ca2..a0756c4bf28d 100644 --- a/crates/swc/tests/tsc-references/destructuringCatch_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringCatch_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; try { throw [ 0, diff --git a/crates/swc/tests/tsc-references/destructuringControlFlow_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringControlFlow_es5.1.normal.js index 05b8430f7688..86f7cf96f3b5 100644 --- a/crates/swc/tests/tsc-references/destructuringControlFlow_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringControlFlow_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @strict: true function f1(obj) { if (obj.a) { diff --git a/crates/swc/tests/tsc-references/destructuringControlFlow_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringControlFlow_es5.2.minified.js index b042c6fe5ee1..91f4e0cf6a8e 100644 --- a/crates/swc/tests/tsc-references/destructuringControlFlow_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringControlFlow_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var ref = [ "foo" ]; diff --git a/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es2015.1.normal.js b/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es2015.1.normal.js index 24607b785bf0..51dbced6b9ab 100644 --- a/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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"; // @target: es5,es2015 // @noTypesAndSymbols: true // /~https://github.com/microsoft/TypeScript/issues/39205 diff --git a/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es2015.2.minified.js b/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es2015.2.minified.js index 7fc3ee077807..2aeec87e62fa 100644 --- a/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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"; let trace = [], order = (n)=>trace.push(n), [{ [order(1)]: x } = order(0)] = [], [{ [order(1)]: y } = order(0)] = [ {} ], _ref = {}, key = order(0), key1 = order(2), { [key]: { [key1]: z } = order(1) } = _ref; diff --git a/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es5.1.normal.js index 6755a98b78f2..22b9451ae36c 100644 --- a/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es5.1.normal.js @@ -1,8 +1,8 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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 _throw from "@swc/helpers/src/_throw.mjs"; +import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; // @target: es5,es2015 // @noTypesAndSymbols: true // /~https://github.com/microsoft/TypeScript/issues/39205 diff --git a/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es5.2.minified.js index 793ac3728f75..fdaeb8685991 100644 --- a/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringEvaluationOrder_es5.2.minified.js @@ -1,8 +1,8 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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 _throw from "@swc/helpers/src/_throw.mjs"; +import _to_property_key from "@swc/helpers/src/_to_property_key.mjs"; var trace = [], order = function(n) { return trace.push(n); }, tmp = void 0; diff --git a/crates/swc/tests/tsc-references/destructuringInFunctionType_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringInFunctionType_es5.1.normal.js index 7f6459f789d8..e7c57bc1aac1 100644 --- a/crates/swc/tests/tsc-references/destructuringInFunctionType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringInFunctionType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringInFunctionType_es5.2.minified.js index d4a961f015ab..7d190f4b61c0 100644 --- a/crates/swc/tests/tsc-references/destructuringInFunctionType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringInFunctionType_es5.2.minified.js @@ -1 +1 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es2015.1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es2015.1.normal.js index 6f741c2011be..1f7c25b4f0ae 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: es5, es2015, es2018 // @noTypesAndSymbols: true let a, b, c = { diff --git a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es2015.2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es2015.2.minified.js index 7c6c40b602db..0c789ff63682 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es2015.2.minified.js @@ -1,5 +1,5 @@ var _c; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; let a, d; _object_without_properties((_c = { x: { diff --git a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es5.1.normal.js index 7c7e07818ac2..2ddc9792cc4c 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: es5, es2015, es2018 // @noTypesAndSymbols: true var a, b, c = { diff --git a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es5.2.minified.js index 93359ed1ca85..fe31952d6c12 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectAssignmentPatternWithNestedSpread_es5.2.minified.js @@ -1,5 +1,5 @@ var _c, ref, d; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; _object_without_properties((_c = { x: { a: 1, diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es2015.1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es2015.1.normal.js index 463c78db511e..3a504d5f185d 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; function a() { let x; let y; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es2015.2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es2015.2.minified.js index 105115452a15..feebd5ee14ce 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es2015.2.minified.js @@ -1 +1 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es5.1.normal.js index 77aa6f016399..82affe5f93bd 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; function a() { var x; var y; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es5.2.minified.js index 105115452a15..feebd5ee14ce 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment5_es5.2.minified.js @@ -1 +1 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6_es5.1.normal.js index 245838daaf65..5878fb103fef 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5,esnext var a = "a"; var b = "b"; diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6_es5.2.minified.js index e4a031db806a..03bd0c8950d4 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7_es5.1.normal.js index 3fe2c632419b..12cbc20615ff 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var // @target: es5,esnext K; (function(K) { diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7_es5.2.minified.js index 2339923752a4..a9f63dce9fca 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment7_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; !function(K) { K.a = "a", K.b = "b"; }(K || (K = {})); diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8_es5.1.normal.js index fc503606b3d4..c8308ded2323 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @target: es5,esnext var K = { a: "a", diff --git a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8_es5.2.minified.js index 9b035df59e56..4b4e25862b39 100644 --- a/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringObjectBindingPatternAndAssignment8_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var K = { a: "a", b: "b" diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5_es5.1.normal.js index d67be3195b53..50e725b1bc0f 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // A parameter declaration may specify either an identifier or a binding pattern. // The identifiers specified in parameter declarations and binding patterns // in a parameter list must be unique within that parameter list. diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5_es5.2.minified.js index d89bbb326576..efe693fec6f4 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; function a1(param) { var _param = _sliced_to_array(param, 3), ref = (_param[0], _param[1], _sliced_to_array(_param[2], 1)), ref1 = _sliced_to_array(ref[0], 1); ref1[0]; diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5iterable_es5.1.normal.js index 118ce311e99d..1a02312c2caf 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5iterable_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @downlevelIteration: true // A parameter declaration may specify either an identifier or a binding pattern. // The identifiers specified in parameter declarations and binding patterns diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5iterable_es5.2.minified.js index d89bbb326576..efe693fec6f4 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES5iterable_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; function a1(param) { var _param = _sliced_to_array(param, 3), ref = (_param[0], _param[1], _sliced_to_array(_param[2], 1)), ref1 = _sliced_to_array(ref[0], 1); ref1[0]; diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES6_es5.1.normal.js index d66c7fdd6236..8c909bfd53d1 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // Conformance for emitting ES6 // @target: es6 // A parameter declaration may specify either an identifier or a binding pattern. diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES6_es5.2.minified.js index 0da9cbe5a723..296828602875 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration1ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; function a1(param) { var _param = _sliced_to_array(param, 3), ref = (_param[0], _param[1], _sliced_to_array(_param[2], 1)), ref1 = _sliced_to_array(ref[0], 1); ref1[0]; diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5_es5.1.normal.js index b8fc69fbc836..01622bf23c1b 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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/destructuringParameterDeclaration3ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5_es5.2.minified.js index 9883ab77e72d..52c8388931b4 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; function a10(param) { var _param = _to_array(param), ref = (_param[0], _param[1], _sliced_to_array(_param[2], 1)), ref1 = _sliced_to_array(ref[0], 1); ref1[0], _param.slice(3); diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable_es5.1.normal.js index b8fc69fbc836..01622bf23c1b 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable_es5.1.normal.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable_es5.2.minified.js index 9883ab77e72d..52c8388931b4 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES5iterable_es5.2.minified.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; function a10(param) { var _param = _to_array(param), ref = (_param[0], _param[1], _sliced_to_array(_param[2], 1)), ref1 = _sliced_to_array(ref[0], 1); ref1[0], _param.slice(3); diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES6_es5.1.normal.js index b8fc69fbc836..01622bf23c1b 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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/destructuringParameterDeclaration3ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES6_es5.2.minified.js index 9883ab77e72d..52c8388931b4 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration3ES6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; function a10(param) { var _param = _to_array(param), ref = (_param[0], _param[1], _sliced_to_array(_param[2], 1)), ref1 = _sliced_to_array(ref[0], 1); ref1[0], _param.slice(3); diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration5_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration5_es5.1.normal.js index cbcc85285b77..9fb6355f86b2 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Class = function Class() { "use strict"; _class_call_check(this, Class); diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration5_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration5_es5.2.minified.js index ac804c3cb958..84cee56f7721 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Class = function() { "use strict"; _class_call_check(this, Class); diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5_es5.1.normal.js index a9d2d9087eb2..705699dfc59d 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; function foo(_$param, param) { var _$param = _$param !== null ? _$param : _throw(new TypeError("Cannot destructure undefined")), foo = param.foo, bar = param.bar; } diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5_es5.2.minified.js index 2a876f49ab4a..fa7a9ac30e68 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable_es5.1.normal.js index a9d2d9087eb2..705699dfc59d 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; function foo(_$param, param) { var _$param = _$param !== null ? _$param : _throw(new TypeError("Cannot destructure undefined")), foo = param.foo, bar = param.bar; } diff --git a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable_es5.2.minified.js index 2a876f49ab4a..fa7a9ac30e68 100644 --- a/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringParameterDeclaration7ES5iterable_es5.2.minified.js @@ -1,2 +1,2 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; diff --git a/crates/swc/tests/tsc-references/destructuringSpread_es2015.1.normal.js b/crates/swc/tests/tsc-references/destructuringSpread_es2015.1.normal.js index ac047887deab..0605198694e4 100644 --- a/crates/swc/tests/tsc-references/destructuringSpread_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringSpread_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; const { x } = _object_spread_props(_object_spread({}, {}), { x: 0 }); diff --git a/crates/swc/tests/tsc-references/destructuringSpread_es2015.2.minified.js b/crates/swc/tests/tsc-references/destructuringSpread_es2015.2.minified.js index 627b9c73172a..fd19abedfbda 100644 --- a/crates/swc/tests/tsc-references/destructuringSpread_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringSpread_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; let { x } = _object_spread_props(_object_spread({}, {}), { x: 0 }), { y } = _object_spread({ diff --git a/crates/swc/tests/tsc-references/destructuringSpread_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringSpread_es5.1.normal.js index ecbc4078ed20..0140407ab97f 100644 --- a/crates/swc/tests/tsc-references/destructuringSpread_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringSpread_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; var x = _object_spread_props(_object_spread({}, {}), { x: 0 }).x; diff --git a/crates/swc/tests/tsc-references/destructuringSpread_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringSpread_es5.2.minified.js index bf7f043aa34e..14bb0cd506de 100644 --- a/crates/swc/tests/tsc-references/destructuringSpread_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringSpread_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread_props(_object_spread({}, {}), { x: 0 }).x, _object_spread({ diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5_es5.1.normal.js index 5fadfb271d7f..a80b1d67ee96 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. var ref = { diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5_es5.2.minified.js index 19be8fdb4abe..4c0a79debac0 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var ref = { a1: 10, a2: "world" diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable_es5.1.normal.js index df23eddfdd0d..c03c2264f0fa 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // @downlevelIteration: true // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable_es5.2.minified.js index 19be8fdb4abe..4c0a79debac0 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES5iterable_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var ref = { a1: 10, a2: "world" diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES6_es5.1.normal.js index ef046a37027c..94321a91b83b 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // @target: es6 // The type T associated with a destructuring variable declaration is determined as follows: // If the declaration includes a type annotation, T is that type. diff --git a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES6_es5.2.minified.js index 19be8fdb4abe..4c0a79debac0 100644 --- a/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVariableDeclaration1ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var ref = { a1: 10, a2: "world" diff --git a/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks_es5.1.normal.js index b0438e265db2..0dae1fe49549 100644 --- a/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks_es5.1.normal.js @@ -1,2 +1,2 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; var v = v !== null ? v : _throw(new TypeError("Cannot destructure undefined")); diff --git a/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks_es5.2.minified.js index ce75dd5bd635..ef5cd083861c 100644 --- a/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVoidStrictNullChecks_es5.2.minified.js @@ -1,2 +1,2 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; var v = null !== v ? v : _throw(new TypeError("Cannot destructure undefined")); diff --git a/crates/swc/tests/tsc-references/destructuringVoid_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringVoid_es5.1.normal.js index b0438e265db2..0dae1fe49549 100644 --- a/crates/swc/tests/tsc-references/destructuringVoid_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringVoid_es5.1.normal.js @@ -1,2 +1,2 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; var v = v !== null ? v : _throw(new TypeError("Cannot destructure undefined")); diff --git a/crates/swc/tests/tsc-references/destructuringVoid_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringVoid_es5.2.minified.js index ce75dd5bd635..ef5cd083861c 100644 --- a/crates/swc/tests/tsc-references/destructuringVoid_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringVoid_es5.2.minified.js @@ -1,2 +1,2 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; var v = null !== v ? v : _throw(new TypeError("Cannot destructure undefined")); diff --git a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2_es5.1.normal.js index 1804cdbfd798..e464cd1b314f 100644 --- a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @strict: true 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_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2_es5.2.minified.js index d4a961f015ab..7d190f4b61c0 100644 --- a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers2_es5.2.minified.js @@ -1 +1 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers_es5.1.normal.js b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers_es5.1.normal.js index e1ec278a6878..7c8e46d914cd 100644 --- a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // (arg: { x: any, y: any }) => void function f1(param) { var x = param.x, y = param.y; diff --git a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers_es5.2.minified.js b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers_es5.2.minified.js index e493ac091b52..0b395e4eba13 100644 --- a/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/destructuringWithLiteralInitializers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; function f2(param) { param.x, param.y; } diff --git a/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases_es5.1.normal.js b/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases_es5.1.normal.js index f095c7e56dab..a46eff6491b1 100644 --- a/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases_es5.2.minified.js b/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases_es5.2.minified.js index 549b7e4402e2..5eb3bf5a0fb7 100644 --- a/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/directDependenceBetweenTypeAliases_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/duplicateExportAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/duplicateExportAssignments_es5.1.normal.js index 44c7ac06fad0..43428f150a03 100644 --- a/crates/swc/tests/tsc-references/duplicateExportAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/duplicateExportAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: foo1.ts var x = 10; var y = 20; diff --git a/crates/swc/tests/tsc-references/duplicateExportAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/duplicateExportAssignments_es5.2.minified.js index f89671839f28..a3a9f91eddd0 100644 --- a/crates/swc/tests/tsc-references/duplicateExportAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/duplicateExportAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = 10, y = 20; module.exports = x, module.exports = y; var x = 10, y = function() { diff --git a/crates/swc/tests/tsc-references/duplicateNumericIndexers_es5.1.normal.js b/crates/swc/tests/tsc-references/duplicateNumericIndexers_es5.1.normal.js index 29a34080c50f..603d5bcd5c84 100644 --- a/crates/swc/tests/tsc-references/duplicateNumericIndexers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/duplicateNumericIndexers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/duplicateNumericIndexers_es5.2.minified.js b/crates/swc/tests/tsc-references/duplicateNumericIndexers_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/duplicateNumericIndexers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/duplicateNumericIndexers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/duplicatePropertyNames_es5.1.normal.js b/crates/swc/tests/tsc-references/duplicatePropertyNames_es5.1.normal.js index 0443a34d3fb8..b6ae76218b87 100644 --- a/crates/swc/tests/tsc-references/duplicatePropertyNames_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/duplicatePropertyNames_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/duplicatePropertyNames_es5.2.minified.js b/crates/swc/tests/tsc-references/duplicatePropertyNames_es5.2.minified.js index 1f372f86bea4..2739b070e835 100644 --- a/crates/swc/tests/tsc-references/duplicatePropertyNames_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/duplicatePropertyNames_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/duplicateStringIndexers_es5.1.normal.js b/crates/swc/tests/tsc-references/duplicateStringIndexers_es5.1.normal.js index 96dbc3f77368..b36e8bf06d9e 100644 --- a/crates/swc/tests/tsc-references/duplicateStringIndexers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/duplicateStringIndexers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // it is an error to have duplicate index signatures of the same kind in a type var test; (function(test) { diff --git a/crates/swc/tests/tsc-references/duplicateStringIndexers_es5.2.minified.js b/crates/swc/tests/tsc-references/duplicateStringIndexers_es5.2.minified.js index 194e3bc508a0..2a8b7fd73e55 100644 --- a/crates/swc/tests/tsc-references/duplicateStringIndexers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/duplicateStringIndexers_es5.2.minified.js @@ -1,5 +1,5 @@ var test; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(test) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitArrowFunctionES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitArrowFunctionES6_es5.1.normal.js index d501e2bdc6c4..501bc6955b1b 100644 --- a/crates/swc/tests/tsc-references/emitArrowFunctionES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitArrowFunctionES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; // @target:es6 var f1 = function() {}; var f2 = function(x, y) {}; diff --git a/crates/swc/tests/tsc-references/emitArrowFunctionES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitArrowFunctionES6_es5.2.minified.js index b451454e11ee..cf5213514d0f 100644 --- a/crates/swc/tests/tsc-references/emitArrowFunctionES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitArrowFunctionES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; function foo(func) {} foo(function() { return !0; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationOverloadInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationOverloadInES6_es5.1.normal.js index 202108fccc5f..94402d2f4f56 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationOverloadInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationOverloadInES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationOverloadInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationOverloadInES6_es5.2.minified.js index 694fac272560..53e35876a770 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationOverloadInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationOverloadInES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithConstructorInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithConstructorInES6_es5.1.normal.js index 234e0bdcf77c..25362049b2de 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithConstructorInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithConstructorInES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithConstructorInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithConstructorInES6_es5.2.minified.js index 5d52be484b77..86762a0c2bdd 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithConstructorInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithConstructorInES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A(x) { diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionAndTypeArgumentInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionAndTypeArgumentInES6_es5.1.normal.js index 08cbcd2eb2aa..513a19c24e78 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionAndTypeArgumentInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionAndTypeArgumentInES6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es6 var B = function B(a) { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionAndTypeArgumentInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionAndTypeArgumentInES6_es5.2.minified.js index 85e0c94ec030..cdb55b6678b9 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionAndTypeArgumentInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionAndTypeArgumentInES6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function(a) { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionInES6_es5.1.normal.js index 9a0bc8f4168b..16068e03d21c 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionInES6_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: es6 var B = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionInES6_es5.2.minified.js index cde44c52b526..1a404454b548 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithExtensionInES6_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithGetterSetterInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithGetterSetterInES6_es5.1.normal.js index 9cb5bbf677a1..cdfd8191ca88 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithGetterSetterInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithGetterSetterInES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target:es6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithGetterSetterInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithGetterSetterInES6_es5.2.minified.js index 5e2058fed944..d1d6c6981222 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithGetterSetterInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithGetterSetterInES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithLiteralPropertyNameInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithLiteralPropertyNameInES6_es5.1.normal.js index ab4b477c77ee..a29fe72122ab 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithLiteralPropertyNameInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithLiteralPropertyNameInES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var B = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithLiteralPropertyNameInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithLiteralPropertyNameInES6_es5.2.minified.js index dac4687a5198..eafed3e51ee7 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithLiteralPropertyNameInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithLiteralPropertyNameInES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithMethodInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithMethodInES6_es5.1.normal.js index ff1cf677d67f..a4c2acf42013 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithMethodInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithMethodInES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target:es6 var D = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithMethodInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithMethodInES6_es5.2.minified.js index 90bb63b27994..5ebcc395970b 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithMethodInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithMethodInES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var D = function() { "use strict"; function D() { diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1_es5.1.normal.js index 97b940264df8..133963e26f38 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1_es5.2.minified.js index f0b284094459..60a6cf902b13 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAccessInHeritageClause1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAssignmentInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAssignmentInES6_es5.1.normal.js index 89b43f008032..c137d85f6657 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAssignmentInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAssignmentInES6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target:es6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAssignmentInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAssignmentInES6_es5.2.minified.js index 6e7b997a1f1d..0ada98e4ef64 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAssignmentInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithPropertyAssignmentInES6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C), this.x = "Hello world"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithStaticPropertyAssignmentInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithStaticPropertyAssignmentInES6_es5.1.normal.js index 4cbd76b9ac12..96412535947a 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithStaticPropertyAssignmentInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithStaticPropertyAssignmentInES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target:es6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithStaticPropertyAssignmentInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithStaticPropertyAssignmentInES6_es5.2.minified.js index 45effe7c7dc7..f23387879382 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithStaticPropertyAssignmentInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithStaticPropertyAssignmentInES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithSuperMethodCall01_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithSuperMethodCall01_es5.1.normal.js index 9376b24b2c80..757e83123d8d 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithSuperMethodCall01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithSuperMethodCall01_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: es6 var Parent = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithSuperMethodCall01_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithSuperMethodCall01_es5.2.minified.js index df6082cdce83..16ab31ed7bf6 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithSuperMethodCall01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithSuperMethodCall01_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Parent = function() { "use strict"; function Parent() { diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithThisKeywordInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithThisKeywordInES6_es5.1.normal.js index 1bff604e16d4..bce7c70a7c9f 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithThisKeywordInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithThisKeywordInES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var B = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithThisKeywordInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithThisKeywordInES6_es5.2.minified.js index c2ff9f7863f5..75c68428b64c 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithThisKeywordInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithThisKeywordInES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentAndOverloadInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentAndOverloadInES6_es5.1.normal.js index 943be08488bd..fdfb286a29ae 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentAndOverloadInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentAndOverloadInES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var B = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentAndOverloadInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentAndOverloadInES6_es5.2.minified.js index 456b6399c36f..254bee6395d3 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentAndOverloadInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentAndOverloadInES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var B = function() { "use strict"; function B(a) { diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentInES6_es5.1.normal.js index 943be08488bd..fdfb286a29ae 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentInES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es6 var B = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentInES6_es5.2.minified.js index 456b6399c36f..254bee6395d3 100644 --- a/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitClassDeclarationWithTypeArgumentInES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var B = function() { "use strict"; function B(a) { diff --git a/crates/swc/tests/tsc-references/emitDefaultParametersMethodES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitDefaultParametersMethodES6_es5.1.normal.js index 8c098ab89a58..9891750010ce 100644 --- a/crates/swc/tests/tsc-references/emitDefaultParametersMethodES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitDefaultParametersMethodES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target:es6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitDefaultParametersMethodES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitDefaultParametersMethodES6_es5.2.minified.js index 020c77f8b2fb..0dfcc7a1bdc4 100644 --- a/crates/swc/tests/tsc-references/emitDefaultParametersMethodES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitDefaultParametersMethodES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(t, z, x) { diff --git a/crates/swc/tests/tsc-references/emitDefaultParametersMethod_es5.1.normal.js b/crates/swc/tests/tsc-references/emitDefaultParametersMethod_es5.1.normal.js index 2b18454dbfa1..6b1fefd83ed7 100644 --- a/crates/swc/tests/tsc-references/emitDefaultParametersMethod_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitDefaultParametersMethod_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitDefaultParametersMethod_es5.2.minified.js b/crates/swc/tests/tsc-references/emitDefaultParametersMethod_es5.2.minified.js index 020c77f8b2fb..0dfcc7a1bdc4 100644 --- a/crates/swc/tests/tsc-references/emitDefaultParametersMethod_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitDefaultParametersMethod_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(t, z, x) { diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4ES6_es5.1.normal.js index 9941bc9e26d2..d783152c6334 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: es6 var t1 = 10; var t2 = 10; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4ES6_es5.2.minified.js index 1b6734d88a03..e671153aad3a 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4ES6_es5.2.minified.js @@ -1,3 +1,3 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var t1 = 10; "".concat(Math.pow(t1, -10), " world"), "".concat(Math.pow(-t1, 10) - t1, " world"), "".concat(Math.pow(-++t1, 10) - t1, " world"), "".concat(Math.pow(-t1++, 10) - t1, " world"), "".concat(Math.pow(~t1, Math.pow(10, --t1)), " world"), "".concat(_type_of(Math.pow(t1, Math.pow(10, t1))), " world"), "".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)))), "hello ".concat(Math.pow(-t1, 10) - t1), "hello ".concat(Math.pow(-++t1, 10) - t1), "hello ".concat(Math.pow(-t1++, 10) - t1), "hello ".concat(Math.pow(~t1, Math.pow(10, --t1))), "hello ".concat(_type_of(Math.pow(t1, Math.pow(10, t1)))); diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4_es5.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4_es5.1.normal.js index 33f3bbb4c5c5..930028395f68 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: es5 var t1 = 10; var t2 = 10; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4_es5.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4_es5.2.minified.js index 1b6734d88a03..e671153aad3a 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTempalteString4_es5.2.minified.js @@ -1,3 +1,3 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var t1 = 10; "".concat(Math.pow(t1, -10), " world"), "".concat(Math.pow(-t1, 10) - t1, " world"), "".concat(Math.pow(-++t1, 10) - t1, " world"), "".concat(Math.pow(-t1++, 10) - t1, " world"), "".concat(Math.pow(~t1, Math.pow(10, --t1)), " world"), "".concat(_type_of(Math.pow(t1, Math.pow(10, t1))), " world"), "".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)))), "hello ".concat(Math.pow(-t1, 10) - t1), "hello ".concat(Math.pow(-++t1, 10) - t1), "hello ".concat(Math.pow(-t1++, 10) - t1), "hello ".concat(Math.pow(~t1, Math.pow(10, --t1))), "hello ".concat(_type_of(Math.pow(t1, Math.pow(10, t1)))); diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1ES6_es5.1.normal.js index 2f93012dcf9d..61540ce50666 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: es6 var t1 = 10; var t2 = 10; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1ES6_es5.2.minified.js index 7ba13a67e1f0..302e31d94518 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1ES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; "".concat(10000000000), "".concat(Infinity), "".concat(10000000010), "".concat(10000000010), "".concat(10000000020), "".concat(_type_of(Infinity)), "".concat(1 + _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/emitExponentiationOperatorInTemplateString1_es5.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1_es5.1.normal.js index f36ad9ec9195..d425bddc315f 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: es5 var t1 = 10; var t2 = 10; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1_es5.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1_es5.2.minified.js index 7ba13a67e1f0..302e31d94518 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString1_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; "".concat(10000000000), "".concat(Infinity), "".concat(10000000010), "".concat(10000000010), "".concat(10000000020), "".concat(_type_of(Infinity)), "".concat(1 + _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/emitExponentiationOperatorInTemplateString2ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2ES6_es5.1.normal.js index 8fe530b30043..38ac406eb980 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: es6 var t1 = 10; var t2 = 10; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2ES6_es5.2.minified.js index 8da95770b7e1..6b9aeae04a16 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2ES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; "hello ".concat(10000000000), "hello ".concat(Infinity), "hello ".concat(10000000010), "hello ".concat(10000000010), "hello ".concat(10000000020), "hello ".concat(_type_of(Infinity)), "hello ".concat(1 + _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/emitExponentiationOperatorInTemplateString2_es5.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2_es5.1.normal.js index 7a1802bab11c..f9ab72e3ad96 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: es5 var t1 = 10; var t2 = 10; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2_es5.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2_es5.2.minified.js index 8da95770b7e1..6b9aeae04a16 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString2_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; "hello ".concat(10000000000), "hello ".concat(Infinity), "hello ".concat(10000000010), "hello ".concat(10000000010), "hello ".concat(10000000020), "hello ".concat(_type_of(Infinity)), "hello ".concat(1 + _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/emitExponentiationOperatorInTemplateString3ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3ES6_es5.1.normal.js index 61fe95897c3a..12dfbe461f22 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: es6 var t1 = 10; var t2 = 10; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3ES6_es5.2.minified.js index 24a62ab78891..d81767059ca6 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3ES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; "".concat(10000000000, " world"), "".concat(Infinity, " world"), "".concat(10000000010, " world"), "".concat(10000000010, " world"), "".concat(10000000020, " world"), "".concat(_type_of(Infinity), " world"), "".concat(1 + _type_of(Infinity), " world"), "".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/emitExponentiationOperatorInTemplateString3_es5.1.normal.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3_es5.1.normal.js index 7289bcceef11..850002c4b978 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: es5 var t1 = 10; var t2 = 10; diff --git a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3_es5.2.minified.js b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3_es5.2.minified.js index 24a62ab78891..d81767059ca6 100644 --- a/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitExponentiationOperatorInTemplateString3_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; "".concat(10000000000, " world"), "".concat(Infinity, " world"), "".concat(10000000010, " world"), "".concat(10000000010, " world"), "".concat(10000000020, " world"), "".concat(_type_of(Infinity), " world"), "".concat(1 + _type_of(Infinity), " world"), "".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/emitRestParametersMethodES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emitRestParametersMethodES6_es5.1.normal.js index 554ea1284011..77ad4a2f255b 100644 --- a/crates/swc/tests/tsc-references/emitRestParametersMethodES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitRestParametersMethodES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitRestParametersMethodES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emitRestParametersMethodES6_es5.2.minified.js index ae3116d7caf0..dfaf0190026c 100644 --- a/crates/swc/tests/tsc-references/emitRestParametersMethodES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitRestParametersMethodES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(name) { diff --git a/crates/swc/tests/tsc-references/emitRestParametersMethod_es5.1.normal.js b/crates/swc/tests/tsc-references/emitRestParametersMethod_es5.1.normal.js index 7fd84463b0df..d89bbb6ab3c5 100644 --- a/crates/swc/tests/tsc-references/emitRestParametersMethod_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitRestParametersMethod_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitRestParametersMethod_es5.2.minified.js b/crates/swc/tests/tsc-references/emitRestParametersMethod_es5.2.minified.js index ae3116d7caf0..dfaf0190026c 100644 --- a/crates/swc/tests/tsc-references/emitRestParametersMethod_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitRestParametersMethod_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(name) { diff --git a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields_es5.1.normal.js b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields_es5.1.normal.js index 35763ff655b9..f0724156eff8 100644 --- a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @useDefineForClassFields: true // @target: es2015 var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields_es5.2.minified.js b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields_es5.2.minified.js index 345bbc7f39a3..b6289f2bb765 100644 --- a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCallWithDefineFields_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCall_es5.1.normal.js b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCall_es5.1.normal.js index dbd82cba6410..730edd5adbb3 100644 --- a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCall_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCall_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @useDefineForClassFields: false // @target: es2015 var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCall_es5.2.minified.js b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCall_es5.2.minified.js index 345bbc7f39a3..b6289f2bb765 100644 --- a/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCall_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitStatementsBeforeSuperCall_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es2015.1.normal.js index 3369ea06db17..786bbd26ade4 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es2015 // @lib: esnext // @filename: C1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es5.1.normal.js index ee07a283034c..ab857f2cbc9b 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es5.1.normal.js @@ -1,12 +1,12 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 regeneratorRuntime from "regenerator-runtime"; // @target: es2015 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es5.2.minified.js index 569ed9cf613a..97e3a3e876d5 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2015_es5.2.minified.js @@ -1,12 +1,12 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 regeneratorRuntime from "regenerator-runtime"; var C1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es2015.1.normal.js index 4ebe1453604d..e3a0802298ff 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es2018 // @lib: esnext // @filename: C1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es5.1.normal.js index 9b2c410cf27c..d4abb2b85151 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es5.1.normal.js @@ -1,12 +1,12 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 regeneratorRuntime from "regenerator-runtime"; // @target: es2018 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es5.2.minified.js index 569ed9cf613a..97e3a3e876d5 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es2018_es5.2.minified.js @@ -1,12 +1,12 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 regeneratorRuntime from "regenerator-runtime"; var C1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es2015.1.normal.js index 86d40833989b..34c0c964baff 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es5 // @lib: esnext // @filename: C1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es5.1.normal.js index 96119663ce98..f6f7c383330b 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es5.1.normal.js @@ -1,12 +1,12 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 regeneratorRuntime from "regenerator-runtime"; // @target: es5 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es5.2.minified.js index 569ed9cf613a..97e3a3e876d5 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.classMethods.es5_es5.2.minified.js @@ -1,12 +1,12 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 regeneratorRuntime from "regenerator-runtime"; var C1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es2015.1.normal.js index 2854a539dd83..548a5417e7fc 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function f1() { return _f1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es5.1.normal.js index 81d1068d87a6..4957293cecfb 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f1() { return _f1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es5.2.minified.js index 174223adfbc2..de0d8b084151 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2015_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es2015.1.normal.js index 805ab399e02a..24d2cac4e800 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function f1() { return _f1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es5.1.normal.js index 4ac414299d87..f1f445f4a7b5 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f1() { return _f1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es5.2.minified.js index 174223adfbc2..de0d8b084151 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es2018_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es2015.1.normal.js index b73a09a38f38..03da855e7b6b 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function f1() { return _f1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es5.1.normal.js index 98396112e065..efd19b9f9cd3 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f1() { return _f1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es5.2.minified.js index 174223adfbc2..de0d8b084151 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionDeclarations.es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es2015.1.normal.js index a48d2f3af183..2b4d831c1ea4 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es2015 // @lib: esnext // @filename: F1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es2015.2.minified.js index 7004b8b678dc..26beb0193329 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; _wrap_async_generator(function*() {}), _wrap_async_generator(function*() { yield; }), _wrap_async_generator(function*() { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es5.1.normal.js index 73c50c9cf36f..76083394487d 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es2015 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es5.2.minified.js index 92aa0f23d97f..30c12914a65c 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2015_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; _wrap_async_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es2015.1.normal.js index a2083436afed..c96b27174d3c 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es2018 // @lib: esnext // @filename: F1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es2015.2.minified.js index 7004b8b678dc..26beb0193329 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; _wrap_async_generator(function*() {}), _wrap_async_generator(function*() { yield; }), _wrap_async_generator(function*() { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es5.1.normal.js index 32ef3dcbd264..6192ecfd8752 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es2018 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es5.2.minified.js index 92aa0f23d97f..30c12914a65c 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es2018_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; _wrap_async_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es2015.1.normal.js index 5fcdf19386ca..8bb447ee9d08 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es5 // @lib: esnext // @filename: F1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es2015.2.minified.js index 7004b8b678dc..26beb0193329 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; _wrap_async_generator(function*() {}), _wrap_async_generator(function*() { yield; }), _wrap_async_generator(function*() { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es5.1.normal.js index d31b0383d8b5..9bba8afe5d1b 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es5 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es5.2.minified.js index 92aa0f23d97f..30c12914a65c 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.functionExpressions.es5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; _wrap_async_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es2015.1.normal.js index 67dbf619ed55..e427ef3ff551 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es2015 // @lib: esnext // @filename: O1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es5.1.normal.js index b045190f6ead..ff476ffcf28d 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es2015 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es5.2.minified.js index 174223adfbc2..de0d8b084151 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2015_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es2015.1.normal.js index cbdcd5b3f2a8..673d5c975cec 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es2018 // @lib: esnext // @filename: O1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es5.1.normal.js index 29a242804b4e..b7b54d6ac2f8 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es2018 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es5.2.minified.js index 174223adfbc2..de0d8b084151 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es2018_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es2015.1.normal.js index 44d9e5495fac..f4bbdcdc966b 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; // @target: es5 // @lib: esnext // @filename: O1.ts diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es2015.2.minified.js index 857c9b6b5be1..d30380729ffe 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es5.1.normal.js index 252d374e827f..aacafb76475b 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @target: es5 // @lib: esnext diff --git a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es5.2.minified.js index 174223adfbc2..de0d8b084151 100644 --- a/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.asyncGenerators.objectLiteralMethods.es5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/emitter.forAwait_es2015.1.normal.js b/crates/swc/tests/tsc-references/emitter.forAwait_es2015.1.normal.js index 188d4463a873..1a6761967438 100644 --- a/crates/swc/tests/tsc-references/emitter.forAwait_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.forAwait_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function f1() { return _f1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/emitter.forAwait_es2015.2.minified.js b/crates/swc/tests/tsc-references/emitter.forAwait_es2015.2.minified.js index b0df1077558d..4dcb1b16d4e0 100644 --- a/crates/swc/tests/tsc-references/emitter.forAwait_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.forAwait_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/emitter.forAwait_es5.1.normal.js b/crates/swc/tests/tsc-references/emitter.forAwait_es5.1.normal.js index f9c204b42930..2abe18f05000 100644 --- a/crates/swc/tests/tsc-references/emitter.forAwait_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emitter.forAwait_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f1() { return _f1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/emitter.forAwait_es5.2.minified.js b/crates/swc/tests/tsc-references/emitter.forAwait_es5.2.minified.js index ef5e1713d5c9..01badd98087f 100644 --- a/crates/swc/tests/tsc-references/emitter.forAwait_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emitter.forAwait_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01_es5.1.normal.js index 63831757f201..5f26f58b558a 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @declaration: true function f(param) { var _param = _sliced_to_array(param, 0); diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01_es5.2.minified.js index d4a961f015ab..7d190f4b61c0 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter01_es5.2.minified.js @@ -1 +1 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02_es5.1.normal.js index 435ce84dd12b..a38cbf0788d3 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @declaration: true function f(a, param) { var _param = _sliced_to_array(param, 0); diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02_es5.2.minified.js index d4a961f015ab..7d190f4b61c0 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter02_es5.2.minified.js @@ -1 +1 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03_es5.1.normal.js index 435ce84dd12b..a38cbf0788d3 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @declaration: true function f(a, param) { var _param = _sliced_to_array(param, 0); diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03_es5.2.minified.js index d4a961f015ab..7d190f4b61c0 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter03_es5.2.minified.js @@ -1 +1 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04_es5.1.normal.js index 70cdd2b2ccfa..8a9fce40c1d2 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @declaration: true function f() { var ref = _sliced_to_array(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [ diff --git a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04_es5.2.minified.js index d4a961f015ab..7d190f4b61c0 100644 --- a/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyArrayBindingPatternParameter04_es5.2.minified.js @@ -1 +1 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5_es5.1.normal.js index 7cdf24551df0..c663f3ac4a0b 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true var a; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5_es5.2.minified.js index b729e3281d79..27f95273143e 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; _sliced_to_array(a, 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable_es5.1.normal.js index 3b2046f7232a..1f677a132fb5 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true // @downlevelIteration: true diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable_es5.2.minified.js index b729e3281d79..27f95273143e 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES5iterable_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; _sliced_to_array(a, 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES6_es5.1.normal.js index 99e0475517cd..c72b70f77cb7 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es6 // @declaration: true var a; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES6_es5.2.minified.js index b729e3281d79..27f95273143e 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns01_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; _sliced_to_array(a, 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5_es5.1.normal.js index 820eb950c8a6..f4749ec5e1bf 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true var a; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5_es5.2.minified.js index 542d27fcfbd2..62e78a109339 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var a, ref, ref1; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; (ref = a).x, ref.y, ref.z, _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_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable_es5.1.normal.js index b843c0c1529f..995139ec70ed 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true // @downlevelIteration: true diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable_es5.2.minified.js index 542d27fcfbd2..62e78a109339 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES5iterable_es5.2.minified.js @@ -1,3 +1,3 @@ var a, ref, ref1; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; (ref = a).x, ref.y, ref.z, _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_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES6_es5.1.normal.js index 4d54ff8ee6cf..4231817da6a8 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es6 // @declaration: true var a; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES6_es5.2.minified.js index 542d27fcfbd2..62e78a109339 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns02_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var a, ref, ref1; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; (ref = a).x, ref.y, ref.z, _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_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5_es5.1.normal.js index bf11b42630de..69813f3dc5e0 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true var a; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5_es5.2.minified.js index 31cf7ca67e68..2f42055be780 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; _sliced_to_array(_sliced_to_array(a, 0), 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable_es5.1.normal.js index 41e18d7d1ced..87d001204249 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true // @downlevelIteration: true diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable_es5.2.minified.js index 31cf7ca67e68..2f42055be780 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES5iterable_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; _sliced_to_array(_sliced_to_array(a, 0), 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES6_es5.1.normal.js index dd0489bd485c..08e1f5ae45ab 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es6 // @declaration: true var a; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES6_es5.2.minified.js index 31cf7ca67e68..2f42055be780 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns03_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; _sliced_to_array(_sliced_to_array(a, 0), 0); diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5_es5.1.normal.js index 762539f57c2e..5a3d9f610e7b 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true var a; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5_es5.2.minified.js index 3d50c8afbf05..d8107e6c54ba 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5_es5.2.minified.js @@ -1,3 +1,3 @@ var a, ref, ref1; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; (ref = a).x, ref.y, ref.z, (ref1 = _sliced_to_array(_sliced_to_array(a, 0), 3))[0], ref1[1], ref1[2]; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable_es5.1.normal.js index 995344436638..f72633b7f1ab 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es5 // @declaration: true // @downlevelIteration: true diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable_es5.2.minified.js index 3d50c8afbf05..d8107e6c54ba 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES5iterable_es5.2.minified.js @@ -1,3 +1,3 @@ var a, ref, ref1; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; (ref = a).x, ref.y, ref.z, (ref1 = _sliced_to_array(_sliced_to_array(a, 0), 3))[0], ref1[1], ref1[2]; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES6_es5.1.normal.js index 368adcb06caf..3212078ffee9 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @target: es6 // @declaration: true var a; diff --git a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES6_es5.2.minified.js index 3d50c8afbf05..d8107e6c54ba 100644 --- a/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyAssignmentPatterns04_ES6_es5.2.minified.js @@ -1,3 +1,3 @@ var a, ref, ref1; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; (ref = a).x, ref.y, ref.z, (ref1 = _sliced_to_array(_sliced_to_array(a, 0), 3))[0], ref1[1], ref1[2]; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01_es5.1.normal.js index c58578f240db..30a2081b011d 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01_es5.1.normal.js @@ -1,4 +1,4 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; // @declaration: true function f(param) { var param = param !== null ? param : _throw(new TypeError("Cannot destructure undefined")); diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01_es5.2.minified.js index e9819e3391dd..32a96689f265 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter01_es5.2.minified.js @@ -1 +1 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02_es5.1.normal.js index 0837a90bf11e..62d7af7c298b 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02_es5.1.normal.js @@ -1,4 +1,4 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; // @declaration: true function f(a, param) { var param = param !== null ? param : _throw(new TypeError("Cannot destructure undefined")); diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02_es5.2.minified.js index e9819e3391dd..32a96689f265 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter02_es5.2.minified.js @@ -1 +1 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03_es5.1.normal.js index c85ea50dcc2c..5b51368fbd7d 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03_es5.1.normal.js @@ -1,4 +1,4 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; // @declaration: true function f(param, a) { var param = param !== null ? param : _throw(new TypeError("Cannot destructure undefined")); diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03_es5.2.minified.js index e9819e3391dd..32a96689f265 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter03_es5.2.minified.js @@ -1 +1 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04_es5.1.normal.js index 260a724f0ac4..7a003e046bd7 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04_es5.1.normal.js @@ -1,4 +1,4 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; // @declaration: true function f() { var ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { diff --git a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04_es5.2.minified.js index e9819e3391dd..32a96689f265 100644 --- a/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyObjectBindingPatternParameter04_es5.2.minified.js @@ -1 +1 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5_es5.1.normal.js index 0a779ccbed1a..4ee545f96b54 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; // @target: es5 (function() { var f = function f() { diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5_es5.2.minified.js index 580bc9c412ee..e19112d37150 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; !function() { var a, a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")), a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")), a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")); _sliced_to_array(a, 0), _sliced_to_array(a, 0), _sliced_to_array(a, 0); diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable_es5.1.normal.js index 396fcd7e7823..bc9503a51a2c 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; // @target: es5 // @downlevelIteration: true (function() { diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable_es5.2.minified.js index 580bc9c412ee..e19112d37150 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES5iterable_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; !function() { var a, a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")), a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")), a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")); _sliced_to_array(a, 0), _sliced_to_array(a, 0), _sliced_to_array(a, 0); diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES6_es5.1.normal.js index cf7f6c71ce8d..250bab75daeb 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; // @target: es6 (function() { var f = function f() { diff --git a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES6_es5.2.minified.js index 580bc9c412ee..e19112d37150 100644 --- a/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/emptyVariableDeclarationBindingPatterns01_ES6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _throw from "@swc/helpers/lib/_throw.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; !function() { var a, a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")), a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")), a = null !== a ? a : _throw(new TypeError("Cannot destructure undefined")); _sliced_to_array(a, 0), _sliced_to_array(a, 0), _sliced_to_array(a, 0); diff --git a/crates/swc/tests/tsc-references/enumAssignabilityInInheritance_es5.1.normal.js b/crates/swc/tests/tsc-references/enumAssignabilityInInheritance_es5.1.normal.js index f605352e05a2..3bdd1cc991f0 100644 --- a/crates/swc/tests/tsc-references/enumAssignabilityInInheritance_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/enumAssignabilityInInheritance_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var // enum is only a subtype of number, no types are subtypes of enum, all of these except the first are errors E; (function(E) { diff --git a/crates/swc/tests/tsc-references/enumAssignabilityInInheritance_es5.2.minified.js b/crates/swc/tests/tsc-references/enumAssignabilityInInheritance_es5.2.minified.js index f9534c9372cd..e3c8c3c18cb4 100644 --- a/crates/swc/tests/tsc-references/enumAssignabilityInInheritance_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/enumAssignabilityInInheritance_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), foo(E.A), foo(1), foo(null), foo2(E.A), foo3(E.A), foo4(E.A), foo5(E.A), foo6(E.A), foo7(E.A), foo8(E.A); diff --git a/crates/swc/tests/tsc-references/enumAssignability_es5.1.normal.js b/crates/swc/tests/tsc-references/enumAssignability_es5.1.normal.js index 01c7fd6333dc..1018d5217426 100644 --- a/crates/swc/tests/tsc-references/enumAssignability_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/enumAssignability_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var // enums assignable to number, any, Object, errors unless otherwise noted E; (function(E) { diff --git a/crates/swc/tests/tsc-references/enumAssignability_es5.2.minified.js b/crates/swc/tests/tsc-references/enumAssignability_es5.2.minified.js index c2a3ee193abf..bdc338d854ef 100644 --- a/crates/swc/tests/tsc-references/enumAssignability_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/enumAssignability_es5.2.minified.js @@ -1,5 +1,5 @@ var E, F, Others; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), function(F) { diff --git a/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber_es5.1.normal.js b/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber_es5.1.normal.js index 13ad3404f211..e57c086653a9 100644 --- a/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var // enums are only subtypes of number, any and no other types E; (function(E) { diff --git a/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber_es5.2.minified.js b/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber_es5.2.minified.js index 057f3336c584..2cb0a46afb8d 100644 --- a/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/enumIsNotASubtypeOfAnythingButNumber_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es2015.1.normal.js b/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es2015.1.normal.js index 5d830e357203..fa17d6d5308f 100644 --- a/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es2015.2.minified.js b/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es5.1.normal.js b/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es5.1.normal.js index 9f2460cca531..808db33c35d2 100644 --- a/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @noEmit: true // @allowJs: true diff --git a/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es5.2.minified.js b/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/errorOnFunctionReturnType_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/errorSuperPropertyAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/errorSuperPropertyAccess_es5.1.normal.js index 9b80af1f51be..5441b7dad016 100644 --- a/crates/swc/tests/tsc-references/errorSuperPropertyAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/errorSuperPropertyAccess_es5.1.normal.js @@ -1,11 +1,11 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; //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 diff --git a/crates/swc/tests/tsc-references/errorSuperPropertyAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/errorSuperPropertyAccess_es5.2.minified.js index d16aca94b592..91adba389214 100644 --- a/crates/swc/tests/tsc-references/errorSuperPropertyAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/errorSuperPropertyAccess_es5.2.minified.js @@ -1,11 +1,11 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var NoBase = function() { "use strict"; function NoBase() { diff --git a/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject_es5.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject_es5.1.normal.js index 6bcce241d8f5..fe95f492669f 100644 --- a/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES5 // @module: es2015 export var Object = function Object() { diff --git a/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject_es5.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject_es5.2.minified.js index 24a9cccc1fa9..0d25a9a51b93 100644 --- a/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindExportClassNameWithObject_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Object = function() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES2015Target_es5.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindWithES2015Target_es5.1.normal.js index 42079d9d1faf..ef0b8c6c8263 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES2015Target_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES2015Target_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES2015Target_es5.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindWithES2015Target_es5.2.minified.js index 4a05ebd38fd6..eabafc2e02cf 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES2015Target_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES2015Target_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target12_es5.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target12_es5.1.normal.js index d5d036ada988..998eb408e308 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target12_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 // @module: es2015 export var C = function C() { diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target12_es5.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target12_es5.2.minified.js index fe092913f355..aba0ca775d8b 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target12_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C, E, E1, N, F, C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target2_es5.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target2_es5.1.normal.js index fe80f36a71d8..ec7e28c43e95 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target2_es5.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target2_es5.2.minified.js index 8fadca477259..b1cc8271cb18 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target4_es5.1.normal.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target4_es5.1.normal.js index 226f90c97da0..69ddcb508782 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 // @module: es2015 var E = function E() { diff --git a/crates/swc/tests/tsc-references/es6modulekindWithES5Target4_es5.2.minified.js b/crates/swc/tests/tsc-references/es6modulekindWithES5Target4_es5.2.minified.js index 643b04e103c9..10a71a2d5a10 100644 --- a/crates/swc/tests/tsc-references/es6modulekindWithES5Target4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekindWithES5Target4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E = function() { "use strict"; _class_call_check(this, E); diff --git a/crates/swc/tests/tsc-references/es6modulekind_es5.1.normal.js b/crates/swc/tests/tsc-references/es6modulekind_es5.1.normal.js index 7b86e7a15b39..30684a65929c 100644 --- a/crates/swc/tests/tsc-references/es6modulekind_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/es6modulekind_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/es6modulekind_es5.2.minified.js b/crates/swc/tests/tsc-references/es6modulekind_es5.2.minified.js index 4a05ebd38fd6..eabafc2e02cf 100644 --- a/crates/swc/tests/tsc-references/es6modulekind_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/es6modulekind_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES2015Target_es5.1.normal.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES2015Target_es5.1.normal.js index 42079d9d1faf..ef0b8c6c8263 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES2015Target_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES2015Target_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES2015Target_es5.2.minified.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES2015Target_es5.2.minified.js index 4a05ebd38fd6..eabafc2e02cf 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES2015Target_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES2015Target_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12_es5.1.normal.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12_es5.1.normal.js index 159574ccdd34..b1276bba9086 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 // @module: esnext export var C = function C() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12_es5.2.minified.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12_es5.2.minified.js index fe092913f355..aba0ca775d8b 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target12_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C, E, E1, N, F, C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2_es5.1.normal.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2_es5.1.normal.js index 52be90dd05f4..c9975e8ea2f0 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2_es5.2.minified.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2_es5.2.minified.js index 8fadca477259..b1cc8271cb18 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4_es5.1.normal.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4_es5.1.normal.js index 3a504ba6d0af..e6c5ebd8820a 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es5 // @module: esnext var E = function E() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4_es5.2.minified.js b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4_es5.2.minified.js index 643b04e103c9..10a71a2d5a10 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/esnextmodulekindWithES5Target4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E = function() { "use strict"; _class_call_check(this, E); diff --git a/crates/swc/tests/tsc-references/esnextmodulekind_es5.1.normal.js b/crates/swc/tests/tsc-references/esnextmodulekind_es5.1.normal.js index 15d7f1ba8974..b9df2d9d8306 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekind_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/esnextmodulekind_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/esnextmodulekind_es5.2.minified.js b/crates/swc/tests/tsc-references/esnextmodulekind_es5.2.minified.js index 4a05ebd38fd6..eabafc2e02cf 100644 --- a/crates/swc/tests/tsc-references/esnextmodulekind_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/esnextmodulekind_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/everyTypeAssignableToAny_es5.1.normal.js b/crates/swc/tests/tsc-references/everyTypeAssignableToAny_es5.1.normal.js index c766b76a8fa4..99172dd7f6cb 100644 --- a/crates/swc/tests/tsc-references/everyTypeAssignableToAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/everyTypeAssignableToAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var a; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/everyTypeAssignableToAny_es5.2.minified.js b/crates/swc/tests/tsc-references/everyTypeAssignableToAny_es5.2.minified.js index a0d5a90d7c15..7fcb8e9fbfe5 100644 --- a/crates/swc/tests/tsc-references/everyTypeAssignableToAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeAssignableToAny_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.1.normal.js index 631b4e0b87fa..f14fbd486ed2 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.2.minified.js index 83ea82c42005..601f5b7ce917 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInitializer_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.1.normal.js index 53b6111318c6..0002d352aeb6 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.2.minified.js index 629eb119b427..cc73c298fcea 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithAnnotationAndInvalidInitializer_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, N, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.1.normal.js index 9d9ad78e8206..fe756941e636 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.2.minified.js index 47346618412f..b1cbd359f360 100644 --- a/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/everyTypeWithInitializer_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject_es5.1.normal.js b/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject_es5.1.normal.js index 5d02ea2dcaa3..b5e41397e34f 100644 --- a/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES5 // @module: esnext export var Object = function Object() { diff --git a/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject_es5.2.minified.js b/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject_es5.2.minified.js index 24a9cccc1fa9..0d25a9a51b93 100644 --- a/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exnextmodulekindExportClassNameWithObject_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Object = function() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/expandoOnAlias_es5.1.normal.js b/crates/swc/tests/tsc-references/expandoOnAlias_es5.1.normal.js index 63c8831e60bf..e34c3ca230ce 100644 --- a/crates/swc/tests/tsc-references/expandoOnAlias_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/expandoOnAlias_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @declaration: true diff --git a/crates/swc/tests/tsc-references/expandoOnAlias_es5.2.minified.js b/crates/swc/tests/tsc-references/expandoOnAlias_es5.2.minified.js index 668ce7c44caa..cb5c5065c34f 100644 --- a/crates/swc/tests/tsc-references/expandoOnAlias_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/expandoOnAlias_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Vue = function() { "use strict"; _class_call_check(this, Vue); diff --git a/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration_es5.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration_es5.1.normal.js index 4e50bc157519..bc7393d78856 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var E1; (function(E1) { E1[E1["A"] = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration_es5.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration_es5.2.minified.js index dd3f29f7f046..954327c1b651 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentAndDeclaration_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var E1; !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/exportAssignmentConstrainedGenericType_es5.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType_es5.1.normal.js index 5106b5932b02..8e72d6a20a62 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs // @Filename: foo_0.ts var Foo = function Foo(x) { diff --git a/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType_es5.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType_es5.2.minified.js index 9ae1e149b1bf..197e6c1010d4 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentConstrainedGenericType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function(x) { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/exportAssignmentGenericType_es5.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentGenericType_es5.1.normal.js index 4c76fbf428b9..ca86a413b76b 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentGenericType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentGenericType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs // @Filename: foo_0.ts var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/exportAssignmentGenericType_es5.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentGenericType_es5.2.minified.js index 6cc27b99befc..aa10aae9a070 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentGenericType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentGenericType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule_es5.1.normal.js b/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule_es5.1.normal.js index 03fa77523acd..1ab75260ae14 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: amd // @Filename: foo_0.ts var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule_es5.2.minified.js b/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule_es5.2.minified.js index 0eb7f795ab1d..882b03883d19 100644 --- a/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportAssignmentTopLevelClodule_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo), this.test = "test"; diff --git a/crates/swc/tests/tsc-references/exportBinding_es5.1.normal.js b/crates/swc/tests/tsc-references/exportBinding_es5.1.normal.js index 0f6d00538a45..7d1fa8e4d05a 100644 --- a/crates/swc/tests/tsc-references/exportBinding_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportBinding_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: exportConsts.ts // @strict: true export { x }; diff --git a/crates/swc/tests/tsc-references/exportBinding_es5.2.minified.js b/crates/swc/tests/tsc-references/exportBinding_es5.2.minified.js index d0ba3c739af0..6135683fe263 100644 --- a/crates/swc/tests/tsc-references/exportBinding_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportBinding_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export default x; var x = "x"; var Y = function Y() { diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD_es5.1.normal.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD_es5.1.normal.js index f78494ec77e9..ad4bbfda02a8 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES5 // @module: amd export var Object = function Object() { diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD_es5.2.minified.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD_es5.2.minified.js index 24a9cccc1fa9..0d25a9a51b93 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectAMD_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Object = function() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS_es5.1.normal.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS_es5.1.normal.js index 5b1d549cd503..f6af8897ab5a 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES5 // @module: commonjs export var Object = function Object() { diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS_es5.2.minified.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS_es5.2.minified.js index 24a9cccc1fa9..0d25a9a51b93 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectCommonJS_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Object = function() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem_es5.1.normal.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem_es5.1.normal.js index 8e3c02b9d8e2..735798cd0cd2 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES5 // @module: system export var Object = function Object() { diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem_es5.2.minified.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem_es5.2.minified.js index 24a9cccc1fa9..0d25a9a51b93 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectSystem_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Object = function() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD_es5.1.normal.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD_es5.1.normal.js index 5854eb1fe2b0..52387e5e5852 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES5 // @module: umd export var Object = function Object() { diff --git a/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD_es5.2.minified.js b/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD_es5.2.minified.js index 24a9cccc1fa9..0d25a9a51b93 100644 --- a/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportClassNameWithObjectUMD_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Object = function() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exportCodeGen_es5.1.normal.js b/crates/swc/tests/tsc-references/exportCodeGen_es5.1.normal.js index ebf6367aae97..591c4e224014 100644 --- a/crates/swc/tests/tsc-references/exportCodeGen_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportCodeGen_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // should replace all refs to 'x' in the body, // with fully qualified var A; diff --git a/crates/swc/tests/tsc-references/exportCodeGen_es5.2.minified.js b/crates/swc/tests/tsc-references/exportCodeGen_es5.2.minified.js index 01cfefe391e4..95caa19df3fd 100644 --- a/crates/swc/tests/tsc-references/exportCodeGen_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportCodeGen_es5.2.minified.js @@ -1,5 +1,5 @@ var A, B, C, D, E, F; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (A || (A = {})).x = 12, B || (B = {}), C || (C = {}), (D || (D = {})).yes = function() { return !0; }, function(E1) { diff --git a/crates/swc/tests/tsc-references/exportDeclaration_es5.1.normal.js b/crates/swc/tests/tsc-references/exportDeclaration_es5.1.normal.js index 64a0ebbba8a5..0355800f827b 100644 --- a/crates/swc/tests/tsc-references/exportDeclaration_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportDeclaration_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /a.ts var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/exportDeclaration_es5.2.minified.js b/crates/swc/tests/tsc-references/exportDeclaration_es5.2.minified.js index 172be2e2d4cb..089801082da4 100644 --- a/crates/swc/tests/tsc-references/exportDeclaration_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportDeclaration_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier_es5.1.normal.js b/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier_es5.1.normal.js index 29f4b1196b92..2f559cddab19 100644 --- a/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /a.ts export var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier_es5.2.minified.js b/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier_es5.2.minified.js index a430d67e36a8..241122599ec8 100644 --- a/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportDeclaration_moduleSpecifier_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject_es5.1.normal.js b/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject_es5.1.normal.js index a6502df23987..44a709b527a3 100644 --- a/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Object = function Object() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject_es5.2.minified.js b/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject_es5.2.minified.js index c8fb8001f301..914be1584441 100644 --- a/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportDefaultClassNameWithObject_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Object = function() { "use strict"; _class_call_check(this, Object); diff --git a/crates/swc/tests/tsc-references/exportDefaultClassWithStaticPropertyAssignmentsInES6_es5.1.normal.js b/crates/swc/tests/tsc-references/exportDefaultClassWithStaticPropertyAssignmentsInES6_es5.1.normal.js index 231f9708275f..618d610e0387 100644 --- a/crates/swc/tests/tsc-references/exportDefaultClassWithStaticPropertyAssignmentsInES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportDefaultClassWithStaticPropertyAssignmentsInES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _class = function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/exportDefaultClassWithStaticPropertyAssignmentsInES6_es5.2.minified.js b/crates/swc/tests/tsc-references/exportDefaultClassWithStaticPropertyAssignmentsInES6_es5.2.minified.js index 3f62569893e7..9ea5871378de 100644 --- a/crates/swc/tests/tsc-references/exportDefaultClassWithStaticPropertyAssignmentsInES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportDefaultClassWithStaticPropertyAssignmentsInES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _class = function() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/exportImportAlias_es5.1.normal.js b/crates/swc/tests/tsc-references/exportImportAlias_es5.1.normal.js index 4ff6c06458ec..efda431edeeb 100644 --- a/crates/swc/tests/tsc-references/exportImportAlias_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportImportAlias_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // expect no errors here var A; (function(A1) { diff --git a/crates/swc/tests/tsc-references/exportImportAlias_es5.2.minified.js b/crates/swc/tests/tsc-references/exportImportAlias_es5.2.minified.js index 6fc3573a9bf7..ff4a0bcb19d6 100644 --- a/crates/swc/tests/tsc-references/exportImportAlias_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportImportAlias_es5.2.minified.js @@ -1,5 +1,5 @@ var A, C, X, Z, K, M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { A1.x = "hello world"; var Point = function(x, y) { diff --git a/crates/swc/tests/tsc-references/exportNamespace1_es5.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace1_es5.1.normal.js index 02df1f74e47c..b4815aa78cda 100644 --- a/crates/swc/tests/tsc-references/exportNamespace1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: a.ts export var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/exportNamespace1_es5.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace1_es5.2.minified.js index 5d529900ed3d..5ba682b9945e 100644 --- a/crates/swc/tests/tsc-references/exportNamespace1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/exportNamespace3_es5.1.normal.js b/crates/swc/tests/tsc-references/exportNamespace3_es5.1.normal.js index 93ade6889b60..4cc5866cea54 100644 --- a/crates/swc/tests/tsc-references/exportNamespace3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNamespace3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import * as _a from "./b"; // @Filename: d.ts import { a } from "./c"; diff --git a/crates/swc/tests/tsc-references/exportNamespace3_es5.2.minified.js b/crates/swc/tests/tsc-references/exportNamespace3_es5.2.minified.js index ef1325d71857..51dcf110f0d9 100644 --- a/crates/swc/tests/tsc-references/exportNamespace3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNamespace3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import * as _a from "./b"; import { a } from "./c"; export var A = function() { diff --git a/crates/swc/tests/tsc-references/exportNestedNamespaces_es5.1.normal.js b/crates/swc/tests/tsc-references/exportNestedNamespaces_es5.1.normal.js index 6c67430d9a90..d83407486db1 100644 --- a/crates/swc/tests/tsc-references/exportNestedNamespaces_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNestedNamespaces_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: use.js import * as s from "./mod"; // @allowJs: true diff --git a/crates/swc/tests/tsc-references/exportNestedNamespaces_es5.2.minified.js b/crates/swc/tests/tsc-references/exportNestedNamespaces_es5.2.minified.js index 3b7073599a7f..2dc30c39e7c2 100644 --- a/crates/swc/tests/tsc-references/exportNestedNamespaces_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNestedNamespaces_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import * as s from "./mod"; exports.n = {}, exports.n.K = function() { this.x = 10; diff --git a/crates/swc/tests/tsc-references/exportNonVisibleType_es5.1.normal.js b/crates/swc/tests/tsc-references/exportNonVisibleType_es5.1.normal.js index a9cd6a1d3c7b..476fd00bbee3 100644 --- a/crates/swc/tests/tsc-references/exportNonVisibleType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportNonVisibleType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = { a: "test", b: 42 diff --git a/crates/swc/tests/tsc-references/exportNonVisibleType_es5.2.minified.js b/crates/swc/tests/tsc-references/exportNonVisibleType_es5.2.minified.js index 2bc813490b99..ad3ae1e3441f 100644 --- a/crates/swc/tests/tsc-references/exportNonVisibleType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportNonVisibleType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = { a: "test", b: 42 diff --git a/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution_es5.1.normal.js b/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution_es5.1.normal.js index 171ef6ef4aa0..2b7a8781882b 100644 --- a/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution_es5.2.minified.js b/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution_es5.2.minified.js index fa123898168c..2f66d1458a83 100644 --- a/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportPropertyAssignmentNameResolution_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports.D = function _class() { "use strict"; _class_call_check(this, _class); diff --git a/crates/swc/tests/tsc-references/exportsAndImports1-amd_es5.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports1-amd_es5.1.normal.js index 17d49d71ef06..3e96d0df3f90 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1-amd_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1-amd_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: t3.ts import { I, T } from "./t1"; // @module: amd diff --git a/crates/swc/tests/tsc-references/exportsAndImports1-amd_es5.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports1-amd_es5.2.minified.js index 360a417f6044..4829fb23dce5 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1-amd_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1-amd_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { I, T } from "./t1"; var E, D, M, v = 1; function f() {} diff --git a/crates/swc/tests/tsc-references/exportsAndImports1-es6_es5.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports1-es6_es5.1.normal.js index b6db5c62de97..e660a1703144 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1-es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1-es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: t3.ts import { I, T } from "./t1"; // @target: es6 diff --git a/crates/swc/tests/tsc-references/exportsAndImports1-es6_es5.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports1-es6_es5.2.minified.js index 360a417f6044..4829fb23dce5 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1-es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1-es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { I, T } from "./t1"; var E, D, M, v = 1; function f() {} diff --git a/crates/swc/tests/tsc-references/exportsAndImports1_es5.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports1_es5.1.normal.js index 34f382051349..0fdc122a0909 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: t3.ts import { I, T } from "./t1"; // @module: commonjs diff --git a/crates/swc/tests/tsc-references/exportsAndImports1_es5.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports1_es5.2.minified.js index 360a417f6044..4829fb23dce5 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { I, T } from "./t1"; var E, D, M, v = 1; function f() {} diff --git a/crates/swc/tests/tsc-references/exportsAndImports3-amd_es5.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports3-amd_es5.1.normal.js index 67671073589b..f6f329cdbd40 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3-amd_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3-amd_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: t3.ts import { I1 as I, T1 as T } from "./t1"; // @module: amd diff --git a/crates/swc/tests/tsc-references/exportsAndImports3-amd_es5.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports3-amd_es5.2.minified.js index dcee8e144b47..133a8178d3f0 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3-amd_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3-amd_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { I1 as I, T1 as T } from "./t1"; export var v = 1; export function f() {} diff --git a/crates/swc/tests/tsc-references/exportsAndImports3-es6_es5.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports3-es6_es5.1.normal.js index 571ad9299f52..83d1ace75f71 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3-es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3-es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: t3.ts import { I1 as I, T1 as T } from "./t1"; // @target: es6 diff --git a/crates/swc/tests/tsc-references/exportsAndImports3-es6_es5.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports3-es6_es5.2.minified.js index dcee8e144b47..133a8178d3f0 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3-es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3-es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { I1 as I, T1 as T } from "./t1"; export var v = 1; export function f() {} diff --git a/crates/swc/tests/tsc-references/exportsAndImports3_es5.1.normal.js b/crates/swc/tests/tsc-references/exportsAndImports3_es5.1.normal.js index 77fa316ef18d..dd6a1f0dc8f4 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: t3.ts import { I1 as I, T1 as T } from "./t1"; // @module: commonjs diff --git a/crates/swc/tests/tsc-references/exportsAndImports3_es5.2.minified.js b/crates/swc/tests/tsc-references/exportsAndImports3_es5.2.minified.js index dcee8e144b47..133a8178d3f0 100644 --- a/crates/swc/tests/tsc-references/exportsAndImports3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/exportsAndImports3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { I1 as I, T1 as T } from "./t1"; export var v = 1; export function f() {} diff --git a/crates/swc/tests/tsc-references/extendClassExpressionFromModule_es5.1.normal.js b/crates/swc/tests/tsc-references/extendClassExpressionFromModule_es5.1.normal.js index acaea0020297..d4b3b9528c31 100644 --- a/crates/swc/tests/tsc-references/extendClassExpressionFromModule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/extendClassExpressionFromModule_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @module: commonjs // @Filename: foo1.ts var x = function x() { diff --git a/crates/swc/tests/tsc-references/extendClassExpressionFromModule_es5.2.minified.js b/crates/swc/tests/tsc-references/extendClassExpressionFromModule_es5.2.minified.js index 07c85856e093..46a322ec26f7 100644 --- a/crates/swc/tests/tsc-references/extendClassExpressionFromModule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/extendClassExpressionFromModule_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var x = function() { "use strict"; _class_call_check(this, x); diff --git a/crates/swc/tests/tsc-references/extendsTag1_es5.1.normal.js b/crates/swc/tests/tsc-references/extendsTag1_es5.1.normal.js index fe959ac293ee..876c13cfe986 100644 --- a/crates/swc/tests/tsc-references/extendsTag1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/extendsTag1_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/extendsTag1_es5.2.minified.js b/crates/swc/tests/tsc-references/extendsTag1_es5.2.minified.js index 8f184661303b..5d354c97b86d 100644 --- a/crates/swc/tests/tsc-references/extendsTag1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/extendsTag1_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var My = function(Set) { "use strict"; _inherits(My, Set); diff --git a/crates/swc/tests/tsc-references/extendsTag2_es5.1.normal.js b/crates/swc/tests/tsc-references/extendsTag2_es5.1.normal.js index de7e9dee6ddc..6611ea16f1ff 100644 --- a/crates/swc/tests/tsc-references/extendsTag2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/extendsTag2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @target: esnext diff --git a/crates/swc/tests/tsc-references/extendsTag2_es5.2.minified.js b/crates/swc/tests/tsc-references/extendsTag2_es5.2.minified.js index 6cae6f598292..dcc909c50c28 100644 --- a/crates/swc/tests/tsc-references/extendsTag2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/extendsTag2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/extendsTag3_es5.1.normal.js b/crates/swc/tests/tsc-references/extendsTag3_es5.1.normal.js index 8e605595b31f..7d8a45ee202e 100644 --- a/crates/swc/tests/tsc-references/extendsTag3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/extendsTag3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @target: esnext diff --git a/crates/swc/tests/tsc-references/extendsTag3_es5.2.minified.js b/crates/swc/tests/tsc-references/extendsTag3_es5.2.minified.js index 6cae6f598292..dcc909c50c28 100644 --- a/crates/swc/tests/tsc-references/extendsTag3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/extendsTag3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/extendsTag4_es5.1.normal.js b/crates/swc/tests/tsc-references/extendsTag4_es5.1.normal.js index 843027d396c1..a8a32421fa00 100644 --- a/crates/swc/tests/tsc-references/extendsTag4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/extendsTag4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: esnext diff --git a/crates/swc/tests/tsc-references/extendsTag4_es5.2.minified.js b/crates/swc/tests/tsc-references/extendsTag4_es5.2.minified.js index 27acadfb465c..592a79d4705e 100644 --- a/crates/swc/tests/tsc-references/extendsTag4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/extendsTag4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/extendsTagEmit_es5.1.normal.js b/crates/swc/tests/tsc-references/extendsTagEmit_es5.1.normal.js index a87ad1b7ae91..af37d562706e 100644 --- a/crates/swc/tests/tsc-references/extendsTagEmit_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/extendsTagEmit_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @target: esnext diff --git a/crates/swc/tests/tsc-references/extendsTagEmit_es5.2.minified.js b/crates/swc/tests/tsc-references/extendsTagEmit_es5.2.minified.js index 9ddedfe94d00..8fe623ad269a 100644 --- a/crates/swc/tests/tsc-references/extendsTagEmit_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/extendsTagEmit_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/filterNamespace_import_es5.1.normal.js b/crates/swc/tests/tsc-references/filterNamespace_import_es5.1.normal.js index 646d920b4d50..7e7f0a7f917b 100644 --- a/crates/swc/tests/tsc-references/filterNamespace_import_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/filterNamespace_import_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /ns.ts var ns; (function(ns1) { diff --git a/crates/swc/tests/tsc-references/filterNamespace_import_es5.2.minified.js b/crates/swc/tests/tsc-references/filterNamespace_import_es5.2.minified.js index f713b6b40fbc..879a9e0863eb 100644 --- a/crates/swc/tests/tsc-references/filterNamespace_import_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/filterNamespace_import_es5.2.minified.js @@ -1,5 +1,5 @@ var ns; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(ns1) { var nested, NestedClass, Class = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/fixSignatureCaching_es5.1.normal.js b/crates/swc/tests/tsc-references/fixSignatureCaching_es5.1.normal.js index 6327c63c0fe5..8e978169eed7 100644 --- a/crates/swc/tests/tsc-references/fixSignatureCaching_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/fixSignatureCaching_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // Repro from #10697 (function(define, undefined) { define(function() { diff --git a/crates/swc/tests/tsc-references/fixSignatureCaching_es5.2.minified.js b/crates/swc/tests/tsc-references/fixSignatureCaching_es5.2.minified.js index e14bc29040f4..f7392fe95bb7 100644 --- a/crates/swc/tests/tsc-references/fixSignatureCaching_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/fixSignatureCaching_es5.2.minified.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; !function(define, undefined) { define(function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/fluentClasses_es5.1.normal.js b/crates/swc/tests/tsc-references/fluentClasses_es5.1.normal.js index 545d642d01dc..bbb273f3a32c 100644 --- a/crates/swc/tests/tsc-references/fluentClasses_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/fluentClasses_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/fluentClasses_es5.2.minified.js b/crates/swc/tests/tsc-references/fluentClasses_es5.2.minified.js index 0d3d8822971d..489bb9e934e3 100644 --- a/crates/swc/tests/tsc-references/fluentClasses_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/fluentClasses_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var c, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/for-inStatementsDestructuring_es5.1.normal.js b/crates/swc/tests/tsc-references/for-inStatementsDestructuring_es5.1.normal.js index 7388223d5e22..86f5cb5bf606 100644 --- a/crates/swc/tests/tsc-references/for-inStatementsDestructuring_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-inStatementsDestructuring_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/for-inStatementsDestructuring_es5.2.minified.js index efdae15d1bbe..20395599ffb7 100644 --- a/crates/swc/tests/tsc-references/for-inStatementsDestructuring_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-inStatementsDestructuring_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; for(var ref in []){ var _ref = _sliced_to_array(ref, 2); _ref[0], _ref[1]; diff --git a/crates/swc/tests/tsc-references/for-inStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/for-inStatements_es5.1.normal.js index f8609671e4fe..9901be51dc2d 100644 --- a/crates/swc/tests/tsc-references/for-inStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-inStatements_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var aString; for(aString in {}){} var anAny; diff --git a/crates/swc/tests/tsc-references/for-inStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/for-inStatements_es5.2.minified.js index 6cdc87c71af7..9f0f65810e3a 100644 --- a/crates/swc/tests/tsc-references/for-inStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-inStatements_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; for(aString in {}); for(anAny in {}); for(var x in {}); diff --git a/crates/swc/tests/tsc-references/for-of14_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of14_es5.1.normal.js index 7d2a18591a3c..123049e20f88 100644 --- a/crates/swc/tests/tsc-references/for-of14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of14_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of14_es5.2.minified.js index 5b376dd06610..e28256c93e43 100644 --- a/crates/swc/tests/tsc-references/for-of14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of14_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of15_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of15_es5.1.normal.js index 39facf98f307..697e59f478a4 100644 --- a/crates/swc/tests/tsc-references/for-of15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of15_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of15_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of15_es5.2.minified.js index 962c269b6e1f..82687bb7ba31 100644 --- a/crates/swc/tests/tsc-references/for-of15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of15_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of16_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of16_es5.1.normal.js index 85eeaddbcfc7..e7bdc5a0613b 100644 --- a/crates/swc/tests/tsc-references/for-of16_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of16_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of16_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of16_es5.2.minified.js index c1128e10a0e3..d255b876db96 100644 --- a/crates/swc/tests/tsc-references/for-of16_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of16_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of17_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of17_es5.1.normal.js index 721b0ca34267..bcb47ca394e7 100644 --- a/crates/swc/tests/tsc-references/for-of17_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of17_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var NumberIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of17_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of17_es5.2.minified.js index 4d034bfb77f5..dde19b05f8ff 100644 --- a/crates/swc/tests/tsc-references/for-of17_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of17_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var NumberIterator = function() { "use strict"; function NumberIterator() { diff --git a/crates/swc/tests/tsc-references/for-of18_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of18_es5.1.normal.js index 096536e1d2e4..c9f97c92c3fe 100644 --- a/crates/swc/tests/tsc-references/for-of18_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of18_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of18_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of18_es5.2.minified.js index 051115549258..ef79f3091bfc 100644 --- a/crates/swc/tests/tsc-references/for-of18_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of18_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of19_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of19_es5.1.normal.js index 300e0d7ad855..160f41462bf4 100644 --- a/crates/swc/tests/tsc-references/for-of19_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of19_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of19_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of19_es5.2.minified.js index 3d4b1097f60b..0bcf19c4f2bf 100644 --- a/crates/swc/tests/tsc-references/for-of19_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of19_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/for-of20_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of20_es5.1.normal.js index 300e0d7ad855..160f41462bf4 100644 --- a/crates/swc/tests/tsc-references/for-of20_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of20_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of20_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of20_es5.2.minified.js index 3d4b1097f60b..0bcf19c4f2bf 100644 --- a/crates/swc/tests/tsc-references/for-of20_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of20_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/for-of21_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of21_es5.1.normal.js index 300e0d7ad855..160f41462bf4 100644 --- a/crates/swc/tests/tsc-references/for-of21_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of21_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of21_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of21_es5.2.minified.js index 3d4b1097f60b..0bcf19c4f2bf 100644 --- a/crates/swc/tests/tsc-references/for-of21_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of21_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/for-of22_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of22_es5.1.normal.js index 1d2cc10f59b7..8aaf98f49421 100644 --- a/crates/swc/tests/tsc-references/for-of22_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of22_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of22_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of22_es5.2.minified.js index 3d4b1097f60b..0bcf19c4f2bf 100644 --- a/crates/swc/tests/tsc-references/for-of22_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of22_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/for-of23_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of23_es5.1.normal.js index 741919494eb1..816e4f1407fc 100644 --- a/crates/swc/tests/tsc-references/for-of23_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of23_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of23_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of23_es5.2.minified.js index 3d4b1097f60b..0bcf19c4f2bf 100644 --- a/crates/swc/tests/tsc-references/for-of23_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of23_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/for-of25_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of25_es5.1.normal.js index ed3e06b36cd9..7244ee6d0847 100644 --- a/crates/swc/tests/tsc-references/for-of25_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of25_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of25_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of25_es5.2.minified.js index 75c1b8339638..c2d57be54b27 100644 --- a/crates/swc/tests/tsc-references/for-of25_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of25_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of26_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of26_es5.1.normal.js index 7f83b983befd..760ef60f6e2c 100644 --- a/crates/swc/tests/tsc-references/for-of26_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of26_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of26_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of26_es5.2.minified.js index e5c665dd399e..3ed2892f7dd4 100644 --- a/crates/swc/tests/tsc-references/for-of26_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of26_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of27_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of27_es5.1.normal.js index da565d62b540..d0458fc5287c 100644 --- a/crates/swc/tests/tsc-references/for-of27_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of27_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = function StringIterator() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of27_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of27_es5.2.minified.js index e2489a39ee41..05471027d1e5 100644 --- a/crates/swc/tests/tsc-references/for-of27_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of27_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; _class_call_check(this, StringIterator); diff --git a/crates/swc/tests/tsc-references/for-of28_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of28_es5.1.normal.js index e001b3b7eedc..0dc8b453193c 100644 --- a/crates/swc/tests/tsc-references/for-of28_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of28_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of28_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of28_es5.2.minified.js index c1128e10a0e3..d255b876db96 100644 --- a/crates/swc/tests/tsc-references/for-of28_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of28_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of30_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of30_es5.1.normal.js index dab3f317d0fb..c00b61e991ad 100644 --- a/crates/swc/tests/tsc-references/for-of30_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of30_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _iterator = Symbol.iterator; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/for-of30_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of30_es5.2.minified.js index 4dce9272988d..f70f727f8e79 100644 --- a/crates/swc/tests/tsc-references/for-of30_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of30_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _iterator = Symbol.iterator, StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of31_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of31_es5.1.normal.js index 7e8f7ed86f9d..9f67c030a2d4 100644 --- a/crates/swc/tests/tsc-references/for-of31_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of31_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var StringIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/for-of31_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of31_es5.2.minified.js index 746e80f82c84..ca8be58e9f3e 100644 --- a/crates/swc/tests/tsc-references/for-of31_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of31_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of33_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of33_es5.1.normal.js index 5d357f9b99d9..90a5cc2575ab 100644 --- a/crates/swc/tests/tsc-references/for-of33_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of33_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 //@noImplicitAny: true var StringIterator = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/for-of33_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of33_es5.2.minified.js index 055bba550ed5..6f477c16959a 100644 --- a/crates/swc/tests/tsc-references/for-of33_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of33_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of34_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of34_es5.1.normal.js index c6d508288e52..97a99411a0a0 100644 --- a/crates/swc/tests/tsc-references/for-of34_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of34_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 //@noImplicitAny: true var StringIterator = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/for-of34_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of34_es5.2.minified.js index 2aff68012970..76a541674869 100644 --- a/crates/swc/tests/tsc-references/for-of34_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of34_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of35_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of35_es5.1.normal.js index 5bccfce5678e..ee12affcd7ca 100644 --- a/crates/swc/tests/tsc-references/for-of35_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of35_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 //@noImplicitAny: true var StringIterator = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/for-of35_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of35_es5.2.minified.js index f684c3194b59..3f543e21dcaf 100644 --- a/crates/swc/tests/tsc-references/for-of35_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of35_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var StringIterator = function() { "use strict"; function StringIterator() { diff --git a/crates/swc/tests/tsc-references/for-of38_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of38_es5.1.normal.js index b1781c9db221..6db14769d018 100644 --- a/crates/swc/tests/tsc-references/for-of38_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of38_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var map = new Map([ [ diff --git a/crates/swc/tests/tsc-references/for-of38_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of38_es5.2.minified.js index b110be4b42c8..407bca0ef8ee 100644 --- a/crates/swc/tests/tsc-references/for-of38_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of38_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var map = new Map([ [ "", diff --git a/crates/swc/tests/tsc-references/for-of39_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of39_es5.1.normal.js index 2cef6597f5cf..894b0d24e984 100644 --- a/crates/swc/tests/tsc-references/for-of39_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of39_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; // @lib: es2015 // @target: ES6 var map = new Map([ diff --git a/crates/swc/tests/tsc-references/for-of39_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of39_es5.2.minified.js index e3b289b4dc65..1d32ca826b1b 100644 --- a/crates/swc/tests/tsc-references/for-of39_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of39_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var map = new Map([ [ "", diff --git a/crates/swc/tests/tsc-references/for-of40_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of40_es5.1.normal.js index 75768450cb7c..68d37bf04109 100644 --- a/crates/swc/tests/tsc-references/for-of40_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of40_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var map = new Map([ [ diff --git a/crates/swc/tests/tsc-references/for-of40_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of40_es5.2.minified.js index b110be4b42c8..407bca0ef8ee 100644 --- a/crates/swc/tests/tsc-references/for-of40_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of40_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var map = new Map([ [ "", diff --git a/crates/swc/tests/tsc-references/for-of41_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of41_es5.1.normal.js index ca90780fbd09..4e6fa2cfc852 100644 --- a/crates/swc/tests/tsc-references/for-of41_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of41_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var array = [ { diff --git a/crates/swc/tests/tsc-references/for-of41_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of41_es5.2.minified.js index b6b3b5460fb7..deb78c4c73d9 100644 --- a/crates/swc/tests/tsc-references/for-of41_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of41_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var _step, _iterator = [ diff --git a/crates/swc/tests/tsc-references/for-of44_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of44_es5.1.normal.js index 59ef3632ce73..47822eb5ef5e 100644 --- a/crates/swc/tests/tsc-references/for-of44_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of44_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var array = [ [ diff --git a/crates/swc/tests/tsc-references/for-of44_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of44_es5.2.minified.js index 3871aa95887b..fe34ad8bf6ad 100644 --- a/crates/swc/tests/tsc-references/for-of44_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of44_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var array = [ [ 0, diff --git a/crates/swc/tests/tsc-references/for-of45_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of45_es5.1.normal.js index e33e1aab947f..77c316ecb5af 100644 --- a/crates/swc/tests/tsc-references/for-of45_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of45_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var k, v; var map = new Map([ diff --git a/crates/swc/tests/tsc-references/for-of45_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of45_es5.2.minified.js index 017d276b9afd..090f036209a1 100644 --- a/crates/swc/tests/tsc-references/for-of45_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of45_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var map = new Map([ [ "", diff --git a/crates/swc/tests/tsc-references/for-of46_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of46_es5.1.normal.js index 2ae4875908eb..c5dc04369728 100644 --- a/crates/swc/tests/tsc-references/for-of46_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of46_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var k, v; var map = new Map([ diff --git a/crates/swc/tests/tsc-references/for-of46_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of46_es5.2.minified.js index 017d276b9afd..090f036209a1 100644 --- a/crates/swc/tests/tsc-references/for-of46_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of46_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var map = new Map([ [ "", diff --git a/crates/swc/tests/tsc-references/for-of49_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of49_es5.1.normal.js index b769c31e3f04..376ee34c8eff 100644 --- a/crates/swc/tests/tsc-references/for-of49_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of49_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; //@target: ES6 var k, v; var map = new Map([ diff --git a/crates/swc/tests/tsc-references/for-of49_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of49_es5.2.minified.js index af3cb68cf343..e0a3931cf515 100644 --- a/crates/swc/tests/tsc-references/for-of49_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of49_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; var map = new Map([ [ "", diff --git a/crates/swc/tests/tsc-references/for-of50_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of50_es5.1.normal.js index b1781c9db221..6db14769d018 100644 --- a/crates/swc/tests/tsc-references/for-of50_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of50_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var map = new Map([ [ diff --git a/crates/swc/tests/tsc-references/for-of50_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of50_es5.2.minified.js index b110be4b42c8..407bca0ef8ee 100644 --- a/crates/swc/tests/tsc-references/for-of50_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of50_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var map = new Map([ [ "", diff --git a/crates/swc/tests/tsc-references/for-of52_es5.1.normal.js b/crates/swc/tests/tsc-references/for-of52_es5.1.normal.js index 858d2eb5e8ed..49a9f71e3c49 100644 --- a/crates/swc/tests/tsc-references/for-of52_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/for-of52_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@target: ES6 diff --git a/crates/swc/tests/tsc-references/for-of52_es5.2.minified.js b/crates/swc/tests/tsc-references/for-of52_es5.2.minified.js index 24ca8e324124..718fe8acd47c 100644 --- a/crates/swc/tests/tsc-references/for-of52_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/for-of52_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var _step, _iterator = [ diff --git a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.1.normal.js b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.1.normal.js index 589f1bd6a4c7..5b6091823926 100644 --- a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.2.minified.js b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.2.minified.js index cc6daf0a2aa9..11a248d2d1cb 100644 --- a/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/forStatementsMultipleInvalidDecl_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/forStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/forStatements_es5.1.normal.js index bf3f75f9bb26..a217e89605a4 100644 --- a/crates/swc/tests/tsc-references/forStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/forStatements_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/forStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/forStatements_es5.2.minified.js index 9b0901f1278a..3feda8465f05 100644 --- a/crates/swc/tests/tsc-references/forStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/forStatements_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/forgottenNew_es5.1.normal.js b/crates/swc/tests/tsc-references/forgottenNew_es5.1.normal.js index 3cbf70af9f29..714ec00e3e90 100644 --- a/crates/swc/tests/tsc-references/forgottenNew_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/forgottenNew_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Tools; (function(Tools1) { var NullLogger = function NullLogger() { diff --git a/crates/swc/tests/tsc-references/forgottenNew_es5.2.minified.js b/crates/swc/tests/tsc-references/forgottenNew_es5.2.minified.js index 1fde36a5f7f0..baac860f6815 100644 --- a/crates/swc/tests/tsc-references/forgottenNew_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/forgottenNew_es5.2.minified.js @@ -1,5 +1,5 @@ var Tools; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(Tools1) { var NullLogger = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction2_es5.1.normal.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction2_es5.1.normal.js index 04afa31f7708..c5ec323fa892 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // satisfaction of a constraint to Function, all of these invocations are errors unless otherwise noted function foo(x) { return x; diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction2_es5.2.minified.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction2_es5.2.minified.js index fea796463390..96d678d44ccb 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(x) { return x; }(function() {}, 1); diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction3_es5.1.normal.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction3_es5.1.normal.js index e4f97bf838c3..8b6773fc831c 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // satisfaction of a constraint to Function, no errors expected function foo(x) { return x; diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction3_es5.2.minified.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction3_es5.2.minified.js index 1519bdba7147..de6b34f7edfe 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction_es5.1.normal.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction_es5.1.normal.js index 75206fe92cbf..233d1c0a4835 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // satisfaction of a constraint to Function, no errors expected function foo(x) { return x; diff --git a/crates/swc/tests/tsc-references/functionConstraintSatisfaction_es5.2.minified.js b/crates/swc/tests/tsc-references/functionConstraintSatisfaction_es5.2.minified.js index f1fbbe22b30c..6fa1588b661f 100644 --- a/crates/swc/tests/tsc-references/functionConstraintSatisfaction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/functionConstraintSatisfaction_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/functionExpressionContextualTyping1_es5.1.normal.js b/crates/swc/tests/tsc-references/functionExpressionContextualTyping1_es5.1.normal.js index b04ccbd9197a..fb7f8883d7dd 100644 --- a/crates/swc/tests/tsc-references/functionExpressionContextualTyping1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/functionExpressionContextualTyping1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var // 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 E; diff --git a/crates/swc/tests/tsc-references/functionExpressionContextualTyping1_es5.2.minified.js b/crates/swc/tests/tsc-references/functionExpressionContextualTyping1_es5.2.minified.js index d01c2787db92..7b3e046020af 100644 --- a/crates/swc/tests/tsc-references/functionExpressionContextualTyping1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/functionExpressionContextualTyping1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.red = 0] = "red", E[E.blue = 1] = "blue"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/functionImplementationErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/functionImplementationErrors_es5.1.normal.js index d9ee8608f628..d93f5be86199 100644 --- a/crates/swc/tests/tsc-references/functionImplementationErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/functionImplementationErrors_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowUnreachableCode: true // FunctionExpression with no return type annotation with multiple return statements with unrelated types var f1 = function f1() { diff --git a/crates/swc/tests/tsc-references/functionImplementationErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/functionImplementationErrors_es5.2.minified.js index 026b201792db..ee704e40f30c 100644 --- a/crates/swc/tests/tsc-references/functionImplementationErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/functionImplementationErrors_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/functionImplementations_es5.1.normal.js b/crates/swc/tests/tsc-references/functionImplementations_es5.1.normal.js index dedef01a1025..b3f2a4a64202 100644 --- a/crates/swc/tests/tsc-references/functionImplementations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/functionImplementations_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowUnreachableCode: true // FunctionExpression with no return type annotation and no return statement returns void var v = function() {}(); diff --git a/crates/swc/tests/tsc-references/functionImplementations_es5.2.minified.js b/crates/swc/tests/tsc-references/functionImplementations_es5.2.minified.js index 728de0fc97d3..a4ae0dd7fae9 100644 --- a/crates/swc/tests/tsc-references/functionImplementations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/functionImplementations_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function rec1() { return rec2(); } diff --git a/crates/swc/tests/tsc-references/functionLiteralForOverloads2_es5.1.normal.js b/crates/swc/tests/tsc-references/functionLiteralForOverloads2_es5.1.normal.js index 3f4e8bc5bebf..7e9b09325754 100644 --- a/crates/swc/tests/tsc-references/functionLiteralForOverloads2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/functionLiteralForOverloads2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // basic uses of function literals with constructor overloads var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/functionLiteralForOverloads2_es5.2.minified.js b/crates/swc/tests/tsc-references/functionLiteralForOverloads2_es5.2.minified.js index c207190e5e50..3aee9a45b3e5 100644 --- a/crates/swc/tests/tsc-references/functionLiteralForOverloads2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/functionLiteralForOverloads2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/generatedContextualTyping_es5.1.normal.js b/crates/swc/tests/tsc-references/generatedContextualTyping_es5.1.normal.js index 12e442872b49..bd5ab21addd4 100644 --- a/crates/swc/tests/tsc-references/generatedContextualTyping_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatedContextualTyping_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowUnreachableCode: true var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/generatedContextualTyping_es5.2.minified.js b/crates/swc/tests/tsc-references/generatedContextualTyping_es5.2.minified.js index 73b1ecb95701..a96762c2289f 100644 --- a/crates/swc/tests/tsc-references/generatedContextualTyping_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatedContextualTyping_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; 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() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/generatorAssignability_es2015.1.normal.js b/crates/swc/tests/tsc-references/generatorAssignability_es2015.1.normal.js index df813047dabd..69f6db5c08d1 100644 --- a/crates/swc/tests/tsc-references/generatorAssignability_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorAssignability_es2015.1.normal.js @@ -1,8 +1,8 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; +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"; // spread iterable [ ...g1 diff --git a/crates/swc/tests/tsc-references/generatorAssignability_es2015.2.minified.js b/crates/swc/tests/tsc-references/generatorAssignability_es2015.2.minified.js index 0d3243dd48a8..54a7c334b49d 100644 --- a/crates/swc/tests/tsc-references/generatorAssignability_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorAssignability_es2015.2.minified.js @@ -1,8 +1,8 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; +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"; let [x1] = g1, [x2] = g2, [...y1] = g1, [...y2] = g2; for (_ of ([_] = g1, [_] = g2, [..._] = g1, [..._] = g2, g1)); for (_ of g2); diff --git a/crates/swc/tests/tsc-references/generatorAssignability_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorAssignability_es5.1.normal.js index 32c2e5904491..4967bd363c5c 100644 --- a/crates/swc/tests/tsc-references/generatorAssignability_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorAssignability_es5.1.normal.js @@ -1,12 +1,12 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; +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 _define_property from "@swc/helpers/src/_define_property.mjs"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(f1); // spread iterable diff --git a/crates/swc/tests/tsc-references/generatorAssignability_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorAssignability_es5.2.minified.js index e738bb304c24..8707f1d64db3 100644 --- a/crates/swc/tests/tsc-references/generatorAssignability_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorAssignability_es5.2.minified.js @@ -1,12 +1,12 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_generator_delegate from "@swc/helpers/src/_async_generator_delegate.mjs"; +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 _define_property from "@swc/helpers/src/_define_property.mjs"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorInAmbientContext5_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorInAmbientContext5_es5.1.normal.js index 25c8e04be69c..736c8826c3cd 100644 --- a/crates/swc/tests/tsc-references/generatorInAmbientContext5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorInAmbientContext5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; //@target: ES6 //@declaration: true diff --git a/crates/swc/tests/tsc-references/generatorInAmbientContext5_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorInAmbientContext5_es5.2.minified.js index 2b13e438f4d6..644caff4361b 100644 --- a/crates/swc/tests/tsc-references/generatorInAmbientContext5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorInAmbientContext5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/generatorOverloads4_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorOverloads4_es5.1.normal.js index 760709eddd6a..3873d819590d 100644 --- a/crates/swc/tests/tsc-references/generatorOverloads4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorOverloads4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; //@target: ES6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/generatorOverloads4_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorOverloads4_es5.2.minified.js index f243cc5075c2..2ba5ffebf5eb 100644 --- a/crates/swc/tests/tsc-references/generatorOverloads4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorOverloads4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/generatorReturnContextualType_es2015.1.normal.js b/crates/swc/tests/tsc-references/generatorReturnContextualType_es2015.1.normal.js index d13f2a5d8e8c..64eb2abae36a 100644 --- a/crates/swc/tests/tsc-references/generatorReturnContextualType_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorReturnContextualType_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; // @target: esnext // @strict: true // #35995 diff --git a/crates/swc/tests/tsc-references/generatorReturnContextualType_es2015.2.minified.js b/crates/swc/tests/tsc-references/generatorReturnContextualType_es2015.2.minified.js index 4f81e00e89e4..b5a43c01d311 100644 --- a/crates/swc/tests/tsc-references/generatorReturnContextualType_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorReturnContextualType_es2015.2.minified.js @@ -1 +1 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/generatorReturnContextualType_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorReturnContextualType_es5.1.normal.js index 5f11e63d9ea2..7fa930f2431f 100644 --- a/crates/swc/tests/tsc-references/generatorReturnContextualType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorReturnContextualType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(f1); // @target: esnext diff --git a/crates/swc/tests/tsc-references/generatorReturnContextualType_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorReturnContextualType_es5.2.minified.js index 01011e71802e..8f4cc1f9fe5c 100644 --- a/crates/swc/tests/tsc-references/generatorReturnContextualType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorReturnContextualType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorReturnTypeInferenceNonStrict_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorReturnTypeInferenceNonStrict_es5.1.normal.js index 6e3aa0dd1c67..bbad3a90df0b 100644 --- a/crates/swc/tests/tsc-references/generatorReturnTypeInferenceNonStrict_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorReturnTypeInferenceNonStrict_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g311); var _marked1 = regeneratorRuntime.mark(g310); diff --git a/crates/swc/tests/tsc-references/generatorReturnTypeInferenceNonStrict_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorReturnTypeInferenceNonStrict_es5.2.minified.js index 47964400bdb4..d4c3fbd7134e 100644 --- a/crates/swc/tests/tsc-references/generatorReturnTypeInferenceNonStrict_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorReturnTypeInferenceNonStrict_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx1) { diff --git a/crates/swc/tests/tsc-references/generatorReturnTypeInference_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorReturnTypeInference_es5.1.normal.js index 4349773bfcbd..281bbbb86a2a 100644 --- a/crates/swc/tests/tsc-references/generatorReturnTypeInference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorReturnTypeInference_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g311); var _marked1 = regeneratorRuntime.mark(g310); diff --git a/crates/swc/tests/tsc-references/generatorReturnTypeInference_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorReturnTypeInference_es5.2.minified.js index 47964400bdb4..d4c3fbd7134e 100644 --- a/crates/swc/tests/tsc-references/generatorReturnTypeInference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorReturnTypeInference_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx1) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck17_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck17_es5.1.normal.js index 1eb93eddb225..efac76dc7fea 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck17_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck17_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck17_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck17_es5.2.minified.js index b664ddb8c919..2a35b2ca45fb 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck17_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck17_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck18_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck18_es5.1.normal.js index b9ecfbfc1789..0afc361bae43 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck18_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck18_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck18_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck18_es5.2.minified.js index 18ec3fd0faaf..72ef00f07d50 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck18_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck18_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck19_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck19_es5.1.normal.js index abe5a42c6769..2cbf2f32d56a 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck19_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck19_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck19_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck19_es5.2.minified.js index d138b9701d1d..d45bdf19d664 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck19_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck19_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck20_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck20_es5.1.normal.js index 4e9779735f16..2fd9d72f32c0 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck20_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck20_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck20_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck20_es5.2.minified.js index def9fe4293cd..e9c2e29fe85c 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck20_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck20_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck21_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck21_es5.1.normal.js index be90c5212491..47c357fd4c7c 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck21_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck21_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck21_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck21_es5.2.minified.js index 7ce81b136578..b7e14fe32446 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck21_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck21_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck22_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck22_es5.1.normal.js index 6271b376bb88..9981723146a9 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck22_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck22_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g3); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck22_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck22_es5.2.minified.js index 0cc54d4ed2ba..3498617a7d6c 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck22_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck22_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck23_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck23_es5.1.normal.js index 7c1db1e1b23c..3fcd6bd8f781 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck23_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck23_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g3); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck23_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck23_es5.2.minified.js index d23ff5c5591a..9424511d174a 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck23_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck23_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck24_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck24_es5.1.normal.js index 055396cf197c..7982ab937651 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck24_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck24_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g3); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck24_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck24_es5.2.minified.js index ac5900b309e8..bf88b46bd36e 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck24_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck24_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck25_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck25_es5.1.normal.js index e1753ba2d774..e3946368595b 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck25_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck25_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; //@target: ES6 var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck25_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck25_es5.2.minified.js index 81e82f977bcf..b82d87095a19 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck25_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck25_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var Foo = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck28_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck28_es5.1.normal.js index 8d818c4b3a65..519054e12717 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck28_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck28_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck28_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck28_es5.2.minified.js index 5bdd74731ad6..5cf3817de841 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck28_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck28_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx1) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck40_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck40_es5.1.normal.js index bfd908c5d295..2db2bd9356ef 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck40_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck40_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck40_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck40_es5.2.minified.js index 81c23befddbc..060c3c522fd5 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck40_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck40_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { var C; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck41_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck41_es5.1.normal.js index eb113da930e5..f0b33b6303eb 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck41_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck41_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck41_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck41_es5.2.minified.js index 250ef466a233..dd8ca4cfe978 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck41_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck41_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { var x; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck42_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck42_es5.1.normal.js index 33bb541c6c57..70dc737119c7 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck42_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck42_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck42_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck42_es5.2.minified.js index bc5160ec4172..a6ea5b913d5c 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck42_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck42_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { var x; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck43_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck43_es5.1.normal.js index c9873245d853..11858f7c08c4 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck43_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck43_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck43_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck43_es5.2.minified.js index a9fb0f3cb8b0..b616b837bd72 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck43_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck43_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { var x; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck44_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck44_es5.1.normal.js index 09a41975e4ae..dff767f80a2d 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck44_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck44_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck44_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck44_es5.2.minified.js index 365c0c287d01..4e79931f0592 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck44_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck44_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { var _obj, _mutatorMap, x; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck46_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck46_es5.1.normal.js index 1c243b156501..f687769aaaba 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck46_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck46_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; foo("", regeneratorRuntime.mark(function _callee1() { return regeneratorRuntime.wrap(function _callee$(_ctx1) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck46_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck46_es5.2.minified.js index ee1649eef625..e2b42d0b09b4 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck46_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck46_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; import regeneratorRuntime from "regenerator-runtime"; foo("", regeneratorRuntime.mark(function _callee1() { return regeneratorRuntime.wrap(function(_ctx1) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck52_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck52_es5.1.normal.js index 39bd4076ba2f..5ed66d9b10b0 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck52_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck52_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck52_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck52_es5.2.minified.js index 47d880c4127c..62e9385a7aa4 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck52_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck52_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck53_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck53_es5.1.normal.js index 1feae63bd549..8635d6399a87 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck53_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck53_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck53_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck53_es5.2.minified.js index 8c96d320a985..eafcc2cc743a 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck53_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck53_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck54_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck54_es5.1.normal.js index 4b10376946ad..313d31bb2cda 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck54_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck54_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck54_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck54_es5.2.minified.js index bbc89264d907..94737d77f60e 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck54_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck54_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck55_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck55_es5.1.normal.js index 737f717c6a8f..dc52ca7ba46d 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck55_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck55_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck55_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck55_es5.2.minified.js index 69d21b96c2b0..639962dee171 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck55_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck55_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { var x; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck56_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck56_es5.1.normal.js index 4e82b4ea030b..6bca117ce922 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck56_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck56_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck56_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck56_es5.2.minified.js index fc042b2d1d46..d1a4176dec38 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck56_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck56_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { var x; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck60_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck60_es5.1.normal.js index ed5cdd0a1ee3..b511d1386313 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck60_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck60_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(g); //@target: ES6 diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck60_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck60_es5.2.minified.js index 4f48a3c576de..7b600b24dc0b 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck60_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck60_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function() { var C; diff --git a/crates/swc/tests/tsc-references/generatorYieldContextualType_es2015.1.normal.js b/crates/swc/tests/tsc-references/generatorYieldContextualType_es2015.1.normal.js index 12fd1c1b6a0f..125e7c0e0291 100644 --- a/crates/swc/tests/tsc-references/generatorYieldContextualType_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorYieldContextualType_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; f1(function*() { const a = yield 0; return 0; diff --git a/crates/swc/tests/tsc-references/generatorYieldContextualType_es2015.2.minified.js b/crates/swc/tests/tsc-references/generatorYieldContextualType_es2015.2.minified.js index e3338219c840..66441f584d76 100644 --- a/crates/swc/tests/tsc-references/generatorYieldContextualType_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorYieldContextualType_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; f1(function*() { return yield 0, 0; }), f2(_wrap_async_generator(function*() { diff --git a/crates/swc/tests/tsc-references/generatorYieldContextualType_es5.1.normal.js b/crates/swc/tests/tsc-references/generatorYieldContextualType_es5.1.normal.js index c381feca621d..e290a858ddd8 100644 --- a/crates/swc/tests/tsc-references/generatorYieldContextualType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorYieldContextualType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; f1(regeneratorRuntime.mark(function _callee() { var a; diff --git a/crates/swc/tests/tsc-references/generatorYieldContextualType_es5.2.minified.js b/crates/swc/tests/tsc-references/generatorYieldContextualType_es5.2.minified.js index f5fc800e9431..9ef2a2b31db3 100644 --- a/crates/swc/tests/tsc-references/generatorYieldContextualType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorYieldContextualType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; f1(regeneratorRuntime.mark(function _callee() { var a; diff --git a/crates/swc/tests/tsc-references/genericCallTypeArgumentInference_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallTypeArgumentInference_es5.1.normal.js index 8ce04ee727ec..7ad86178f784 100644 --- a/crates/swc/tests/tsc-references/genericCallTypeArgumentInference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallTypeArgumentInference_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Basic type inference with generic calls, no errors expected function foo(t) { return t; diff --git a/crates/swc/tests/tsc-references/genericCallTypeArgumentInference_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallTypeArgumentInference_es5.2.minified.js index d3e9fcc8ae90..2a64805dc3d2 100644 --- a/crates/swc/tests/tsc-references/genericCallTypeArgumentInference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallTypeArgumentInference_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, C = function() { "use strict"; function C(t, u) { diff --git a/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference_es5.1.normal.js index a2e8db4893e4..44a0591174a5 100644 --- a/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Basic type inference with generic calls and constraints, no errors expected var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference_es5.2.minified.js index dd6116e8a1dc..e2556d679612 100644 --- a/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithConstraintsTypeArgumentInference_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var b, d1, d2, i, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4_es5.1.normal.js index a244a888d59a..d2c9cc2e2c41 100644 --- a/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // No inference is made from function typed arguments which have multiple call signatures var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4_es5.2.minified.js index 154e5c9f7b63..9672745280e3 100644 --- a/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithFunctionTypedArguments4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var a, b, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2_es5.1.normal.js index dc48cc4dc1d6..1aa2acf64ed1 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2_es5.2.minified.js index f4388ee5a7f5..f18849efe09f 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var i, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2_es5.1.normal.js index 268b8a3baa0e..53126f4db345 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Generic call with constraints infering type parameter from object member properties // No errors expected var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2_es5.2.minified.js index 632dcc4b5026..0fca0586323f 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3_es5.1.normal.js index a9acea700ca7..94596f8365cb 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Generic call with constraints infering type parameter from object member properties var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3_es5.2.minified.js index 276993a72a49..b4c69802550d 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4_es5.1.normal.js index fc3a07250ba2..67a8e085c8a7 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Generic call with constraints infering type parameter from object member properties var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4_es5.2.minified.js index da26d23a73a4..8a4c290a1200 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, d, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5_es5.1.normal.js index 639aae17c63b..f2bb9c5caf68 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Generic call with constraints infering type parameter from object member properties var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5_es5.2.minified.js index 979fad872d43..9c9e09eca695 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, d, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints_es5.1.normal.js index a9ba56e4c016..83f96d812ead 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Generic call with constraints infering type parameter from object member properties // No errors expected var C = function C() { diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints_es5.2.minified.js index df9c69a39870..cf2f15ea4225 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgsAndConstraints_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs_es5.1.normal.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs_es5.1.normal.js index 75ac27bfe598..23ba973e94be 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs_es5.2.minified.js b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs_es5.2.minified.js index 56a41a29d1fb..a8307f72fc43 100644 --- a/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericCallWithObjectTypeArgs_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericClassExpressionInFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/genericClassExpressionInFunction_es5.1.normal.js index e4a7c1d165ca..f35180f5862a 100644 --- a/crates/swc/tests/tsc-references/genericClassExpressionInFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericClassExpressionInFunction_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/genericClassExpressionInFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/genericClassExpressionInFunction_es5.2.minified.js index 20cba3188b29..af943ef2905d 100644 --- a/crates/swc/tests/tsc-references/genericClassExpressionInFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericClassExpressionInFunction_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments_es5.1.normal.js index ba68c172b8fe..0c930b448f24 100644 --- a/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Generic functions used as arguments for function typed parameters are not used to make inferences from // Using function arguments, no errors expected var ImmediatelyFix; diff --git a/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments_es5.2.minified.js index 613e8f6682e2..38b329184637 100644 --- a/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericClassWithFunctionTypedMemberArguments_es5.2.minified.js @@ -1,5 +1,5 @@ var ImmediatelyFix, WithCandidates; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(ImmediatelyFix) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints_es5.1.normal.js index 0dec2273004b..935143adf424 100644 --- a/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Generic call with constraints infering type parameter from object member properties // No errors expected var C = function C() { diff --git a/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints_es5.2.minified.js index f8c6efc107ec..fcf9ac43fcdd 100644 --- a/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericClassWithObjectTypeArgsAndConstraints_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Class, Interface, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/genericObjectRest_es2015.1.normal.js b/crates/swc/tests/tsc-references/genericObjectRest_es2015.1.normal.js index 16dd01bc1244..2b3fe2acde1f 100644 --- a/crates/swc/tests/tsc-references/genericObjectRest_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/genericObjectRest_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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"; // @strict: true // @target: es2015 const a = 'a'; diff --git a/crates/swc/tests/tsc-references/genericObjectRest_es2015.2.minified.js b/crates/swc/tests/tsc-references/genericObjectRest_es2015.2.minified.js index 15cfd586b8b7..46362a9fa9bf 100644 --- a/crates/swc/tests/tsc-references/genericObjectRest_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/genericObjectRest_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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"; Symbol(), Symbol(); diff --git a/crates/swc/tests/tsc-references/genericObjectRest_es5.1.normal.js b/crates/swc/tests/tsc-references/genericObjectRest_es5.1.normal.js index 1bc661e49504..a08021b62417 100644 --- a/crates/swc/tests/tsc-references/genericObjectRest_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericObjectRest_es5.1.normal.js @@ -1,6 +1,6 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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"; // @strict: true // @target: es2015 var a = "a"; diff --git a/crates/swc/tests/tsc-references/genericObjectRest_es5.2.minified.js b/crates/swc/tests/tsc-references/genericObjectRest_es5.2.minified.js index 15cfd586b8b7..46362a9fa9bf 100644 --- a/crates/swc/tests/tsc-references/genericObjectRest_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericObjectRest_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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"; Symbol(), Symbol(); diff --git a/crates/swc/tests/tsc-references/genericRestParameters1_es5.1.normal.js b/crates/swc/tests/tsc-references/genericRestParameters1_es5.1.normal.js index e41364588ae0..e638fdf72048 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericRestParameters1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; f1 = f2; f2 = f1; f1(42, "hello", true); diff --git a/crates/swc/tests/tsc-references/genericRestParameters1_es5.2.minified.js b/crates/swc/tests/tsc-references/genericRestParameters1_es5.2.minified.js index 3eba2a8dbe8a..dfd074d89f63 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericRestParameters1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function call(f) { for(var _len = arguments.length, args = new 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_es5.1.normal.js b/crates/swc/tests/tsc-references/genericRestParameters2_es5.1.normal.js index e5585c4b86c4..c4f9ce40b3fc 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericRestParameters2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; f10(42, "hello"); f10(42, "hello", true); f10(42, "hello", true, false); diff --git a/crates/swc/tests/tsc-references/genericRestParameters2_es5.2.minified.js b/crates/swc/tests/tsc-references/genericRestParameters2_es5.2.minified.js index be3161675a58..c57747cc844a 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericRestParameters2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/genericRestParameters3_es5.1.normal.js index 9abb7e8176b2..08288c7825de 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericRestParameters3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; f1("foo", "abc"); f1("foo", 10, true); f1.apply(void 0, [ diff --git a/crates/swc/tests/tsc-references/genericRestParameters3_es5.2.minified.js b/crates/swc/tests/tsc-references/genericRestParameters3_es5.2.minified.js index 335a8d0ebfa8..4bfd3f3282be 100644 --- a/crates/swc/tests/tsc-references/genericRestParameters3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericRestParameters3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function bar() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; return args; diff --git a/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es2015.1.normal.js b/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es2015.1.normal.js index b82e141c3ff8..0aedebc35ba7 100644 --- a/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _value = /*#__PURE__*/ new WeakMap(); // @target: esnext // @lib: esnext diff --git a/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es2015.2.minified.js b/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es2015.2.minified.js index adda84d3b15b..48dd0b68078f 100644 --- a/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _value = new WeakMap(); new class { get value() { diff --git a/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es5.1.normal.js b/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es5.1.normal.js index 0cb4c3970adf..49248d943ff8 100644 --- a/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +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"; var _value = /*#__PURE__*/ new WeakMap(); // @target: esnext // @lib: esnext diff --git a/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es5.2.minified.js b/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es5.2.minified.js index b0e323e4131d..820acd417f3e 100644 --- a/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericSetterInClassTypeJsDoc_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +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"; var _value = new WeakMap(), Box = function() { "use strict"; function Box(initialValue) { diff --git a/crates/swc/tests/tsc-references/genericSetterInClassType_es2015.1.normal.js b/crates/swc/tests/tsc-references/genericSetterInClassType_es2015.1.normal.js index 06dae00a8b63..817bc81cec4a 100644 --- a/crates/swc/tests/tsc-references/genericSetterInClassType_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/genericSetterInClassType_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; // @target: esnext var Generic; (function(Generic) { diff --git a/crates/swc/tests/tsc-references/genericSetterInClassType_es2015.2.minified.js b/crates/swc/tests/tsc-references/genericSetterInClassType_es2015.2.minified.js index c37167c2d3ab..a6c00ed60644 100644 --- a/crates/swc/tests/tsc-references/genericSetterInClassType_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/genericSetterInClassType_es2015.2.minified.js @@ -1,7 +1,7 @@ var Generic; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; !function(Generic) { var c = new class { get y() { diff --git a/crates/swc/tests/tsc-references/genericSetterInClassType_es5.1.normal.js b/crates/swc/tests/tsc-references/genericSetterInClassType_es5.1.normal.js index bb29c40d68f0..a755fa559336 100644 --- a/crates/swc/tests/tsc-references/genericSetterInClassType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/genericSetterInClassType_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +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"; // @target: esnext var Generic; (function(Generic) { diff --git a/crates/swc/tests/tsc-references/genericSetterInClassType_es5.2.minified.js b/crates/swc/tests/tsc-references/genericSetterInClassType_es5.2.minified.js index 0ef71de26d6d..c965d036ee2e 100644 --- a/crates/swc/tests/tsc-references/genericSetterInClassType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/genericSetterInClassType_es5.2.minified.js @@ -1,9 +1,9 @@ var Generic; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +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"; !function(Generic) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/generic_es5.1.normal.js b/crates/swc/tests/tsc-references/generic_es5.1.normal.js index 3533e71e658b..75b75149935e 100644 --- a/crates/swc/tests/tsc-references/generic_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/generic_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /a.ts export var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/generic_es5.2.minified.js b/crates/swc/tests/tsc-references/generic_es5.2.minified.js index 7d6272c8396c..eed7ca896ebd 100644 --- a/crates/swc/tests/tsc-references/generic_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/generic_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/getSetAccessorContextualTyping_es5.1.normal.js b/crates/swc/tests/tsc-references/getSetAccessorContextualTyping_es5.1.normal.js index 07b18f00673b..f942cf7ef158 100644 --- a/crates/swc/tests/tsc-references/getSetAccessorContextualTyping_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/getSetAccessorContextualTyping_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 // 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, diff --git a/crates/swc/tests/tsc-references/getSetAccessorContextualTyping_es5.2.minified.js b/crates/swc/tests/tsc-references/getSetAccessorContextualTyping_es5.2.minified.js index 34eface186e7..df1a06518044 100644 --- a/crates/swc/tests/tsc-references/getSetAccessorContextualTyping_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/getSetAccessorContextualTyping_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/heterogeneousArrayLiterals_es5.1.normal.js b/crates/swc/tests/tsc-references/heterogeneousArrayLiterals_es5.1.normal.js index 05e7ec92ea11..24e12ea1b9e2 100644 --- a/crates/swc/tests/tsc-references/heterogeneousArrayLiterals_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/heterogeneousArrayLiterals_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // type of an array is the best common type of its elements (plus its contextual type if it exists) var a = [ 1, diff --git a/crates/swc/tests/tsc-references/heterogeneousArrayLiterals_es5.2.minified.js b/crates/swc/tests/tsc-references/heterogeneousArrayLiterals_es5.2.minified.js index 0c44c7f578fa..fc00e79e11f5 100644 --- a/crates/swc/tests/tsc-references/heterogeneousArrayLiterals_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/heterogeneousArrayLiterals_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var WithContextualType, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.1.normal.js index d4c00be5e034..2fceb1ba5f82 100644 --- a/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.2.minified.js index fd4fa7bda8c8..440e62c055f0 100644 --- a/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/ifDoWhileStatements_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M, N, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2_es5.1.normal.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2_es5.1.normal.js index defd07ee88a8..8ad5cfb2b2c3 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2_es5.2.minified.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2_es5.2.minified.js index 28f2cb3e5959..b135059354a5 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M, M2, Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates_es5.1.normal.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates_es5.1.normal.js index f89520423f32..eea56b087068 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates_es5.2.minified.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates_es5.2.minified.js index d618996c5571..66c9bf9fe74e 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithPrivates_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds_es5.1.normal.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds_es5.1.normal.js index c1e60a8c70fd..1ee441fba2b0 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds_es5.2.minified.js b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds_es5.2.minified.js index b0b2fe8dce8d..03439126c729 100644 --- a/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/implementingAnInterfaceExtendingClassWithProtecteds_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/implementsClause_es5.1.normal.js b/crates/swc/tests/tsc-references/implementsClause_es5.1.normal.js index ecabbcebee74..e53b31f16bb1 100644 --- a/crates/swc/tests/tsc-references/implementsClause_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/implementsClause_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/implementsClause_es5.2.minified.js b/crates/swc/tests/tsc-references/implementsClause_es5.2.minified.js index 936c11c91edb..b1d9b8780f44 100644 --- a/crates/swc/tests/tsc-references/implementsClause_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/implementsClause_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/importAliasIdentifiers_es5.1.normal.js b/crates/swc/tests/tsc-references/importAliasIdentifiers_es5.1.normal.js index 2260738f4cb7..d80260db6e59 100644 --- a/crates/swc/tests/tsc-references/importAliasIdentifiers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importAliasIdentifiers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var moduleA; (function(moduleA1) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/importAliasIdentifiers_es5.2.minified.js b/crates/swc/tests/tsc-references/importAliasIdentifiers_es5.2.minified.js index 48e2a1d49fb5..f121c9256403 100644 --- a/crates/swc/tests/tsc-references/importAliasIdentifiers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importAliasIdentifiers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(moduleA1) { var Point = function(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importAliasModuleExports_es5.1.normal.js b/crates/swc/tests/tsc-references/importAliasModuleExports_es5.1.normal.js index c557d7abcf1b..4c09e8aceb8e 100644 --- a/crates/swc/tests/tsc-references/importAliasModuleExports_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importAliasModuleExports_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: main.js import A from "./mod1"; // @allowJs: true diff --git a/crates/swc/tests/tsc-references/importAliasModuleExports_es5.2.minified.js b/crates/swc/tests/tsc-references/importAliasModuleExports_es5.2.minified.js index 40b23ea9867b..c3515e9b776b 100644 --- a/crates/swc/tests/tsc-references/importAliasModuleExports_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importAliasModuleExports_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import A from "./mod1"; var Alias = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpression2ES2020_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpression2ES2020_es5.1.normal.js index 07d769ef3be9..daade4e503de 100644 --- a/crates/swc/tests/tsc-references/importCallExpression2ES2020_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpression2ES2020_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: es2020 // @target: es2020 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpression2ES2020_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpression2ES2020_es5.2.minified.js index 1e1306b91ed7..2aad223ef753 100644 --- a/crates/swc/tests/tsc-references/importCallExpression2ES2020_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpression2ES2020_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/importCallExpression3ES2020_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpression3ES2020_es2015.1.normal.js index 16c6d630ba59..c17f8c87dc7c 100644 --- a/crates/swc/tests/tsc-references/importCallExpression3ES2020_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpression3ES2020_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: es2020 // @target: es2020 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpression3ES2020_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpression3ES2020_es2015.2.minified.js index 3628064969bb..911c1b8804f6 100644 --- a/crates/swc/tests/tsc-references/importCallExpression3ES2020_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpression3ES2020_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpression3ES2020_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpression3ES2020_es5.1.normal.js index 01bdd618e36c..66357bd66615 100644 --- a/crates/swc/tests/tsc-references/importCallExpression3ES2020_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpression3ES2020_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: es2020 // @target: es2020 diff --git a/crates/swc/tests/tsc-references/importCallExpression3ES2020_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpression3ES2020_es5.2.minified.js index 21da72f217e5..622553ec4998 100644 --- a/crates/swc/tests/tsc-references/importCallExpression3ES2020_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpression3ES2020_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpression4ES2020_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpression4ES2020_es2015.1.normal.js index 16d2d9cf63fc..c941005e42f6 100644 --- a/crates/swc/tests/tsc-references/importCallExpression4ES2020_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpression4ES2020_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @lib: es2020 // @module: es2020 // @target: es2020 diff --git a/crates/swc/tests/tsc-references/importCallExpression4ES2020_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpression4ES2020_es2015.2.minified.js index 090835559bc9..3eb198ed5934 100644 --- a/crates/swc/tests/tsc-references/importCallExpression4ES2020_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpression4ES2020_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpression4ES2020_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpression4ES2020_es5.1.normal.js index 95ce0170c972..e0a3a5ab853c 100644 --- a/crates/swc/tests/tsc-references/importCallExpression4ES2020_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpression4ES2020_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @lib: es2020 // @module: es2020 diff --git a/crates/swc/tests/tsc-references/importCallExpression4ES2020_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpression4ES2020_es5.2.minified.js index f2c5ee77f98d..940b5e30ea9c 100644 --- a/crates/swc/tests/tsc-references/importCallExpression4ES2020_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpression4ES2020_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpression5ES2020_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpression5ES2020_es5.1.normal.js index 560c2c55bccb..d7f59d0e3170 100644 --- a/crates/swc/tests/tsc-references/importCallExpression5ES2020_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpression5ES2020_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: es2020 // @target: es2020 // @strictNullChecks: true diff --git a/crates/swc/tests/tsc-references/importCallExpression5ES2020_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpression5ES2020_es5.2.minified.js index d027e48d30a6..c721b8393ed2 100644 --- a/crates/swc/tests/tsc-references/importCallExpression5ES2020_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpression5ES2020_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var specify, B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/importCallExpression6ES2020_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpression6ES2020_es5.1.normal.js index f182f0b51342..02d30bcc1077 100644 --- a/crates/swc/tests/tsc-references/importCallExpression6ES2020_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpression6ES2020_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: es2020 // @target: es2020 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpression6ES2020_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpression6ES2020_es5.2.minified.js index d027e48d30a6..c721b8393ed2 100644 --- a/crates/swc/tests/tsc-references/importCallExpression6ES2020_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpression6ES2020_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var specify, B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es2015.1.normal.js index f510eda7ba53..340284f891d6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: es2020 // @target: es2020 // @filename: test.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es5.1.normal.js index 56ffefe51da4..0a96a174e13d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: es2020 // @target: es2020 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES2020_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es2015.1.normal.js index cd717e3a5073..631734159462 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: amd // @target: es3 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es5.1.normal.js index 0139acc595ee..ce93ffad59b3 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: amd // @target: es3 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3AMD_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es2015.1.normal.js index d81d8178df3d..c25b7bf065ec 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: es3 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es5.1.normal.js index 8eed032a8d57..41db668e0538 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: es3 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3CJS_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es2015.1.normal.js index 75495663adea..29806323d2ab 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: system // @target: es3 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es5.1.normal.js index 2d7b622a4afb..ead66a0a879a 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: system // @target: es3 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3System_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es2015.1.normal.js index 58f2e0665917..dab83dc0a5d4 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: es3 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es5.1.normal.js index 6af910b9de98..f62e5a68447f 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: es3 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES3UMD_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es2015.1.normal.js index ffc07288506a..dc393461b74f 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: amd // @target: es5 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es5.1.normal.js index ebe88c9bd23b..52d0ff8267e6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: amd // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5AMD_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es2015.1.normal.js index c3097bb69381..247a68954cad 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: es5 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es5.1.normal.js index e5e184436b23..b34780aef3af 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5CJS_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es2015.1.normal.js index 558aa1bf676a..42032d61cb0b 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: system // @target: es5 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es5.1.normal.js index 6acdfae989d6..155a7adaa8a7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: system // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5System_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es2015.1.normal.js index 709682078ca3..c41589d461b4 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: es5 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es5.1.normal.js index e6c2726f82ea..ca9708a479fb 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES5UMD_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es2015.1.normal.js index f4fd6c8df68c..42514804d035 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: amd // @target: es6 // @filename: test.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es5.1.normal.js index 095d944b1465..c84c43fa1c84 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: amd // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6AMD_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es2015.1.normal.js index 55daa5ef5243..b58b8247a737 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: es6 // @filename: test.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es5.1.normal.js index 3fad5ac40c30..ae5ae1314367 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6CJS_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es2015.1.normal.js index abb07aec453b..2aa986548130 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: system // @target: es6 // @filename: test.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es5.1.normal.js index 553c427791a3..726ded31c937 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: system // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6System_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es2015.1.normal.js index 93eeda183b2f..470c6b297b3e 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: es6 // @filename: test.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es2015.2.minified.js index cb98a11877b5..5a3c23d457db 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function fn() { return _fn.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es5.1.normal.js index 01218f5ebcb3..b3f49a3850f8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es5.2.minified.js index da9ddd9760d9..1682d7098ae8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionAsyncES6UMD_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export function fn() { return _fn.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1_es5.1.normal.js index e1f188ffe065..222683807459 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs // @target: es6 // @noImplicitAny: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1_es5.2.minified.js index 82525a56ce09..622c684b1c91 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionCheckReturntype1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var D = function() { "use strict"; _class_call_check(this, D); diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5AMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES5AMD_es5.1.normal.js index 53f33eab3d39..872bbf5ee4df 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5AMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5AMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: amd // @target: es5 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5AMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES5AMD_es5.2.minified.js index 894d2ac78420..25db97b7942c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5AMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5AMD_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5CJS_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES5CJS_es5.1.normal.js index 337b9b36e8ca..833fc3a8208a 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5CJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5CJS_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs // @target: es5 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5CJS_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES5CJS_es5.2.minified.js index 894d2ac78420..25db97b7942c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5CJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5CJS_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5System_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES5System_es5.1.normal.js index fe30d8428991..d53077916561 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5System_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5System_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: system // @target: es5 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5System_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES5System_es5.2.minified.js index 894d2ac78420..25db97b7942c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5System_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5System_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5UMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES5UMD_es5.1.normal.js index 01e201a3dea7..23cb4fc594fa 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5UMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5UMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: umd // @target: es5 // @lib: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionES5UMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES5UMD_es5.2.minified.js index 894d2ac78420..25db97b7942c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES5UMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES5UMD_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6AMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES6AMD_es5.1.normal.js index 79cec423781d..13d8d87d49be 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6AMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6AMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: amd // @target: es6 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6AMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES6AMD_es5.2.minified.js index 894d2ac78420..25db97b7942c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6AMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6AMD_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6CJS_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES6CJS_es5.1.normal.js index b8413ea90df4..825c6cd1a175 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6CJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6CJS_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs // @target: es6 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6CJS_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES6CJS_es5.2.minified.js index 894d2ac78420..25db97b7942c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6CJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6CJS_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6System_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES6System_es5.1.normal.js index 00f41bc4e0d7..74e49bfee3f9 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6System_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6System_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: system // @target: es6 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6System_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES6System_es5.2.minified.js index 894d2ac78420..25db97b7942c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6System_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6System_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6UMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionES6UMD_es5.1.normal.js index 9db5805f67e2..dadae9464b59 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6UMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6UMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: umd // @target: es6 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionES6UMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionES6UMD_es5.2.minified.js index 894d2ac78420..25db97b7942c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionES6UMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionES6UMD_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD2_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD2_es5.1.normal.js index d851b3a07ed1..89b123e4be75 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: amd // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD2_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD2_es5.2.minified.js index 1e1306b91ed7..2aad223ef753 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es2015.1.normal.js index 925e15c76ef0..fcd328720cd0 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: amd // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es2015.2.minified.js index 3628064969bb..911c1b8804f6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es5.1.normal.js index 5d57342b326c..00ce6fd6865c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: amd // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es5.2.minified.js index 21da72f217e5..622553ec4998 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es2015.1.normal.js index 8adcb3cfc267..9d58563fc2cf 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: amd // @target: esnext // @useDefineForClassFields: false diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es2015.2.minified.js index 1d357a15409e..6ad9c76ea695 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es5.1.normal.js index 9ec218e93e64..86d0ffe6bace 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: amd // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es5.2.minified.js index a1db5c22977a..11f5eb40acf7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInAMD4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es2015.1.normal.js index 9229e2df570e..b03a7a781ae9 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es2015.2.minified.js index bfac63a890a1..097948c88403 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es5.1.normal.js index 5a8691e1db28..1917a8a8dfb7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es5.2.minified.js index 7b8ea6a423c4..df921408d9cb 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export function foo() { return "foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS3_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS3_es5.1.normal.js index 88f6a316331d..53415539540d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: commonjs // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS3_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS3_es5.2.minified.js index 1e1306b91ed7..2aad223ef753 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es2015.1.normal.js index 3ee04da51c2b..6f8c9b2d3f1d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es2015.2.minified.js index 3628064969bb..911c1b8804f6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es5.1.normal.js index b92ff309207e..d046fdddc572 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es5.2.minified.js index 21da72f217e5..622553ec4998 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS4_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es2015.1.normal.js index 227335e7db4a..ea5328d6a0c8 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: esnext // @useDefineForClassFields: false diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es2015.2.minified.js index 1d357a15409e..6ad9c76ea695 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es5.1.normal.js index 1c8c701f5aef..82ae77802146 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es5.2.minified.js index a1db5c22977a..11f5eb40acf7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInCJS5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es2015.1.normal.js index 1716f07b2857..4f249f43f978 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: amd // @target: esnext // @filename: something.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es2015.2.minified.js index 238593c52fd3..eead6d22bee9 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; module.exports = 42, module.exports = _async_to_generator(function*() { yield import("./something"); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es5.1.normal.js index 1d7b8a64c8fc..ee9b6ebdbc66 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: amd // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es5.2.minified.js index b8a7c5a6654e..9fa874390210 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsAMD_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; module.exports = 42, module.exports = _async_to_generator(regeneratorRuntime.mark(function _callee() { var something; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es2015.1.normal.js index f0f807936367..db7b049539f5 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: esnext // @filename: something.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es2015.2.minified.js index 238593c52fd3..eead6d22bee9 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; module.exports = 42, module.exports = _async_to_generator(function*() { yield import("./something"); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es5.1.normal.js index e18dd2c2dbad..6b39879555cd 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es5.2.minified.js index b8a7c5a6654e..9fa874390210 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsCJS_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; module.exports = 42, module.exports = _async_to_generator(regeneratorRuntime.mark(function _callee() { var something; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es2015.1.normal.js index 4edcc25831f7..abb3728a736a 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: esnext // @filename: something.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es2015.2.minified.js index 238593c52fd3..eead6d22bee9 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; module.exports = 42, module.exports = _async_to_generator(function*() { yield import("./something"); }); diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es5.1.normal.js index 2c961914f365..bf324c30d63c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es5.2.minified.js index b8a7c5a6654e..9fa874390210 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInExportEqualsUMD_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; module.exports = 42, module.exports = _async_to_generator(regeneratorRuntime.mark(function _callee() { var something; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem2_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem2_es5.1.normal.js index 3217627f198e..98c24c8a2988 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: system // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem2_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem2_es5.2.minified.js index 1e1306b91ed7..2aad223ef753 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es2015.1.normal.js index abdbc2754b35..f6b5564db2aa 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: system // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es2015.2.minified.js index 3628064969bb..911c1b8804f6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es5.1.normal.js index 5e6d76f9151b..90e75822b2da 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: system // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es5.2.minified.js index 21da72f217e5..622553ec4998 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es2015.1.normal.js index 81dec6a4bef0..c2c221666ee6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: system // @target: esnext // @useDefineForClassFields: false diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es2015.2.minified.js index 1d357a15409e..6ad9c76ea695 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es5.1.normal.js index 553cc2af9ba2..2629ae9a3010 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: system // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es5.2.minified.js index a1db5c22977a..11f5eb40acf7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInSystem4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD2_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD2_es5.1.normal.js index 834c0a502a51..0bc582aa92c7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: umd // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD2_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD2_es5.2.minified.js index 1e1306b91ed7..2aad223ef753 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es2015.1.normal.js index a835b2fd0a87..0bc167638f8d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: esnext // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es2015.2.minified.js index 3628064969bb..911c1b8804f6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es5.1.normal.js index 5e185257f59d..767f55e0c880 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es5.2.minified.js index 21da72f217e5..622553ec4998 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es2015.1.normal.js index 80105c7d5f71..1dc7b9dd443d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: esnext // @useDefineForClassFields: false diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es2015.2.minified.js index 1d357a15409e..6ad9c76ea695 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es5.1.normal.js index 1b7f14c5ed96..d73d8744ef7a 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: esnext diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es5.2.minified.js index a1db5c22977a..11f5eb40acf7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es2015.1.normal.js index 9379600b0178..7da8652f1443 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: es2015 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es2015.2.minified.js index 164402782770..d34b692697bb 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export function foo() { return "foo"; } diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es5.1.normal.js index 0f313d81e5a8..da7ae7f0fc1e 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: es2015 diff --git a/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es5.2.minified.js index 40dde2012e3a..a018f80a76aa 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionInUMD5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export function foo() { return "foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es2015.1.normal.js index 1ef8c13bfa0f..4a11df083d0b 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: amd // @target: es5 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es5.1.normal.js index 654438ee0853..40d9b7265379 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: amd // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD2_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es2015.1.normal.js index 4aebad994da0..cabe27b48f33 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: amd // @target: es6 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es5.1.normal.js index dbafee219e64..9f91c6a5cc5a 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: amd // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedAMD_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es2015.1.normal.js index b8943b2c8793..784ace08606f 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: es5 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es5.1.normal.js index d4590abacaba..d471301bb211 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS2_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es2015.1.normal.js index ec89948cbfd3..555ad87354ce 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: commonjs // @target: es6 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es5.1.normal.js index 9c4e489dd50e..6afee4bb119e 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: commonjs // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedCJS_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es2015.1.normal.js index ddd142ef6787..96ff26a2a0d5 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: es2015 // @target: es5 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es5.1.normal.js index d97afcfb0bc0..104e14064187 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: es2015 // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20152_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es2015.1.normal.js index 634663b59a2c..abdbb381bca6 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: es2015 // @target: es6 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es5.1.normal.js index dadf8993f6f8..a567f4c049b7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: es2015 // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2015_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es2015.1.normal.js index ae67a180b0cb..28c8813fa9c3 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: es2020 // @target: es5 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es5.1.normal.js index 53740f0b4350..45dee4b7caa0 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: es2020 // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES20202_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es2015.1.normal.js index 02496cf0611b..2a5220f6d292 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: es2020 // @target: es6 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es5.1.normal.js index 85206b76184f..2883f6ff6e6f 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: es2020 // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedES2020_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es2015.1.normal.js index 719889f36cb7..d8d1a6370a3d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: system // @target: es5 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es5.1.normal.js index e3f17e8c450e..479cc1cafa9c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: system // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem2_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es2015.1.normal.js index 7af9098050ee..e63c5a28d989 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: system // @target: es6 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es5.1.normal.js index a1ac8d88d84b..879088f5f971 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: system // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedSystem_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es2015.1.normal.js index e2b904ff28b8..72e1645fa614 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: es5 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es5.1.normal.js index 7dc8e976e9c7..8df6b149bd85 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: es5 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD2_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es2015.1.normal.js index 17eae805c16d..596b1fd95e68 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @module: umd // @target: es6 // @skipLibCheck: true diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es2015.2.minified.js index 6e4ff5e5efae..cf78ab1856e1 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es5.1.normal.js index be3b299d5caf..b6a40a4ff127 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @module: umd // @target: es6 diff --git a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es5.2.minified.js index b24ac1d818e3..a7609b071a23 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNestedUMD_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; export default "./foo"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es2015.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es2015.1.normal.js index 5748b3414b04..d9dc3eb72378 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @lib: es5 // @filename: 0.ts export class B { diff --git a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es2015.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es2015.2.minified.js index 090835559bc9..3eb198ed5934 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; export class B { print() { return "I am B"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es5.1.normal.js index 2334b7492597..6587f227fc5a 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @lib: es5 // @filename: 0.ts diff --git a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es5.2.minified.js index f2c5ee77f98d..940b5e30ea9c 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionNoModuleKindSpecified_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; export var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny_es5.1.normal.js b/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny_es5.1.normal.js index 62932273a9ad..5245ff39b06d 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(loadModule); // @module: commonjs diff --git a/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny_es5.2.minified.js b/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny_es5.2.minified.js index ebb756c03eb4..00b95d13a3f7 100644 --- a/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importCallExpressionReturnPromiseOfAny_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(function(directories) { var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _$directory, path; diff --git a/crates/swc/tests/tsc-references/importClause_default_es5.1.normal.js b/crates/swc/tests/tsc-references/importClause_default_es5.1.normal.js index 0d3fea562bd8..6dbd06890e2d 100644 --- a/crates/swc/tests/tsc-references/importClause_default_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importClause_default_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importClause_default_es5.2.minified.js b/crates/swc/tests/tsc-references/importClause_default_es5.2.minified.js index 6d89e49fa95a..4b5cdd8ad0a3 100644 --- a/crates/swc/tests/tsc-references/importClause_default_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importClause_default_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importDefaultNamedType_es5.1.normal.js b/crates/swc/tests/tsc-references/importDefaultNamedType_es5.1.normal.js index 4286b29a0ae2..2c999f5399dd 100644 --- a/crates/swc/tests/tsc-references/importDefaultNamedType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importDefaultNamedType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importDefaultNamedType_es5.2.minified.js b/crates/swc/tests/tsc-references/importDefaultNamedType_es5.2.minified.js index a27c4cba0fbf..32b7dd560e0c 100644 --- a/crates/swc/tests/tsc-references/importDefaultNamedType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importDefaultNamedType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importEquals2_es5.1.normal.js b/crates/swc/tests/tsc-references/importEquals2_es5.1.normal.js index 084be8902e69..d9e2576b919c 100644 --- a/crates/swc/tests/tsc-references/importEquals2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importEquals2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @esModuleInterop: true // @Filename: /a.ts var A = function A() { diff --git a/crates/swc/tests/tsc-references/importEquals2_es5.2.minified.js b/crates/swc/tests/tsc-references/importEquals2_es5.2.minified.js index 4b91f7cbffb3..911173591c41 100644 --- a/crates/swc/tests/tsc-references/importEquals2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importEquals2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/importImportOnlyModule_es5.1.normal.js b/crates/swc/tests/tsc-references/importImportOnlyModule_es5.1.normal.js index 8926a341138e..dc744be32b38 100644 --- a/crates/swc/tests/tsc-references/importImportOnlyModule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importImportOnlyModule_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @module: amd // @Filename: foo_0.ts export var C1 = function C1() { diff --git a/crates/swc/tests/tsc-references/importImportOnlyModule_es5.2.minified.js b/crates/swc/tests/tsc-references/importImportOnlyModule_es5.2.minified.js index 817caac85bf6..23a7cdcdd859 100644 --- a/crates/swc/tests/tsc-references/importImportOnlyModule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importImportOnlyModule_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var foo, C1 = function() { "use strict"; _class_call_check(this, C1), this.m1 = 42; diff --git a/crates/swc/tests/tsc-references/importStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/importStatements_es5.1.normal.js index 84690f965d43..424693cf2668 100644 --- a/crates/swc/tests/tsc-references/importStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importStatements_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var Point = function Point(x, y) { diff --git a/crates/swc/tests/tsc-references/importStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/importStatements_es5.2.minified.js index 563daed6f4c1..0d209bed6138 100644 --- a/crates/swc/tests/tsc-references/importStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importStatements_es5.2.minified.js @@ -1,5 +1,5 @@ var A, C, D, E; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var Point = function(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importTypeAmbient_es5.1.normal.js b/crates/swc/tests/tsc-references/importTypeAmbient_es5.1.normal.js index 840a5bb04f18..4987ae3b657c 100644 --- a/crates/swc/tests/tsc-references/importTypeAmbient_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importTypeAmbient_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/importTypeAmbient_es5.2.minified.js b/crates/swc/tests/tsc-references/importTypeAmbient_es5.2.minified.js index 59faf6cc541c..ffe343044329 100644 --- a/crates/swc/tests/tsc-references/importTypeAmbient_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importTypeAmbient_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Bar2 = function(input) { "use strict"; _class_call_check(this, Bar2); diff --git a/crates/swc/tests/tsc-references/importTypeGenericTypes_es5.1.normal.js b/crates/swc/tests/tsc-references/importTypeGenericTypes_es5.1.normal.js index ec92a94a4a96..d662fb1db0cd 100644 --- a/crates/swc/tests/tsc-references/importTypeGenericTypes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importTypeGenericTypes_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = Point; var Bar = function Bar(input) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importTypeGenericTypes_es5.2.minified.js b/crates/swc/tests/tsc-references/importTypeGenericTypes_es5.2.minified.js index e431457b81ac..6e0970683e6b 100644 --- a/crates/swc/tests/tsc-references/importTypeGenericTypes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importTypeGenericTypes_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = Point; var Bar = function(input) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importTypeLocalMissing_es5.1.normal.js b/crates/swc/tests/tsc-references/importTypeLocalMissing_es5.1.normal.js index 1e3f92f3b0f7..a572ae54d89a 100644 --- a/crates/swc/tests/tsc-references/importTypeLocalMissing_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importTypeLocalMissing_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = Point; var Bar = function Bar(input) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importTypeLocalMissing_es5.2.minified.js b/crates/swc/tests/tsc-references/importTypeLocalMissing_es5.2.minified.js index 92a7e30bdf87..6e58e172331e 100644 --- a/crates/swc/tests/tsc-references/importTypeLocalMissing_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importTypeLocalMissing_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = Point; var Bar = function(input) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importTypeLocal_es5.1.normal.js b/crates/swc/tests/tsc-references/importTypeLocal_es5.1.normal.js index 368f421d6fc6..96a333d4c26e 100644 --- a/crates/swc/tests/tsc-references/importTypeLocal_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importTypeLocal_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = Point; var Bar = function Bar(input) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importTypeLocal_es5.2.minified.js b/crates/swc/tests/tsc-references/importTypeLocal_es5.2.minified.js index 358b61ab2fec..e4435cc963b7 100644 --- a/crates/swc/tests/tsc-references/importTypeLocal_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importTypeLocal_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = Point; var Bar = function(input) { "use strict"; diff --git a/crates/swc/tests/tsc-references/importsNotUsedAsValues_error_es5.1.normal.js b/crates/swc/tests/tsc-references/importsNotUsedAsValues_error_es5.1.normal.js index 218b40f65e22..f74d1b7c8569 100644 --- a/crates/swc/tests/tsc-references/importsNotUsedAsValues_error_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/importsNotUsedAsValues_error_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _default = function _default() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/importsNotUsedAsValues_error_es5.2.minified.js b/crates/swc/tests/tsc-references/importsNotUsedAsValues_error_es5.2.minified.js index 57413c02f7d9..222c29905de7 100644 --- a/crates/swc/tests/tsc-references/importsNotUsedAsValues_error_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/importsNotUsedAsValues_error_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var a, b, c, d, K, _default = function() { "use strict"; _class_call_check(this, _default); diff --git a/crates/swc/tests/tsc-references/inOperatorWithInvalidOperands_es5.1.normal.js b/crates/swc/tests/tsc-references/inOperatorWithInvalidOperands_es5.1.normal.js index 0c0f2a374d0f..0c36fc658bb9 100644 --- a/crates/swc/tests/tsc-references/inOperatorWithInvalidOperands_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inOperatorWithInvalidOperands_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/inOperatorWithInvalidOperands_es5.2.minified.js b/crates/swc/tests/tsc-references/inOperatorWithInvalidOperands_es5.2.minified.js index c8a90126ff95..e152ba3162ec 100644 --- a/crates/swc/tests/tsc-references/inOperatorWithInvalidOperands_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inOperatorWithInvalidOperands_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType_es5.1.normal.js b/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType_es5.1.normal.js index dbd2ab7d9be2..397cfd575915 100644 --- a/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // ++ operator on any type var ANY; var ANY1; diff --git a/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType_es5.2.minified.js b/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType_es5.2.minified.js index 68f662874745..04831a08e35b 100644 --- a/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/incrementOperatorWithAnyOtherType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var ANY, ANY1, M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/incrementOperatorWithNumberType_es5.1.normal.js b/crates/swc/tests/tsc-references/incrementOperatorWithNumberType_es5.1.normal.js index 3cbdc7a82121..7dab93547ada 100644 --- a/crates/swc/tests/tsc-references/incrementOperatorWithNumberType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/incrementOperatorWithNumberType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // ++ operator on number type var NUMBER; var NUMBER1 = [ diff --git a/crates/swc/tests/tsc-references/incrementOperatorWithNumberType_es5.2.minified.js b/crates/swc/tests/tsc-references/incrementOperatorWithNumberType_es5.2.minified.js index 5c15b9c79e93..dcee9e420846 100644 --- a/crates/swc/tests/tsc-references/incrementOperatorWithNumberType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/incrementOperatorWithNumberType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var NUMBER, M, NUMBER1 = [ 1, 2 diff --git a/crates/swc/tests/tsc-references/indexersInClassType_es5.1.normal.js b/crates/swc/tests/tsc-references/indexersInClassType_es5.1.normal.js index 50aca6f7ba2e..3017da023d1b 100644 --- a/crates/swc/tests/tsc-references/indexersInClassType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/indexersInClassType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/indexersInClassType_es5.2.minified.js b/crates/swc/tests/tsc-references/indexersInClassType_es5.2.minified.js index 40b68c0ff031..63b338940a02 100644 --- a/crates/swc/tests/tsc-references/indexersInClassType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/indexersInClassType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferFromBindingPattern_es5.1.normal.js b/crates/swc/tests/tsc-references/inferFromBindingPattern_es5.1.normal.js index 16401b0ab97d..c62ca01e61d0 100644 --- a/crates/swc/tests/tsc-references/inferFromBindingPattern_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inferFromBindingPattern_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var x1 = f1(); // string var ref = _sliced_to_array(f2(), 1), x2 = ref[0]; // string var ref1 = f3(), x3 = ref1.x; // string diff --git a/crates/swc/tests/tsc-references/inferFromBindingPattern_es5.2.minified.js b/crates/swc/tests/tsc-references/inferFromBindingPattern_es5.2.minified.js index f3f3ee714a2d..3d40787252af 100644 --- a/crates/swc/tests/tsc-references/inferFromBindingPattern_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inferFromBindingPattern_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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/inferringClassMembersFromAssignments3_es5.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3_es5.1.normal.js index f66523167284..e7930aa8d788 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3_es5.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3_es5.2.minified.js index 23e5e9744d0d..02724afb6a4d 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base), this.p = 1; diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4_es5.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4_es5.1.normal.js index 145a9714d66d..25700b2f55e4 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4_es5.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4_es5.2.minified.js index 5e910018bb42..329686302a97 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5_es5.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5_es5.1.normal.js index a1bfd3d9ae35..29fea00827a7 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5_es5.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5_es5.2.minified.js index f809a19a8136..cf4be491c181 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7_es5.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7_es5.1.normal.js index 6c7e7a640271..e3d04ba167df 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7_es5.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7_es5.2.minified.js index 9ae4b7defa3c..e607f9bbb0f8 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments7_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments_es5.1.normal.js index 834301632925..91fe8048be67 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @out: output.js // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments_es5.2.minified.js index 97d470b515b6..1f77a70d48d0 100644 --- a/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassMembersFromAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments_es5.1.normal.js index 069f17531e1c..e0d79767ccf3 100644 --- a/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: b.ts import * as a from "./a"; // @noEmit: true diff --git a/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments_es5.2.minified.js index badca4d498d3..b119f1c7b7cc 100644 --- a/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inferringClassStaticMembersFromAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import * as a from "./a"; export var n, C1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals_es5.1.normal.js b/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals_es5.1.normal.js index 772804a9fdb5..e416b7c09db4 100644 --- a/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. var C = function C(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals_es5.2.minified.js b/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals_es5.2.minified.js index 7b11f019c95a..41c061500ddb 100644 --- a/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/initializerReferencingConstructorLocals_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x) { "use strict"; _class_call_check(this, C), this.a = z, this.c = this.z, z = 1; diff --git a/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters_es5.1.normal.js index c90d70dde6ab..0d3de77405f5 100644 --- a/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. var C = function C(x1) { "use strict"; diff --git a/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters_es5.2.minified.js index 9897d88e54c3..a9d9b9e6c36a 100644 --- a/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/initializerReferencingConstructorParameters_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x1) { "use strict"; _class_call_check(this, C), this.a = x; diff --git a/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes_es5.1.normal.js b/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes_es5.1.normal.js index 4e822fe13a17..35c58d922ee1 100644 --- a/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: component.tsx /** @jsx predom */ import { predom } from "./renderer2"; import prerendered from "./component"; diff --git a/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes_es5.2.minified.js b/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes_es5.2.minified.js index 6503749d94bc..53efdc051d3f 100644 --- a/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/inlineJsxFactoryDeclarationsLocalTypes_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { predom } from "./renderer2"; import prerendered from "./component"; export var MySFC = function(props) { diff --git a/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2_es5.1.normal.js b/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2_es5.1.normal.js index 9184b44a749d..53228a993fcc 100644 --- a/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // inner type parameters shadow outer ones of the same name // no errors expected var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2_es5.2.minified.js b/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2_es5.2.minified.js index 0a2c21df4ed9..deea1e25dca3 100644 --- a/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/innerTypeParameterShadowingOuterOne2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype_es5.1.normal.js index 5d26a98b985a..2ad0e6d6dfc6 100644 --- a/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype_es5.2.minified.js index 5ba5bc5eddb1..91a940043194 100644 --- a/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceMemberAssignsToClassPrototype_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/instanceMemberInitialization_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceMemberInitialization_es5.1.normal.js index 57181920ea8c..3969039b8832 100644 --- a/crates/swc/tests/tsc-references/instanceMemberInitialization_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceMemberInitialization_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instanceMemberInitialization_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceMemberInitialization_es5.2.minified.js index a4d75ca81781..d58354de5d00 100644 --- a/crates/swc/tests/tsc-references/instanceMemberInitialization_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceMemberInitialization_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C), this.x = 1; diff --git a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2_es5.1.normal.js index 8a46386557c3..1ebaa72131aa 100644 --- a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2_es5.1.normal.js @@ -2,7 +2,7 @@ // @useDefineForClassFields: true // @target: es2015 "use strict"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = 1; var C = function C() { _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2_es5.2.minified.js index c1cc34f4832a..f9650300c1a9 100644 --- a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName2_es5.2.minified.js @@ -1,5 +1,5 @@ "use strict"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { _class_call_check(this, C); }; diff --git a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName_es5.1.normal.js index f413aa1d4813..afd24d01d7af 100644 --- a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName_es5.1.normal.js @@ -1,6 +1,6 @@ // /~https://github.com/microsoft/TypeScript/issues/30953 "use strict"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = 1; var _x = x; var C = function C() { diff --git a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName_es5.2.minified.js index 48ddef63876a..1621818abd85 100644 --- a/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceMemberWithComputedPropertyName_es5.2.minified.js @@ -1,5 +1,5 @@ "use strict"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { _class_call_check(this, C), this[1] = !0; var ref = { diff --git a/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType_es5.1.normal.js b/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType_es5.1.normal.js index 1440d68e6542..91ec0d354d7f 100644 --- a/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var NonGeneric; (function(NonGeneric) { var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType_es5.2.minified.js b/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType_es5.2.minified.js index aad869887d90..77cda8e0be45 100644 --- a/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instancePropertiesInheritedIntoClassType_es5.2.minified.js @@ -1,8 +1,8 @@ var NonGeneric, Generic; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; !function(NonGeneric) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/instancePropertyInClassType_es5.1.normal.js b/crates/swc/tests/tsc-references/instancePropertyInClassType_es5.1.normal.js index 78f8950ef281..9ff33b1948a6 100644 --- a/crates/swc/tests/tsc-references/instancePropertyInClassType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instancePropertyInClassType_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var NonGeneric; (function(NonGeneric) { var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/instancePropertyInClassType_es5.2.minified.js b/crates/swc/tests/tsc-references/instancePropertyInClassType_es5.2.minified.js index 2ef61ffe6792..b0287a5e3a50 100644 --- a/crates/swc/tests/tsc-references/instancePropertyInClassType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instancePropertyInClassType_es5.2.minified.js @@ -1,6 +1,6 @@ var NonGeneric, Generic; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; !function(NonGeneric) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithAny_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithAny_es5.1.normal.js index 5cb90bbeb7e9..d0bb8382fa49 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithAny_es5.1.normal.js @@ -1,3 +1,3 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var a; var r = _instanceof(a, a); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithAny_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithAny_es5.2.minified.js index d37114e3cfcd..6359ca233810 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithAny_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _instanceof(a, a); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands_es5.1.normal.js index 717bc1387820..2dfcc5c65460 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands_es5.2.minified.js index cab42838bb45..06acdcfd107c 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidOperands_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var x, a1, a2, a3, a4, b1, b2, b3, b4, o1, o2, o3, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString_es5.1.normal.js index f986f1d13027..40256d89201a 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; function foo(staticToString) { return _instanceof(staticToString, StaticToString); } diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString_es5.2.minified.js index e0cc7ad9340e..98320b705688 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithInvalidStaticToString_es5.2.minified.js @@ -1 +1 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject_es5.1.normal.js index b30436ab325b..3b45ba3b22d3 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject_es5.2.minified.js index d95f7eca9cce..3365ea2da80d 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsObject_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var x1, x2, b, c, d, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter_es5.1.normal.js index a4288b4fbc02..fb1f05c6f0eb 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; function foo(t) { var x; var r = _instanceof(t, x); diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter_es5.2.minified.js index e0cc7ad9340e..98320b705688 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithLHSIsTypeParameter_es5.2.minified.js @@ -1 +1 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction_es5.1.normal.js index 1ffeef53b92f..d683302a1492 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var x; var f1; var f2; diff --git a/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction_es5.2.minified.js index a2fd056bf7b3..7a12274b0aae 100644 --- a/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instanceofOperatorWithRHSIsSubtypeOfFunction_es5.2.minified.js @@ -1,3 +1,3 @@ var x, f2, f3, f4; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _instanceof(x, void 0), _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_es5.1.normal.js b/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments_es5.1.normal.js index 34b0ab4817c6..d18ac61516b0 100644 --- a/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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 var C = function C() { diff --git a/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments_es5.2.minified.js index 06932c5e18fe..8425237bd688 100644 --- a/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instantiateGenericClassWithWrongNumberOfTypeArguments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments_es5.1.normal.js index 7dad19e3afec..920fd21c7832 100644 --- a/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // no errors expected when instantiating a generic type with no type arguments provided var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments_es5.2.minified.js index 06932c5e18fe..8425237bd688 100644 --- a/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instantiateGenericClassWithZeroTypeArguments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments_es5.1.normal.js index f488ee7ca302..c25da6a68ceb 100644 --- a/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // it is an error to provide type arguments to a non-generic call // all of these are errors var C = function C() { diff --git a/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments_es5.2.minified.js index 4fcbfc4e4632..958e4a4878c5 100644 --- a/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instantiateNonGenericTypeWithTypeArguments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var f, a, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/instantiatedModule_es5.1.normal.js b/crates/swc/tests/tsc-references/instantiatedModule_es5.1.normal.js index 61bcc8555dc3..003fb6df9d22 100644 --- a/crates/swc/tests/tsc-references/instantiatedModule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/instantiatedModule_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // adding the var makes this an instantiated module var M; (function(M1) { diff --git a/crates/swc/tests/tsc-references/instantiatedModule_es5.2.minified.js b/crates/swc/tests/tsc-references/instantiatedModule_es5.2.minified.js index e118a615dd9d..046f56dd2bf9 100644 --- a/crates/swc/tests/tsc-references/instantiatedModule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/instantiatedModule_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (M || (M = {})).Point = 1; var M, M2, m2, a2, M3, m3, a3, m = M; M.Point, m.Point, function(M21) { diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2_es5.1.normal.js index afeaa95bba6f..91372b9f7794 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2_es5.2.minified.js index 9eb767933d2a..f09d6c3b6809 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates_es5.1.normal.js index 40856af95b6b..3947787d724f 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates_es5.2.minified.js index fac0792220ef..ad513b6e67cf 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithPrivates_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2_es5.1.normal.js index afeaa95bba6f..91372b9f7794 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2_es5.2.minified.js index 9eb767933d2a..f09d6c3b6809 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds_es5.1.normal.js index 40856af95b6b..3947787d724f 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds_es5.2.minified.js index fac0792220ef..ad513b6e67cf 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClassWithProtecteds_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClass_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendingClass_es5.1.normal.js index b0b70a15a7f4..e92cb7b4f409 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClass_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/interfaceExtendingClass_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendingClass_es5.2.minified.js index e0007848d05b..b20ba627a231 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendingClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendingClass_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var i, Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors_es5.1.normal.js index de3d2a626d18..35dd2ebcb6db 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(C1, _superClass); diff --git a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors_es5.2.minified.js index 29cf327420f2..f6a191b07935 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersectionErrors_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var EX, C1 = function(_superClass) { "use strict"; _inherits(C1, _superClass); diff --git a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection_es5.1.normal.js index 45aa6b0951ed..fee1da0659a2 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(C1, _superClass); diff --git a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection_es5.2.minified.js index dc66eca7782b..c8ba492eedf9 100644 --- a/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceExtendsObjectIntersection_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var EX, C1 = function(_superClass) { "use strict"; _inherits(C1, _superClass); diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType_es5.1.normal.js index 205789450395..2b0cec90c037 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType_es5.2.minified.js index 3155bbeb0a76..a623c3361cc7 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyOfEveryType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2_es5.1.normal.js index 3edcd0c69e6b..adf56ceeec8e 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2_es5.2.minified.js index 11f25bc910f3..40638aa7beec 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType_es5.1.normal.js b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType_es5.1.normal.js index 21b3847f2a2f..1613156b61c2 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType_es5.2.minified.js b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType_es5.2.minified.js index e77f87506d75..8d3e85ba71e1 100644 --- a/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/interfaceWithPropertyThatIsPrivateInBaseType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/invalidAssignmentsToVoid_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidAssignmentsToVoid_es5.1.normal.js index f32f67ff52c4..46a0a353c08a 100644 --- a/crates/swc/tests/tsc-references/invalidAssignmentsToVoid_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidAssignmentsToVoid_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x; x = 1; x = true; diff --git a/crates/swc/tests/tsc-references/invalidAssignmentsToVoid_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidAssignmentsToVoid_es5.2.minified.js index 4db97e29180d..85129c13e0a3 100644 --- a/crates/swc/tests/tsc-references/invalidAssignmentsToVoid_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidAssignmentsToVoid_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; x = 1, x = !0, x = "", x = {}; var x, c, i, M, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/invalidBooleanAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidBooleanAssignments_es5.1.normal.js index 04639f096b81..8a46fe97167e 100644 --- a/crates/swc/tests/tsc-references/invalidBooleanAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidBooleanAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = true; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/invalidBooleanAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidBooleanAssignments_es5.2.minified.js index 72d16d375dbe..68e9434a8756 100644 --- a/crates/swc/tests/tsc-references/invalidBooleanAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidBooleanAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers_es5.1.normal.js index e340c34b4922..b07de2e1e19d 100644 --- a/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // none of these should work, since non are actually modules var V = 12; var C = function C() { diff --git a/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers_es5.2.minified.js index a73f20270e38..d79c9f30ba66 100644 --- a/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidImportAliasIdentifiers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/invalidInstantiatedModule_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidInstantiatedModule_es5.1.normal.js index dbf9eb08ef06..d426d6b73faf 100644 --- a/crates/swc/tests/tsc-references/invalidInstantiatedModule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidInstantiatedModule_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M; (function(M1) { var Point = function Point() { diff --git a/crates/swc/tests/tsc-references/invalidInstantiatedModule_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidInstantiatedModule_es5.2.minified.js index a0086de1eb01..e0cccb52b1a1 100644 --- a/crates/swc/tests/tsc-references/invalidInstantiatedModule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidInstantiatedModule_es5.2.minified.js @@ -1,5 +1,5 @@ var M, M2; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M1) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.1.normal.js index 6f8e6ae1fd07..c9a9a8bb2645 100644 --- a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.2.minified.js index 6a686e553e0d..ee2f6e132c98 100644 --- a/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidMultipleVariableDeclarations_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/invalidNestedModules_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidNestedModules_es5.1.normal.js index 952ca744431f..8cd5f776fd4d 100644 --- a/crates/swc/tests/tsc-references/invalidNestedModules_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidNestedModules_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A1) { var B1; diff --git a/crates/swc/tests/tsc-references/invalidNestedModules_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidNestedModules_es5.2.minified.js index 36e1fa9d5b46..5f43a4d8c931 100644 --- a/crates/swc/tests/tsc-references/invalidNestedModules_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidNestedModules_es5.2.minified.js @@ -1,5 +1,5 @@ var A, M2; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(A1) { var B, C, Point; C = (B = A1.B || (A1.B = {})).C || (B.C = {}), Point = function() { diff --git a/crates/swc/tests/tsc-references/invalidNumberAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidNumberAssignments_es5.1.normal.js index 1d760055dc63..9fd177a13c90 100644 --- a/crates/swc/tests/tsc-references/invalidNumberAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidNumberAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = 1; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/invalidNumberAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidNumberAssignments_es5.2.minified.js index f5e6647b7f4e..3708d091e49e 100644 --- a/crates/swc/tests/tsc-references/invalidNumberAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidNumberAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/invalidReturnStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidReturnStatements_es5.1.normal.js index 77eb0bbe4562..933f3ccb6df0 100644 --- a/crates/swc/tests/tsc-references/invalidReturnStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidReturnStatements_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // all the following should be error function fn1() {} function fn2() {} diff --git a/crates/swc/tests/tsc-references/invalidReturnStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidReturnStatements_es5.2.minified.js index 715d205e1e8d..b99c2d15a3b4 100644 --- a/crates/swc/tests/tsc-references/invalidReturnStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidReturnStatements_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/invalidStringAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidStringAssignments_es5.1.normal.js index dff754185520..1411299ee884 100644 --- a/crates/swc/tests/tsc-references/invalidStringAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidStringAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = ""; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/invalidStringAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidStringAssignments_es5.2.minified.js index 13e0dad6db14..3c680d230f80 100644 --- a/crates/swc/tests/tsc-references/invalidStringAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidStringAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/invalidUndefinedAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidUndefinedAssignments_es5.1.normal.js index 20b7624ddf56..289b14ac7127 100644 --- a/crates/swc/tests/tsc-references/invalidUndefinedAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidUndefinedAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x; var E; (function(E) { diff --git a/crates/swc/tests/tsc-references/invalidUndefinedAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidUndefinedAssignments_es5.2.minified.js index 3ef200f7915b..8fee8712364e 100644 --- a/crates/swc/tests/tsc-references/invalidUndefinedAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidUndefinedAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), (E = x).A = x; diff --git a/crates/swc/tests/tsc-references/invalidUndefinedValues_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidUndefinedValues_es5.1.normal.js index 270514fb274e..09356ac96a67 100644 --- a/crates/swc/tests/tsc-references/invalidUndefinedValues_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidUndefinedValues_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x; x = 1; x = ""; diff --git a/crates/swc/tests/tsc-references/invalidUndefinedValues_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidUndefinedValues_es5.2.minified.js index ed10f2016372..b786a33bcd74 100644 --- a/crates/swc/tests/tsc-references/invalidUndefinedValues_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidUndefinedValues_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; x = 1, x = "", x = !0, x = a, x = null; var x, a, b, c, M, E, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/invalidVoidAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidVoidAssignments_es5.1.normal.js index 87e40fda5f5a..e7482c8aa81d 100644 --- a/crates/swc/tests/tsc-references/invalidVoidAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidVoidAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/invalidVoidAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidVoidAssignments_es5.2.minified.js index cd6b2df922e7..d58ccbee48d7 100644 --- a/crates/swc/tests/tsc-references/invalidVoidAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidVoidAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x, M, E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/invalidVoidValues_es5.1.normal.js b/crates/swc/tests/tsc-references/invalidVoidValues_es5.1.normal.js index 036a518aa0ac..09b1c6178c71 100644 --- a/crates/swc/tests/tsc-references/invalidVoidValues_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/invalidVoidValues_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x; x = 1; x = ""; diff --git a/crates/swc/tests/tsc-references/invalidVoidValues_es5.2.minified.js b/crates/swc/tests/tsc-references/invalidVoidValues_es5.2.minified.js index 7fa31fe6c92d..c8f9f7384bc9 100644 --- a/crates/swc/tests/tsc-references/invalidVoidValues_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/invalidVoidValues_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; x = 1, x = "", x = !0, function(E) { E[E.A = 0] = "A"; }(E || (E = {})), x = E, x = E.A; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern10_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern10_es5.1.normal.js index 22c0eedfbb23..433b1ed66846 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern10_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern10_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern10_es5.2.minified.js index 2afe82277578..d12696f2f11a 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern10_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern11_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern11_es5.1.normal.js index 4b44b6a44c5e..18f1e73125c3 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern11_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern11_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern11_es5.2.minified.js index 7a265cdc3ee1..9adcdd372ab5 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern11_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern12_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern12_es5.1.normal.js index 06199175bf34..64b1079af8e6 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern12_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern12_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern12_es5.2.minified.js index b145da139c1a..e9ff0494daad 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern12_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern13_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern13_es5.1.normal.js index 2373acf2a461..c5456e56a503 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern13_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern13_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern13_es5.2.minified.js index ad261b3a7f74..2117d9bf8ffd 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern13_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern14_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern14_es5.1.normal.js index 997c6d2142e0..8489978a0d6b 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern14_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern14_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern14_es5.2.minified.js index 1ee41f80f3e8..ba9aaa9eee82 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern14_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern15_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern15_es5.1.normal.js index e8cf69304307..4a1402e1f798 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern15_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.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 _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern15_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern15_es5.2.minified.js index 6ed671c19101..7ec6e33678c9 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern15_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern16_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern16_es5.1.normal.js index ade4a44804e9..df714bb1319c 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern16_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern16_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.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 _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 function fun() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern16_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern16_es5.2.minified.js index a710e6b9d306..56a0b31ec8f1 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern16_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern16_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.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 _create_super from "@swc/helpers/src/_create_super.mjs"; (function() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++)_tmp[_key] = arguments[_key]; var __tmp = _sliced_to_array(_tmp, 2); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern17_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern17_es5.1.normal.js index 59a478175884..622b3de1fb2a 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern17_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern17_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern17_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern17_es5.2.minified.js index 8d0eecec5976..c351a687794d 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern17_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern17_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern18_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern18_es5.1.normal.js index 22c0eedfbb23..433b1ed66846 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern18_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern18_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern18_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern18_es5.2.minified.js index 2afe82277578..d12696f2f11a 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern18_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern18_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern19_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern19_es5.1.normal.js index aecdb69073da..5b3ab7d8642d 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern19_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern19_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern19_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern19_es5.2.minified.js index 6621b1a0ae33..43961b2b64c3 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern19_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern19_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern1_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern1_es5.1.normal.js index 475c4a398862..cee1513793c7 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern1_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern1_es5.2.minified.js index eab618cea9a5..5cf5a66adf0e 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern20_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern20_es5.1.normal.js index 7f59fa4e1705..b7807353eeb7 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern20_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern20_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.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 _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern20_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern20_es5.2.minified.js index f91225790c40..dba2fefb3af9 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern20_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern20_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern21_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern21_es5.1.normal.js index be71fb1d7982..2d4ac5466210 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern21_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern21_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var ref = _sliced_to_array({ 0: "", diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern21_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern21_es5.2.minified.js index 51e9cf7edd09..7330d518e4f6 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern21_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern21_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var ref = _sliced_to_array({ 0: "", 1: !0 diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern22_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern22_es5.1.normal.js index e303f6919b02..e4b249e351fd 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern22_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern22_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; //@target: ES6 var ref = _to_array({ 0: "", diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern22_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern22_es5.2.minified.js index 6f22cc154409..172045f23011 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern22_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern22_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; _to_array({ 0: "", 1: !0 diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern23_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern23_es5.1.normal.js index 7a42e4219406..74c62d7defb3 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern23_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern23_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var a, b; var ref; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern23_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern23_es5.2.minified.js index f63e5b7b016f..8faa168769fb 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern23_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern23_es5.2.minified.js @@ -1,5 +1,5 @@ var ref; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; (ref = _sliced_to_array({ 0: "", 1: !0 diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern24_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern24_es5.1.normal.js index 3eae04bf3a56..a40e51b225f7 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern24_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern24_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; //@target: ES6 var a, b; var ref; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern24_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern24_es5.2.minified.js index 4d159c710bbb..bd98e5c8abe2 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern24_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern24_es5.2.minified.js @@ -1,5 +1,5 @@ var ref; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; (ref = _to_array({ 0: "", 1: !0 diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern25_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern25_es5.1.normal.js index 59f997d20a73..3ef5b9ae9d38 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern25_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern25_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 function takeFirstTwoEntries() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern25_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern25_es5.2.minified.js index 44e4728cbcad..c3a1706a34c9 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern25_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern25_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; !function() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++)_tmp[_key] = arguments[_key]; var __tmp = _sliced_to_array(_tmp, 2), ref = _sliced_to_array(__tmp[0], 2), ref1 = (ref[0], ref[1], _sliced_to_array(__tmp[1], 2)); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern26_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern26_es5.1.normal.js index 59f997d20a73..3ef5b9ae9d38 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern26_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern26_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 function takeFirstTwoEntries() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern26_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern26_es5.2.minified.js index 44e4728cbcad..c3a1706a34c9 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern26_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern26_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; !function() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++)_tmp[_key] = arguments[_key]; var __tmp = _sliced_to_array(_tmp, 2), ref = _sliced_to_array(__tmp[0], 2), ref1 = (ref[0], ref[1], _sliced_to_array(__tmp[1], 2)); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern27_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern27_es5.1.normal.js index 878488b7f62c..c77b98274ff4 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern27_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern27_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function takeFirstTwoEntries() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern27_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern27_es5.2.minified.js index 1064ec410236..b2aab6cb3db5 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern27_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern27_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; (function() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++)_tmp[_key] = arguments[_key]; var __tmp = _sliced_to_array(_tmp, 2), ref = _sliced_to_array(__tmp[0], 2), ref1 = (ref[0], ref[1], _sliced_to_array(__tmp[1], 2)); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern28_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern28_es5.1.normal.js index cb5598536295..4ef89910a2b3 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern28_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern28_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // @lib: es2015 // @target: ES6 function takeFirstTwoEntries() { diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern28_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern28_es5.2.minified.js index 291b5864c2c8..e089ac30d238 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern28_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern28_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; (function() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++)_tmp[_key] = arguments[_key]; var __tmp = _sliced_to_array(_tmp, 2), ref = _sliced_to_array(__tmp[0], 2), ref1 = (ref[0], ref[1], _sliced_to_array(__tmp[1], 2)); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern29_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern29_es5.1.normal.js index 921367155900..4c95d96dd402 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern29_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern29_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function takeFirstTwoEntries() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern29_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern29_es5.2.minified.js index ce9e44122558..1f6076c26891 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern29_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern29_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; (function() { for(var _len = arguments.length, _tmp = new Array(_len), _key = 0; _key < _len; _key++)_tmp[_key] = arguments[_key]; var __tmp = _sliced_to_array(_tmp, 2), ref = _sliced_to_array(__tmp[0], 2), ref1 = (ref[0], ref[1], _sliced_to_array(__tmp[1], 2)); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern2_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern2_es5.1.normal.js index 7daead958b3e..334a331b8099 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern2_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern2_es5.2.minified.js index c9fcd07381e4..c29d28ae5588 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern30_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern30_es5.1.normal.js index ddcac6f6ce8f..299104893303 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern30_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern30_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; //@target: ES6 var ref = _sliced_to_array(new Map([ [ diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern30_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern30_es5.2.minified.js index c3f80ffba3f3..5da445ffeb1e 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern30_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern30_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var ref = _sliced_to_array(new Map([ [ "", diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern3_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern3_es5.1.normal.js index 527b1c2ad991..88841f93d028 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern3_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern3_es5.2.minified.js index 70c0dd3fc11a..3e1e6808ca05 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var ref, Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern4_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern4_es5.1.normal.js index 7c48e74967fa..4912b6ea579d 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern4_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern4_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern4_es5.2.minified.js index 6a4a6251268c..951d26c9fdaf 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern4_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var ref, Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern5_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern5_es5.1.normal.js index 527b1c2ad991..88841f93d028 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern5_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern5_es5.2.minified.js index 70c0dd3fc11a..3e1e6808ca05 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var ref, Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern6_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern6_es5.1.normal.js index 7c48e74967fa..4912b6ea579d 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern6_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern6_es5.2.minified.js index 6a4a6251268c..951d26c9fdaf 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var ref, Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern7_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern7_es5.1.normal.js index 527b1c2ad991..88841f93d028 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern7_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern7_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern7_es5.2.minified.js index 70c0dd3fc11a..3e1e6808ca05 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern7_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var ref, Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern8_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern8_es5.1.normal.js index 7c48e74967fa..4912b6ea579d 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern8_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 var Bar = function Bar() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern8_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern8_es5.2.minified.js index 6a4a6251268c..951d26c9fdaf 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern8_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var ref, Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern9_es5.1.normal.js b/crates/swc/tests/tsc-references/iterableArrayPattern9_es5.1.normal.js index 2f7e0e127ea9..59083f9daefe 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern9_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; //@target: ES6 function fun() { var ref = _sliced_to_array(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : new FooIterator, 2), a = ref[0], b = ref[1]; diff --git a/crates/swc/tests/tsc-references/iterableArrayPattern9_es5.2.minified.js b/crates/swc/tests/tsc-references/iterableArrayPattern9_es5.2.minified.js index c950b33f6692..3a225bc0e58a 100644 --- a/crates/swc/tests/tsc-references/iterableArrayPattern9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iterableArrayPattern9_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray10_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray10_es5.1.normal.js index ad8f99973f8c..772f7caebaeb 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray10_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray10_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray10_es5.2.minified.js index 2b557a3ef9c1..7301d0f56e28 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray10_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray11_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray11_es5.1.normal.js index 4b2e60b8bcc7..5c5dd76767df 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray11_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var iter; var array = _to_consumable_array(iter); diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray11_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray11_es5.2.minified.js index e1e1e90519df..e40ee617c27f 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray11_es5.2.minified.js @@ -1,2 +1,2 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; _to_consumable_array(void 0); diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray2_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray2_es5.1.normal.js index a941f4ad30ec..7a2612d78904 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray2_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray2_es5.2.minified.js index cee2734b7836..6cfcb9471d0d 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray3_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray3_es5.1.normal.js index 89fe93867c82..3466d3b880c1 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray3_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray3_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray3_es5.2.minified.js index 8fc32e9ed3f0..e2be7f609bb3 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray3_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray4_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray4_es5.1.normal.js index cf4ed38b9551..baf16342df13 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray4_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray4_es5.2.minified.js index cab065160f9e..a5fc694cf75d 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray5_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray5_es5.1.normal.js index cf4ed38b9551..baf16342df13 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray5_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray5_es5.2.minified.js index cab065160f9e..a5fc694cf75d 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray6_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray6_es5.1.normal.js index e317761c5bcf..23d9e0cdb8e6 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray6_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray6_es5.2.minified.js index cab065160f9e..a5fc694cf75d 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray7_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray7_es5.1.normal.js index d101bb380e28..9c81bb05ba70 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray7_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray7_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray7_es5.2.minified.js index b700160a70c3..8d2c44b209ec 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray7_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var array, SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray8_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray8_es5.1.normal.js index d951ad9c4466..f83dcaf483e8 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray8_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray8_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray8_es5.2.minified.js index 4a1438f2c86b..1a16e7ad42b9 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray8_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray9_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray9_es5.1.normal.js index f27844e7bb3f..7a25fb97fcd6 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray9_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray9_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray9_es5.2.minified.js index dbee4945e20a..bfa976023ea4 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray9_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray_es5.1.normal.js index 1f65db56795a..ec1424b5561c 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 var SymbolIterator = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInArray_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInArray_es5.2.minified.js index f7cf36b1fbc9..88791b14ec44 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInArray_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInArray_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall10_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall10_es5.1.normal.js index dfb4cbf07e42..cf20bff2bd0a 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall10_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo(s) { return s[0]; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall10_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall10_es5.2.minified.js index 91fda8ff53b0..72dadfff31b5 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall10_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall11_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall11_es5.1.normal.js index 3d87519fd7f6..1135e44b996e 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall11_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo() { for(var _len = arguments.length, s = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall11_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall11_es5.2.minified.js index 1a7de8c08b20..1767862668e6 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall11_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall12_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall12_es5.1.normal.js index bfee446b8e37..ce3f75f34365 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall12_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; //@target: ES6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall12_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall12_es5.2.minified.js index 46b2bf9977b5..71450a4218ad 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall12_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; var Foo = function() { "use strict"; for(var _len = arguments.length, s = new Array(_len), _key = 0; _key < _len; _key++)s[_key] = arguments[_key]; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall2_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall2_es5.1.normal.js index 1f28d81ee5cc..bc72175292a4 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo(s) {} var SymbolIterator = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall2_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall2_es5.2.minified.js index 04f9065222f5..33e0875930e9 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall3_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall3_es5.1.normal.js index c1d66226ea80..94c49d50d0e9 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall3_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo() { for(var _len = arguments.length, s = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall3_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall3_es5.2.minified.js index f582b9a09b8d..4bf40eaea701 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall3_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall4_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall4_es5.1.normal.js index d5d18d5b9446..08be6037bc7f 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo(s1) { for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall4_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall4_es5.2.minified.js index d7f442b68ba6..3b9cb71a304a 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall5_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall5_es5.1.normal.js index 8cbecf07d149..45788f3a7184 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo() { for(var _len = arguments.length, s = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall5_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall5_es5.2.minified.js index 442a78cf7a86..0e5aa2818611 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall6_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall6_es5.1.normal.js index 8cbecf07d149..45788f3a7184 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo() { for(var _len = arguments.length, s = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall6_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall6_es5.2.minified.js index 442a78cf7a86..0e5aa2818611 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall7_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall7_es5.1.normal.js index c6fa1337429d..132da440295d 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall7_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo() { for(var _len = arguments.length, s = new Array(_len), _key = 0; _key < _len; _key++){ diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall7_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall7_es5.2.minified.js index d7282357dfdc..fa7d5089f1cb 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall7_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall8_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall8_es5.1.normal.js index cb177ab5fc9c..e86f4fb040ca 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall8_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; //@target: ES6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall8_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall8_es5.2.minified.js index f149b169c381..9533c4e092e8 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall8_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; var Foo = function() { "use strict"; for(var _len = arguments.length, s = new Array(_len), _key = 0; _key < _len; _key++)s[_key] = arguments[_key]; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall9_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall9_es5.1.normal.js index 0c17a56ff60f..0ab047ea2bc0 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall9_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; //@target: ES6 var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall9_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall9_es5.2.minified.js index ee713a4554eb..2cb2b28c5d7b 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall9_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; var Foo = function() { "use strict"; for(var _len = arguments.length, s = new Array(_len), _key = 0; _key < _len; _key++)s[_key] = arguments[_key]; diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall_es5.1.normal.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall_es5.1.normal.js index 1f28d81ee5cc..bc72175292a4 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; //@target: ES6 function foo(s) {} var SymbolIterator = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/iteratorSpreadInCall_es5.2.minified.js b/crates/swc/tests/tsc-references/iteratorSpreadInCall_es5.2.minified.js index 04f9065222f5..33e0875930e9 100644 --- a/crates/swc/tests/tsc-references/iteratorSpreadInCall_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/iteratorSpreadInCall_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var SymbolIterator = function() { "use strict"; function SymbolIterator() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassAccessor_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassAccessor_es5.1.normal.js index 80c5fd7b6e49..f89d6afe8c1f 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassAccessor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassAccessor_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @filename: base.js export var Base = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassAccessor_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassAccessor_es5.2.minified.js index b31e2c639e77..c7042808cf95 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassAccessor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassAccessor_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; export var Base = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility_es5.1.normal.js index 918321a5b655..b07cc25f8931 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility_es5.2.minified.js index 324237aafb90..5af7e5330052 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassExtendsVisibility_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization_es5.1.normal.js index 1fed169eab0d..7882a921aaf4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: lib.js /** * @template T diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization_es5.2.minified.js index 300c05f8a9e0..0b463797969d 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassImplementsGenericsSerialization_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Encoder = function() { "use strict"; function Encoder() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional_es5.1.normal.js index b701fca1e280..0d70aa0a6520 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional_es5.2.minified.js index 715b4e86642c..d4853313e1ac 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassLeadingOptional_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Z = function() { "use strict"; function Z() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassMethod_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassMethod_es5.1.normal.js index 5bcfc010264f..b4e16b139bb4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassMethod_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassMethod_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: esnext diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassMethod_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassMethod_es5.2.minified.js index 39469e6da4bb..ce70fe6f96b4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassMethod_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassMethod_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function C1() { this.prop = function(x, y) { return x + y; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation_es5.1.normal.js index 89a996a229e7..133864c2e11d 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation_es5.2.minified.js index 6cd38369f057..1b1370de4229 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassStaticMethodAugmentation_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Clazz = function() { "use strict"; function Clazz() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassStatic_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassStatic_es5.1.normal.js index eb1378a849be..e6161206fdc4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassStatic_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassStatic_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassStatic_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassStatic_es5.2.minified.js index 176ee0002cae..0f0144191903 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassStatic_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassStatic_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Handler = function() { "use strict"; function Handler() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassesErr_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClassesErr_es5.1.normal.js index a54a0e6df956..f09f40680efe 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassesErr_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassesErr_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClassesErr_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClassesErr_es5.2.minified.js index c35c09d3dcfc..7b7efa1cfc71 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClassesErr_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClassesErr_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var M = function() { "use strict"; _class_call_check(this, M); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClasses_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsClasses_es5.1.normal.js index 4b11e2e5b730..e6332fad2572 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClasses_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClasses_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsClasses_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsClasses_es5.2.minified.js index 82ff533a1afe..435c1004260a 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsClasses_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsClasses_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath_es5.1.normal.js index c71ca50c0afb..44923ea7d634 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath_es5.1.normal.js @@ -6,7 +6,7 @@ "use strict"; // @Filename: reexport.js "use strict"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Thing = function Thing() { _class_call_check(this, Thing); }; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath_es5.2.minified.js index 49637d027e1d..0c2bed574985 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsCommonjsRelativePath_es5.2.minified.js @@ -1,5 +1,5 @@ "use strict"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Thing = function() { _class_call_check(this, Thing); }; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsComputedNames_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsComputedNames_es5.1.normal.js index acd2cf703147..e686043c1cba 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsComputedNames_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsComputedNames_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsComputedNames_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsComputedNames_es5.2.minified.js index 63a56d0eef6f..9a4f98fb2a08 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsComputedNames_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsComputedNames_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; 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; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsDefault_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsDefault_es5.1.normal.js index 32e2ffa1c8e4..ea11bb50359a 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsDefault_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsDefault_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: index4.js import Fab from "./index3"; // @allowJs: true diff --git a/crates/swc/tests/tsc-references/jsDeclarationsDefault_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsDefault_es5.2.minified.js index b984b50626dc..479e8cb333d2 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsDefault_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsDefault_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 Fab from "./index3"; export default 12; export default function foo() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr_es5.1.normal.js index 4b967c7af549..34488df40443 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr_es5.2.minified.js index 22e27225bfd0..04fd1ebd2f70 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsDefaultsErr_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Cls = function() { "use strict"; _class_call_check(this, Cls), this.x = 12; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub_es5.1.normal.js index b57c9fcff57f..9d5fa426898a 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub_es5.2.minified.js index c050897a26cd..72339c3c3e44 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymousWithSub_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = function _class(p) { "use strict"; _class_call_check(this, _class), this.t = 12 + p; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous_es5.1.normal.js index 3638cc02a040..491cca4b6540 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous_es5.2.minified.js index d909cdc62dec..aef6a429ab36 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionAnonymous_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing_es5.1.normal.js index abeb65922cf8..80b45f5bacaf 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing_es5.2.minified.js index 9a322fb83fd5..1ca957d424fc 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpressionShadowing_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A), this.member = new Q(); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression_es5.1.normal.js index 69d9f18bf55e..309341da275d 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression_es5.2.minified.js index a45b8faac459..ee6bc819c8c7 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassExpression_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = function Thing(p) { "use strict"; _class_call_check(this, Thing), this.t = 12 + p; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1_es5.1.normal.js index 7e0c7fc84049..2edb9a356eea 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1_es5.2.minified.js index fb31191fe7d8..cf4a9395818e 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2_es5.1.normal.js index d5debe7ba069..2720bb537866 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2_es5.2.minified.js index 133f185779c7..2f48ab7da7d5 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo), this.member = 10; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3_es5.1.normal.js index 9ef60f240fab..8c81550e4b8c 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3_es5.2.minified.js index c235295065d8..f17e8cbe8862 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedClassInstance3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo), this.member = 10; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility_es5.1.normal.js index 20db68aa3b07..c9905e14bb9b 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility_es5.2.minified.js index efb94e7298c0..46ac1350ae1c 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportAssignedVisibility_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = function Obj1() { "use strict"; _class_call_check(this, Obj1), this.x = 12; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportForms_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportForms_es5.1.normal.js index de5cb7c00145..9265408ddbe4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportForms_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportForms_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: includeAll.js import "./cjs4"; import "./cjs3"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportForms_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportForms_es5.2.minified.js index 0e3ef9a6169e..7eddb63629e5 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportForms_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportForms_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import "./cjs4"; import "./cjs3"; import "./cjs2"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal_es5.1.normal.js index a6f9b72ceceb..03af1962e1bc 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal_es5.2.minified.js index 0a9b7d261dba..d57c326f710b 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportSpecifierNonlocal_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Thing = function() { "use strict"; _class_call_check(this, Thing); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments_es5.1.normal.js index d6031c54c447..abebb4287214 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments_es5.2.minified.js index f2565dfaa776..b58d9101f18d 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportSubAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases_es5.1.normal.js index 70c82e5c91d8..33d54e96eddd 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @outDir: ./out diff --git a/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases_es5.2.minified.js index 024c618b6c7e..7ae7e90ecd4e 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsExportedClassAliases_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_native_super from "@swc/helpers/lib/_wrap_native_super.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var FancyError = function(Error) { "use strict"; _inherits(FancyError, Error); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment_es5.1.normal.js index bef44b8979db..54d966c1c1e5 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment_es5.2.minified.js index 193c591c66b4..4bb5d140c9ca 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionClassesCjsExportAssignment_es5.2.minified.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc_es5.1.normal.js index e7e2e6481b1a..953761644b56 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc_es5.2.minified.js index 0c8277e787c4..1b5439c81eb4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionJSDoc_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function foo() {} export var Aleph = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2_es5.1.normal.js index 3aaec8413364..2e3cfff0557f 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2_es5.2.minified.js index 972329a91baf..3cf4c7ebcbcf 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; export function Vec(len) { this.storage = Array(len); } diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses_es5.1.normal.js index 00cd97c32189..04526a3121e2 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses_es5.2.minified.js index b5a3d22cc06e..d22841263d40 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionLikeClasses_es5.2.minified.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; 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/jsDeclarationsFunctionsCjs_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs_es5.1.normal.js index ad65218bb657..835566e20fb2 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @outDir: ./out diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs_es5.2.minified.js index a5b3fc68fcda..06740ca5ad18 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctionsCjs_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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/jsDeclarationsFunctions_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctions_es5.1.normal.js index 0437b9b857f2..41db9b8c3ef2 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctions_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @outDir: ./out diff --git a/crates/swc/tests/tsc-references/jsDeclarationsFunctions_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsFunctions_es5.2.minified.js index 985944076692..58a5ad7f9cf6 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsFunctions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsFunctions_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function a() {} export function b() {} b.cat = "cat"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsGetterSetter_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsGetterSetter_es5.1.normal.js index 069ee594410a..d81e784d8205 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsGetterSetter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsGetterSetter_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @allowJs: true // @checkJs: true // @outDir: ./out diff --git a/crates/swc/tests/tsc-references/jsDeclarationsGetterSetter_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsGetterSetter_es5.2.minified.js index 590a8ab751b4..1fb813c602bc 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsGetterSetter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsGetterSetter_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; export var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit_es5.1.normal.js index e1ddec782de3..1445e7973f09 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit_es5.2.minified.js index d78b4318f2ff..ca76a9660875 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsModuleReferenceHasEmit_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es2015.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es2015.1.normal.js index 5bc3315e05ae..b1178ff4bc08 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @allowJs: true // @checkJs: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es2015.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es5.1.normal.js index 0fdb51543cbd..da70cc8ce0ed 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es5.2.minified.js index d26687727fc9..6ce32dd442a2 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsNestedParams_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +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 regeneratorRuntime from "regenerator-runtime"; var X = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit1_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit1_es5.1.normal.js index f7bcfcff396e..9a72d52569d9 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit1_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit1_es5.2.minified.js index d5d6e973428d..31230970f222 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit2_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit2_es5.1.normal.js index c2fa0fd03df5..b87b9e8d2aed 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit2_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit2_es5.2.minified.js index d5d6e973428d..31230970f222 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsParameterTagReusesInputNodeInEmit2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es2015.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es2015.1.normal.js index c8c87e764a06..f931d67ac1dc 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _hello = /*#__PURE__*/ new WeakMap(), _world = /*#__PURE__*/ new WeakMap(), _calcHello = /*#__PURE__*/ new WeakSet(), _screamingHello = /*#__PURE__*/ new WeakMap(); // @target: esnext // @allowJS: true diff --git a/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es2015.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es2015.2.minified.js index 5a17aeba77eb..7323fc37533c 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _hello = new WeakMap(), _world = new WeakMap(), _calcHello = new WeakSet(), _screamingHello = new WeakMap(); export class C { getWorld() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es5.1.normal.js index d2ea8fd7cf90..169c78c2d289 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _hello = /*#__PURE__*/ new WeakMap(), _world = /*#__PURE__*/ new WeakMap(), _calcHello = /*#__PURE__*/ new WeakSet(), _screamingHello = /*#__PURE__*/ new WeakMap(); // @target: esnext // @allowJS: true diff --git a/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es5.2.minified.js index be7d3a2afa26..4ee6372ed2be 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsPrivateFields01_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _hello = new WeakMap(), _world = new WeakMap(), _calcHello = new WeakSet(), _screamingHello = new WeakMap(); export var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop_es5.1.normal.js index 4d0e69a5e7de..e3ab712d4326 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: usage.js import { default as Fooa } from "./cls"; // @allowJs: true diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop_es5.2.minified.js index ce4ea15a39b5..9a8c3a1c9ce3 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliasesEsModuleInterop_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { default as Fooa } from "./cls"; var Foo = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases_es5.1.normal.js index e60269479cbd..c8127070910a 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: usage.js import { default as Fooa } from "./cls"; var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases_es5.2.minified.js index ee9ee0778398..8caabc5eb95f 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReexportAliases_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { default as Fooa } from "./cls"; var Foo = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile_es5.1.normal.js index 5fee3e0a254b..a65917217ae4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @moduleResolution: node diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile_es5.2.minified.js index 72304794778f..56c1400e2bbd 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReferenceToClassInstanceCrossFile_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Rectangle = function() { "use strict"; _class_call_check(this, Rectangle), console.log("I'm a rectangle!"); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction_es5.1.normal.js index 334018add3e8..c03966819c09 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @target: es5 diff --git a/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction_es5.2.minified.js index 56341cc157b5..d6e3568db98a 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsRestArgsWithThisTypeInJSDocFunction_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Clazz = function() { "use strict"; function Clazz() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReusesExistingTypeAnnotations_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsReusesExistingTypeAnnotations_es5.1.normal.js index 1cc7a748502d..1b410fec1ee6 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReusesExistingTypeAnnotations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReusesExistingTypeAnnotations_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @allowJs: true // @checkJs: true // @target: esnext diff --git a/crates/swc/tests/tsc-references/jsDeclarationsReusesExistingTypeAnnotations_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsReusesExistingTypeAnnotations_es5.2.minified.js index 7f8f17691a49..abaa08004e88 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsReusesExistingTypeAnnotations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsReusesExistingTypeAnnotations_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var С1 = function() { "use strict"; _class_call_check(this, С1), this.p1 = void 0, this.p2 = void 0, this.p3 = null, this.p4 = null; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor_es5.1.normal.js index 019139ac9af0..0da5e3932849 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @outDir: /out diff --git a/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor_es5.2.minified.js index 30139c5165e6..e7b9596b57bc 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsSubclassWithExplicitNoArgumentConstructor_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var Super = function(firstArg, secondArg) { "use strict"; _class_call_check(this, Super); diff --git a/crates/swc/tests/tsc-references/jsDeclarationsThisTypes_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsThisTypes_es5.1.normal.js index b50c2bd00a32..9a4d466b4da4 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsThisTypes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsThisTypes_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @allowJs: true // @checkJs: true // @outDir: /out diff --git a/crates/swc/tests/tsc-references/jsDeclarationsThisTypes_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsThisTypes_es5.2.minified.js index 5a80b8c7eaca..3471048bce96 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsThisTypes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsThisTypes_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases_es5.1.normal.js index d07e163019ff..a9d586d06de8 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; /** * @typedef {string | number | symbol} PropName */ /** diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases_es5.2.minified.js index 42b1013eb362..e22eacbbedf8 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypeAliases_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var ExportedThing = function() { "use strict"; _class_call_check(this, ExportedThing), this.z = "ok"; diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes_es5.1.normal.js index a388ccfd46ab..668d66ed2833 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @outDir: ./out diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes_es5.2.minified.js index 5caaf1d560bd..1d6c83fe7682 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypedefAndImportTypes_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Conn = function() { "use strict"; function Conn() { diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment_es5.1.normal.js index 80d4624bb719..bbd4521104b8 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @outDir: ./out diff --git a/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment_es5.2.minified.js index 3784208e4a05..c704c4330a3c 100644 --- a/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsDeclarationsTypedefPropertyAndExportAssignment_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var taskGroups = { parseHTML: { id: "parseHTML", diff --git a/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded_es5.1.normal.js b/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded_es5.1.normal.js index 1aebf63f1aac..a9546f02b471 100644 --- a/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @out: output.js // @allowJs: true // @filename: a.js diff --git a/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded_es5.2.minified.js b/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded_es5.2.minified.js index 844e5ab84d5f..28b3ca263d39 100644 --- a/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsObjectsMarkedAsOpenEnded_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var variable = {}; variable.a = 0; var C = function() { diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es2015.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es2015.1.normal.js index 9d316c31e6ce..57dc0aac6f55 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; import { jsx as _jsx } from "preact/jsx-runtime"; import { createElement as _createElement } from "react"; // @filename: react.tsx diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es2015.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es2015.2.minified.js index 695e70158353..66fc7642683f 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; import { jsx as _jsx } from "preact/jsx-runtime"; import { createElement as _createElement } from "react"; import "./preact"; diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es5.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es5.1.normal.js index ac97d502980f..e0438532a642 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; import { jsx as _jsx } from "preact/jsx-runtime"; import { createElement as _createElement } from "react"; // @filename: react.tsx diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es5.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es5.2.minified.js index 7f1c3b7e0928..018c62ace5b3 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImportPragma_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; import { jsx as _jsx } from "preact/jsx-runtime"; import { createElement as _createElement } from "react"; import "./preact"; diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es2015.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es2015.1.normal.js index c9fd99cea149..136fae42eaf1 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @jsx: react-jsx,react-jsxdev // @jsxImportSource: preact // @strict: true diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es2015.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es2015.2.minified.js index 6553bf3554b8..9ce877b68e33 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let props = { answer: 42 }; diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es5.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es5.1.normal.js index 5a1fd6a9e9e9..07b1e3237b2d 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @jsx: react-jsx,react-jsxdev // @jsxImportSource: preact // @strict: true diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es5.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es5.2.minified.js index 7b8b151254e4..74f3ebfe2a58 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyPropCustomImport_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var props = { answer: 42 }; diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es2015.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es2015.1.normal.js index 46d43ad956ef..5c91f2689b7c 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @jsx: react-jsx,react-jsxdev // @strict: true // @module: commonjs diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es2015.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es2015.2.minified.js index 6553bf3554b8..9ce877b68e33 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let props = { answer: 42 }; diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es5.1.normal.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es5.1.normal.js index 85b0f0ad8ff8..276915cc9af0 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @jsx: react-jsx,react-jsxdev // @strict: true // @module: commonjs diff --git a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es5.2.minified.js b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es5.2.minified.js index 7b8b151254e4..74f3ebfe2a58 100644 --- a/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxJsxsCjsTransformKeyProp_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var props = { answer: 42 }; diff --git a/crates/swc/tests/tsc-references/jsxReactTestSuite_es2015.1.normal.js b/crates/swc/tests/tsc-references/jsxReactTestSuite_es2015.1.normal.js index 0ded3cb5d4b5..7fb9be1fd465 100644 --- a/crates/swc/tests/tsc-references/jsxReactTestSuite_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxReactTestSuite_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; /*#__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_es2015.2.minified.js b/crates/swc/tests/tsc-references/jsxReactTestSuite_es2015.2.minified.js index 19cb8de7c2ff..6a2bf15a00dd 100644 --- a/crates/swc/tests/tsc-references/jsxReactTestSuite_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxReactTestSuite_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; this.props.children, this.props.children; var x = React.createElement("div", { attr1: "foobar", diff --git a/crates/swc/tests/tsc-references/jsxReactTestSuite_es5.1.normal.js b/crates/swc/tests/tsc-references/jsxReactTestSuite_es5.1.normal.js index 0ded3cb5d4b5..7fb9be1fd465 100644 --- a/crates/swc/tests/tsc-references/jsxReactTestSuite_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxReactTestSuite_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; /*#__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_es5.2.minified.js b/crates/swc/tests/tsc-references/jsxReactTestSuite_es5.2.minified.js index 19cb8de7c2ff..6a2bf15a00dd 100644 --- a/crates/swc/tests/tsc-references/jsxReactTestSuite_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxReactTestSuite_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; this.props.children, this.props.children; var x = React.createElement("div", { attr1: "foobar", diff --git a/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es2015.1.normal.js b/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es2015.1.normal.js index 5942632780fa..f6025e0795d8 100644 --- a/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @strict: true diff --git a/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es2015.2.minified.js b/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es2015.2.minified.js index ea526e5a6863..c44c7004d49c 100644 --- a/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); let props = { a: 1, diff --git a/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es5.1.normal.js b/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es5.1.normal.js index ea24ba4f489f..1cfcdeadaa9a 100644 --- a/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @strict: true diff --git a/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es5.2.minified.js b/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es5.2.minified.js index 7bb2957733a3..9a60e5d5ccb4 100644 --- a/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/jsxSpreadOverwritesAttributeStrict_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); var props = { a: 1, diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccess2_es5.1.normal.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccess2_es5.1.normal.js index 1d232748c0e6..1befe43a33b7 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccess2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccess2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strict: true // @target: esnext function f1(obj, k0, k1, k2) { diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccess2_es5.2.minified.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccess2_es5.2.minified.js index 69d66c2617d5..e2e92cd57665 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccess2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccess2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export function getAllEntities(state) { var ids = state.ids, entities = state.entities; return ids.map(function(id) { diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors_es5.1.normal.js index 9974fb08cedb..5aeab3358649 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Shape = function Shape() { "use strict"; _class_call_check(this, Shape); diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors_es5.2.minified.js index bb524bebe498..fa4f50e19871 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccessErrors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Shape = function() { "use strict"; _class_call_check(this, Shape); diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccess_es5.1.normal.js index b874e14aaeaa..63a3dc751b0b 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccess_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @strictNullChecks: true // @declaration: true var Shape = function Shape() { diff --git a/crates/swc/tests/tsc-references/keyofAndIndexedAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/keyofAndIndexedAccess_es5.2.minified.js index 059a34e02c1c..00b4d2573b0c 100644 --- a/crates/swc/tests/tsc-references/keyofAndIndexedAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/keyofAndIndexedAccess_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var E, Flag, Shape = function() { "use strict"; _class_call_check(this, Shape); diff --git a/crates/swc/tests/tsc-references/lateBoundAssignmentDeclarationSupport5_es5.1.normal.js b/crates/swc/tests/tsc-references/lateBoundAssignmentDeclarationSupport5_es5.1.normal.js index 84ffe0d5974c..2c5ba6881de0 100644 --- a/crates/swc/tests/tsc-references/lateBoundAssignmentDeclarationSupport5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/lateBoundAssignmentDeclarationSupport5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/lateBoundAssignmentDeclarationSupport5_es5.2.minified.js b/crates/swc/tests/tsc-references/lateBoundAssignmentDeclarationSupport5_es5.2.minified.js index 65b40be39382..5e8e662718d5 100644 --- a/crates/swc/tests/tsc-references/lateBoundAssignmentDeclarationSupport5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/lateBoundAssignmentDeclarationSupport5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _sym = Symbol(), _str = "my-fake-sym"; function F() {} F.prototype = (_define_property(_obj = {}, _sym, "ok"), _define_property(_obj, _str, "ok"), _obj); diff --git a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS2_es5.1.normal.js b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS2_es5.1.normal.js index 8b6266a29459..0102d4153efb 100644 --- a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @emitDeclarationOnly: true diff --git a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS2_es5.2.minified.js b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS2_es5.2.minified.js index eed209bab8ca..8c7c3d516879 100644 --- a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _sym = "my-fake-sym"; export var MyClass = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS3_es5.1.normal.js b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS3_es5.1.normal.js index 8602223c0f26..8e0044bb0856 100644 --- a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @emitDeclarationOnly: true diff --git a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS3_es5.2.minified.js b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS3_es5.2.minified.js index a07657ed7d19..38e8beb77d2e 100644 --- a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _sym = Symbol("_sym"); export var MyClass = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS_es5.1.normal.js b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS_es5.1.normal.js index 95d477515cfa..55311528bf6b 100644 --- a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @emitDeclarationOnly: true diff --git a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS_es5.2.minified.js b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS_es5.2.minified.js index 2ea9ef3bb040..672692e78784 100644 --- a/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/lateBoundClassMemberAssignmentJS_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _sym = Symbol("_sym"); export var MyClass = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/literalTypeWidening_es2015.1.normal.js b/crates/swc/tests/tsc-references/literalTypeWidening_es2015.1.normal.js index 5480f0df197c..ec44ebe838e3 100644 --- a/crates/swc/tests/tsc-references/literalTypeWidening_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/literalTypeWidening_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // Widening vs. non-widening literal types function f1() { const c1 = "hello"; // Widening type "hello" diff --git a/crates/swc/tests/tsc-references/literalTypeWidening_es2015.2.minified.js b/crates/swc/tests/tsc-references/literalTypeWidening_es2015.2.minified.js index a325d238fbe6..cab0a04f8c11 100644 --- a/crates/swc/tests/tsc-references/literalTypeWidening_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/literalTypeWidening_es2015.2.minified.js @@ -1,6 +1,6 @@ var E; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; export function Set(...keys1) { let result = {}; return keys1.forEach((key)=>result[key] = !0), result; diff --git a/crates/swc/tests/tsc-references/literalTypeWidening_es5.1.normal.js b/crates/swc/tests/tsc-references/literalTypeWidening_es5.1.normal.js index 3f3aa0f97d4b..2ccc50aef311 100644 --- a/crates/swc/tests/tsc-references/literalTypeWidening_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/literalTypeWidening_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // Widening vs. non-widening literal types function f1() { var c1 = "hello"; // Widening type "hello" diff --git a/crates/swc/tests/tsc-references/literalTypeWidening_es5.2.minified.js b/crates/swc/tests/tsc-references/literalTypeWidening_es5.2.minified.js index 9a6a354891cc..2ef21e98737a 100644 --- a/crates/swc/tests/tsc-references/literalTypeWidening_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/literalTypeWidening_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; export function Set() { for(var _len = arguments.length, _$keys = new Array(_len), _key = 0; _key < _len; _key++)_$keys[_key] = arguments[_key]; var result = {}; diff --git a/crates/swc/tests/tsc-references/literalTypes2_es5.1.normal.js b/crates/swc/tests/tsc-references/literalTypes2_es5.1.normal.js index 51b4ffcdb9f3..c7f268246db1 100644 --- a/crates/swc/tests/tsc-references/literalTypes2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/literalTypes2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E; (function(E) { E[E["A"] = 0] = "A"; diff --git a/crates/swc/tests/tsc-references/literalTypes2_es5.2.minified.js b/crates/swc/tests/tsc-references/literalTypes2_es5.2.minified.js index ecb460e4d4f3..08034a8b6673 100644 --- a/crates/swc/tests/tsc-references/literalTypes2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/literalTypes2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !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_es5.1.normal.js b/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition_es5.1.normal.js index 4483d424c76f..3ec3c9234f5e 100644 --- a/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition_es5.2.minified.js index 667021b0fa32..0d9caa572aba 100644 --- a/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/literalTypesWidenInParameterPosition_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var D = function() { "use strict"; var widen = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 2; diff --git a/crates/swc/tests/tsc-references/localTypes1_es5.1.normal.js b/crates/swc/tests/tsc-references/localTypes1_es5.1.normal.js index 248505f81cd8..9d4ebc34ef24 100644 --- a/crates/swc/tests/tsc-references/localTypes1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/localTypes1_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es5 function f1() { var E; diff --git a/crates/swc/tests/tsc-references/localTypes1_es5.2.minified.js b/crates/swc/tests/tsc-references/localTypes1_es5.2.minified.js index 1022ebbd4ca3..0b448de7650f 100644 --- a/crates/swc/tests/tsc-references/localTypes1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/localTypes1_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/localTypes2_es5.1.normal.js b/crates/swc/tests/tsc-references/localTypes2_es5.1.normal.js index 2ea7a714a0c6..ac8f1403474a 100644 --- a/crates/swc/tests/tsc-references/localTypes2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/localTypes2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function f1() { var f = function f() { var C = function C(x, y) { diff --git a/crates/swc/tests/tsc-references/localTypes2_es5.2.minified.js b/crates/swc/tests/tsc-references/localTypes2_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/localTypes2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/localTypes2_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/localTypes3_es5.1.normal.js b/crates/swc/tests/tsc-references/localTypes3_es5.1.normal.js index f5ddfb5f6e9f..490ac2b1743c 100644 --- a/crates/swc/tests/tsc-references/localTypes3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/localTypes3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function f1() { var f = function f() { var C = function C(x, y) { diff --git a/crates/swc/tests/tsc-references/localTypes3_es5.2.minified.js b/crates/swc/tests/tsc-references/localTypes3_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/localTypes3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/localTypes3_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/localTypes5_es5.1.normal.js b/crates/swc/tests/tsc-references/localTypes5_es5.1.normal.js index 46993fa78052..4212035cf975 100644 --- a/crates/swc/tests/tsc-references/localTypes5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/localTypes5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo() { var X = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/localTypes5_es5.2.minified.js b/crates/swc/tests/tsc-references/localTypes5_es5.2.minified.js index d057a1ac39cd..80d3c36ff029 100644 --- a/crates/swc/tests/tsc-references/localTypes5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/localTypes5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function() { var X = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType_es5.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType_es5.1.normal.js index 7e467603f550..a8c3b060f491 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // ! operator on any type var ANY; var ANY1; diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType_es5.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType_es5.2.minified.js index 897c4783097e..bab07260d1cd 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithAnyOtherType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType_es5.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType_es5.1.normal.js index 05c67c8163d2..203d4ff060b1 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // ! operator on boolean type var BOOLEAN; function foo() { diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType_es5.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType_es5.2.minified.js index c1665cd766f5..a044cc27fffd 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithBooleanType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType_es5.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType_es5.1.normal.js index 1c2b2f54fbef..72fbaffff175 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // ! operator on number type var NUMBER; var NUMBER1 = [ diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType_es5.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType_es5.2.minified.js index 76ced0f24da3..542dc6191dd4 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithNumberType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType_es5.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType_es5.1.normal.js index 4e4609960dae..0c259d71030a 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // ! operator on string type var STRING; var STRING1 = [ diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType_es5.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType_es5.2.minified.js index f26d2d23ea3e..9ba6eadb5677 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorWithStringType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/looseThisTypeInFunctions_es5.1.normal.js b/crates/swc/tests/tsc-references/looseThisTypeInFunctions_es5.1.normal.js index 0f223d902305..b4720506bcd0 100644 --- a/crates/swc/tests/tsc-references/looseThisTypeInFunctions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/looseThisTypeInFunctions_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/looseThisTypeInFunctions_es5.2.minified.js b/crates/swc/tests/tsc-references/looseThisTypeInFunctions_es5.2.minified.js index c667567f36a3..f83bfba126a8 100644 --- a/crates/swc/tests/tsc-references/looseThisTypeInFunctions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/looseThisTypeInFunctions_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var u, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/mappedTypeConstraints_es2015.1.normal.js b/crates/swc/tests/tsc-references/mappedTypeConstraints_es2015.1.normal.js index 546c22c68fc2..91bdff6e3423 100644 --- a/crates/swc/tests/tsc-references/mappedTypeConstraints_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypeConstraints_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @strict: true function f0(obj) { obj.b; diff --git a/crates/swc/tests/tsc-references/mappedTypeConstraints_es2015.2.minified.js b/crates/swc/tests/tsc-references/mappedTypeConstraints_es2015.2.minified.js index 105115452a15..feebd5ee14ce 100644 --- a/crates/swc/tests/tsc-references/mappedTypeConstraints_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypeConstraints_es2015.2.minified.js @@ -1 +1 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; diff --git a/crates/swc/tests/tsc-references/mappedTypeConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/mappedTypeConstraints_es5.1.normal.js index eed16eaf86ae..247fd6e197ad 100644 --- a/crates/swc/tests/tsc-references/mappedTypeConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypeConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @strict: true function f0(obj) { obj.b; diff --git a/crates/swc/tests/tsc-references/mappedTypeConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/mappedTypeConstraints_es5.2.minified.js index 105115452a15..feebd5ee14ce 100644 --- a/crates/swc/tests/tsc-references/mappedTypeConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypeConstraints_es5.2.minified.js @@ -1 +1 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; diff --git a/crates/swc/tests/tsc-references/mappedTypeErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/mappedTypeErrors_es5.1.normal.js index d8322263588c..20d9547dc5c1 100644 --- a/crates/swc/tests/tsc-references/mappedTypeErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypeErrors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function f1(x) { var y; // Error } diff --git a/crates/swc/tests/tsc-references/mappedTypeErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/mappedTypeErrors_es5.2.minified.js index e40e20f38146..03af03489d13 100644 --- a/crates/swc/tests/tsc-references/mappedTypeErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypeErrors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function setState(obj, props) { for(var k in props)obj[k] = props[k]; } diff --git a/crates/swc/tests/tsc-references/mappedTypes3_es5.1.normal.js b/crates/swc/tests/tsc-references/mappedTypes3_es5.1.normal.js index ca31da8bd0db..e8e3e37b38b1 100644 --- a/crates/swc/tests/tsc-references/mappedTypes3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypes3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true var Box = function Box() { "use strict"; diff --git a/crates/swc/tests/tsc-references/mappedTypes3_es5.2.minified.js b/crates/swc/tests/tsc-references/mappedTypes3_es5.2.minified.js index 1fa7c403a872..fcbfa34513b5 100644 --- a/crates/swc/tests/tsc-references/mappedTypes3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypes3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Box = function() { "use strict"; _class_call_check(this, Box); diff --git a/crates/swc/tests/tsc-references/mappedTypesAndObjects_es5.1.normal.js b/crates/swc/tests/tsc-references/mappedTypesAndObjects_es5.1.normal.js index f3190003bcdf..631c9b081bea 100644 --- a/crates/swc/tests/tsc-references/mappedTypesAndObjects_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mappedTypesAndObjects_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strictNullChecks: true // @declaration: true function f1(x, y) { diff --git a/crates/swc/tests/tsc-references/mappedTypesAndObjects_es5.2.minified.js b/crates/swc/tests/tsc-references/mappedTypesAndObjects_es5.2.minified.js index c6e30bad385a..ed51c429c077 100644 --- a/crates/swc/tests/tsc-references/mappedTypesAndObjects_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mappedTypesAndObjects_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Form = function() { "use strict"; _class_call_check(this, Form), this.values = {}; diff --git a/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance_es5.1.normal.js b/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance_es5.1.normal.js index 1d533869a422..e7b68d6b3d43 100644 --- a/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance_es5.2.minified.js b/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance_es5.2.minified.js index f715424bb2fe..6a342d4d98c8 100644 --- a/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/memberFunctionOverloadMixingStaticAndInstance_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads_es5.1.normal.js b/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads_es5.1.normal.js index 8af23627679b..a18d4d1fc1df 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads_es5.2.minified.js b/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads_es5.2.minified.js index 8441705ee9fc..fcf8c03c76c1 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPrivateOverloads_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, d, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads_es5.1.normal.js b/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads_es5.1.normal.js index c40f37edfac4..5a2bb586f519 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads_es5.2.minified.js b/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads_es5.2.minified.js index 3d6ed5915840..f5188cc28cd4 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPublicOverloads_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads_es5.1.normal.js b/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads_es5.1.normal.js index bbe867a52e56..522c3b8debfc 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads_es5.2.minified.js b/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads_es5.2.minified.js index 3cb6834301fc..d0a3cb3e8803 100644 --- a/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/memberFunctionsWithPublicPrivateOverloads_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, d, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/mergedClassInterface_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedClassInterface_es5.1.normal.js index c2a0fb9e377f..6975ca43d353 100644 --- a/crates/swc/tests/tsc-references/mergedClassInterface_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedClassInterface_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C3 = function C3() { "use strict"; _class_call_check(this, C3); diff --git a/crates/swc/tests/tsc-references/mergedClassInterface_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedClassInterface_es5.2.minified.js index 61623fe2dc0f..6f333f1ce51e 100644 --- a/crates/swc/tests/tsc-references/mergedClassInterface_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedClassInterface_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c5, C3 = function() { "use strict"; _class_call_check(this, C3); diff --git a/crates/swc/tests/tsc-references/mergedInheritedClassInterface_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInheritedClassInterface_es5.1.normal.js index 0a672d2a89fc..1bb308aa84ac 100644 --- a/crates/swc/tests/tsc-references/mergedInheritedClassInterface_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInheritedClassInterface_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var BaseClass = /*#__PURE__*/ function() { "use strict"; function BaseClass() { diff --git a/crates/swc/tests/tsc-references/mergedInheritedClassInterface_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInheritedClassInterface_es5.2.minified.js index 217cbcd8b21d..61320bd90b12 100644 --- a/crates/swc/tests/tsc-references/mergedInheritedClassInterface_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInheritedClassInterface_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var child, grandchild, BaseClass = function() { "use strict"; function BaseClass() { diff --git a/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase_es5.1.normal.js index e6e349c76267..c536c247032e 100644 --- a/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var BaseClass = function BaseClass() { "use strict"; _class_call_check(this, BaseClass); diff --git a/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase_es5.2.minified.js index 37d1591715d8..3ebe981af3bb 100644 --- a/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInheritedMembersSatisfyAbstractBase_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var BaseClass = function() { "use strict"; _class_call_check(this, BaseClass); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2_es5.1.normal.js index 15de0bb61498..899be0e8ac11 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2_es5.2.minified.js index b974b2772c57..9e0249686f07 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var a, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3_es5.1.normal.js index 5c7c66ab2d1b..c9ae0a64054f 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3_es5.2.minified.js index 990338b8c99c..03149af385a7 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates_es5.1.normal.js index 9ddd479f62e7..894408a1d1bd 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates_es5.2.minified.js index 0b4dd15e68c8..67f26a3cc1c3 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithInheritedPrivates_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2_es5.1.normal.js index 34b87a3100c9..a1326b8676c5 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // merged interfaces behave as if all extends clauses from each declaration are merged together // no errors expected var C = function C() { diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2_es5.2.minified.js index 7c04b2bea391..f6f91a7b3cfe 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3_es5.1.normal.js index 40c62c615430..a2708ef8c278 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // merged interfaces behave as if all extends clauses from each declaration are merged together // no errors expected var C = function C() { diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3_es5.2.minified.js index bba5bc29794b..00c5d08dd61e 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4_es5.1.normal.js index d0e90fe58efd..7255730d5539 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // merged interfaces behave as if all extends clauses from each declaration are merged together var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4_es5.2.minified.js index bba5bc29794b..00c5d08dd61e 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases_es5.1.normal.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases_es5.1.normal.js index 9d0837dbb937..4e9e410f3c90 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // merged interfaces behave as if all extends clauses from each declaration are merged together // no errors expected var C = function C() { diff --git a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases_es5.2.minified.js b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases_es5.2.minified.js index 040ede15750d..ead437768951 100644 --- a/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mergedInterfacesWithMultipleBases_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/missingAndExcessProperties_es5.1.normal.js b/crates/swc/tests/tsc-references/missingAndExcessProperties_es5.1.normal.js index 7330e24617a8..d4bf6b8f8292 100644 --- a/crates/swc/tests/tsc-references/missingAndExcessProperties_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/missingAndExcessProperties_es5.1.normal.js @@ -1,4 +1,4 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; // Missing properties function f1() { var ref = {}, x = ref.x, y = ref.y; diff --git a/crates/swc/tests/tsc-references/missingAndExcessProperties_es5.2.minified.js b/crates/swc/tests/tsc-references/missingAndExcessProperties_es5.2.minified.js index e9819e3391dd..32a96689f265 100644 --- a/crates/swc/tests/tsc-references/missingAndExcessProperties_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/missingAndExcessProperties_es5.2.minified.js @@ -1 +1 @@ -import _throw from "@swc/helpers/lib/_throw.js"; +import _throw from "@swc/helpers/src/_throw.mjs"; diff --git a/crates/swc/tests/tsc-references/mixinAbstractClasses.2_es5.1.normal.js b/crates/swc/tests/tsc-references/mixinAbstractClasses.2_es5.1.normal.js index 3a8c15592562..e5efa16a7295 100644 --- a/crates/swc/tests/tsc-references/mixinAbstractClasses.2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinAbstractClasses.2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function Mixin(baseClass1) { // error expected: A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'. var MixinClass = /*#__PURE__*/ function(baseClass) { diff --git a/crates/swc/tests/tsc-references/mixinAbstractClasses.2_es5.2.minified.js b/crates/swc/tests/tsc-references/mixinAbstractClasses.2_es5.2.minified.js index 7b7528518079..8a25e573dbbe 100644 --- a/crates/swc/tests/tsc-references/mixinAbstractClasses.2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinAbstractClasses.2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var AbstractBase = function() { "use strict"; _class_call_check(this, AbstractBase); diff --git a/crates/swc/tests/tsc-references/mixinAbstractClassesReturnTypeInference_es5.1.normal.js b/crates/swc/tests/tsc-references/mixinAbstractClassesReturnTypeInference_es5.1.normal.js index 0ff837fbdec7..54fd1403dbb1 100644 --- a/crates/swc/tests/tsc-references/mixinAbstractClassesReturnTypeInference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinAbstractClassesReturnTypeInference_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var AbstractBase = function AbstractBase() { "use strict"; _class_call_check(this, AbstractBase); diff --git a/crates/swc/tests/tsc-references/mixinAbstractClassesReturnTypeInference_es5.2.minified.js b/crates/swc/tests/tsc-references/mixinAbstractClassesReturnTypeInference_es5.2.minified.js index b57aa62c3ca3..52f79992d750 100644 --- a/crates/swc/tests/tsc-references/mixinAbstractClassesReturnTypeInference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinAbstractClassesReturnTypeInference_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var MixinClass, AbstractBase = function() { "use strict"; _class_call_check(this, AbstractBase); diff --git a/crates/swc/tests/tsc-references/mixinAbstractClasses_es5.1.normal.js b/crates/swc/tests/tsc-references/mixinAbstractClasses_es5.1.normal.js index d07c40b344a4..af673227d069 100644 --- a/crates/swc/tests/tsc-references/mixinAbstractClasses_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinAbstractClasses_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function Mixin(baseClass1) { var MixinClass = /*#__PURE__*/ function(baseClass) { "use strict"; diff --git a/crates/swc/tests/tsc-references/mixinAbstractClasses_es5.2.minified.js b/crates/swc/tests/tsc-references/mixinAbstractClasses_es5.2.minified.js index a8078a51a084..c0a686bb27bf 100644 --- a/crates/swc/tests/tsc-references/mixinAbstractClasses_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinAbstractClasses_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function Mixin(baseClass1) { var MixinClass = function(baseClass) { "use strict"; diff --git a/crates/swc/tests/tsc-references/mixinAccessModifiers_es5.1.normal.js b/crates/swc/tests/tsc-references/mixinAccessModifiers_es5.1.normal.js index 25ab9a9213f7..e4344ee3f031 100644 --- a/crates/swc/tests/tsc-references/mixinAccessModifiers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinAccessModifiers_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/mixinAccessModifiers_es5.2.minified.js index d06fe260dc94..806876e1bfc2 100644 --- a/crates/swc/tests/tsc-references/mixinAccessModifiers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinAccessModifiers_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Private = function() { "use strict"; for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key]; diff --git a/crates/swc/tests/tsc-references/mixinClassesAnnotated_es5.1.normal.js b/crates/swc/tests/tsc-references/mixinClassesAnnotated_es5.1.normal.js index 26a4dfac396f..7554b46a4629 100644 --- a/crates/swc/tests/tsc-references/mixinClassesAnnotated_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinClassesAnnotated_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function Base(x, y) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/mixinClassesAnnotated_es5.2.minified.js b/crates/swc/tests/tsc-references/mixinClassesAnnotated_es5.2.minified.js index 6b7c1fb7dcce..904ede0b213b 100644 --- a/crates/swc/tests/tsc-references/mixinClassesAnnotated_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinClassesAnnotated_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var _class, Base = function(x, y) { "use strict"; _class_call_check(this, Base), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/mixinClassesAnonymous_es5.1.normal.js b/crates/swc/tests/tsc-references/mixinClassesAnonymous_es5.1.normal.js index 8447826a56e9..bfe313a72f4e 100644 --- a/crates/swc/tests/tsc-references/mixinClassesAnonymous_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinClassesAnonymous_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function Base(x, y) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/mixinClassesAnonymous_es5.2.minified.js b/crates/swc/tests/tsc-references/mixinClassesAnonymous_es5.2.minified.js index 6b7c1fb7dcce..904ede0b213b 100644 --- a/crates/swc/tests/tsc-references/mixinClassesAnonymous_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinClassesAnonymous_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var _class, Base = function(x, y) { "use strict"; _class_call_check(this, Base), this.x = x, this.y = y; diff --git a/crates/swc/tests/tsc-references/mixinClassesMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/mixinClassesMembers_es5.1.normal.js index c9f47e848a8c..c76937c6fb50 100644 --- a/crates/swc/tests/tsc-references/mixinClassesMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/mixinClassesMembers_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function f1() { var x1 = new Mixed1("hello"); var x2 = new Mixed1(42); diff --git a/crates/swc/tests/tsc-references/mixinClassesMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/mixinClassesMembers_es5.2.minified.js index 21ec9ff42986..e65e27cea651 100644 --- a/crates/swc/tests/tsc-references/mixinClassesMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/mixinClassesMembers_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C2 = function(Mixed1) { "use strict"; _inherits(C2, Mixed1); diff --git a/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction_es5.1.normal.js index 69eb1c2a381e..16d06fa97223 100644 --- a/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true function f() { var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/modifierOnClassDeclarationMemberInFunction_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction_es5.1.normal.js index 1feb103f1bff..3233761162c0 100644 --- a/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true // @declaration: true function g() { diff --git a/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction_es5.2.minified.js index 3ac0fa510eb5..1adbda0bc127 100644 --- a/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/modifierOnClassExpressionMemberInFunction_es5.2.minified.js @@ -1 +1 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; diff --git a/crates/swc/tests/tsc-references/moduleExportAlias3_es5.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAlias3_es5.1.normal.js index 862e11a6cf2a..1560f4d3a1df 100644 --- a/crates/swc/tests/tsc-references/moduleExportAlias3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAlias3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @checkJs: true // @allowJS: true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/moduleExportAlias3_es5.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAlias3_es5.2.minified.js index 7851e2a49842..b96c415ebe3d 100644 --- a/crates/swc/tests/tsc-references/moduleExportAlias3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAlias3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/moduleExportAlias4_es5.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAlias4_es5.1.normal.js index 9d48b5984c72..298d73ad1582 100644 --- a/crates/swc/tests/tsc-references/moduleExportAlias4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAlias4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @checkJs: true // @noEmit: true // @Filename: bug24024.js diff --git a/crates/swc/tests/tsc-references/moduleExportAlias4_es5.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAlias4_es5.2.minified.js index e0b68f9b6f08..ece94965f66e 100644 --- a/crates/swc/tests/tsc-references/moduleExportAlias4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAlias4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; require("./bug24024"), module.exports = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment5_es5.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAssignment5_es5.1.normal.js index d0b404cdba6c..75cd6ec09c2d 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment5_es5.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAssignment5_es5.2.minified.js index 4d47c09f53cc..d2a0fc8e230a 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Axios = function() { "use strict"; function Axios() { diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment6_es5.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAssignment6_es5.1.normal.js index e28153a7d073..73ec0b39562d 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment6_es5.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAssignment6_es5.2.minified.js index c54f89c6811b..13cadd811c7f 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/moduleExportAssignment_es5.1.normal.js index 99e1d6a1f919..5967399d2e12 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/moduleExportAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/moduleExportAssignment_es5.2.minified.js index fc1f0f9f9bfe..0fd74ceb68d5 100644 --- a/crates/swc/tests/tsc-references/moduleExportAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportAssignment_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var EE = function() { "use strict"; function EE() { diff --git a/crates/swc/tests/tsc-references/moduleExportNestedNamespaces_es5.1.normal.js b/crates/swc/tests/tsc-references/moduleExportNestedNamespaces_es5.1.normal.js index b239e7e1e16f..9c4447dd5d37 100644 --- a/crates/swc/tests/tsc-references/moduleExportNestedNamespaces_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleExportNestedNamespaces_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: use.js import * as s from "./mod"; // @allowJs: true diff --git a/crates/swc/tests/tsc-references/moduleExportNestedNamespaces_es5.2.minified.js b/crates/swc/tests/tsc-references/moduleExportNestedNamespaces_es5.2.minified.js index ad693053c540..7f692413af26 100644 --- a/crates/swc/tests/tsc-references/moduleExportNestedNamespaces_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleExportNestedNamespaces_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import * as s from "./mod"; module.exports.n = {}, module.exports.n.K = function() { this.x = 10; diff --git a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.1.normal.js b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.1.normal.js index 516b88def476..317a9bdd2373 100644 --- a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A; (function(A2) { var F = function F(s) { diff --git a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.2.minified.js b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.2.minified.js index f8cf8f38666a..217b7c7cc99d 100644 --- a/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/moduleWithStatementsOfEveryKind_es5.2.minified.js @@ -1,7 +1,7 @@ var A, Y; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(A3) { var Module, Color, A1, Color1, A2 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/multipleDeclarations_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleDeclarations_es5.1.normal.js index b5932397db4d..8755b08061eb 100644 --- a/crates/swc/tests/tsc-references/multipleDeclarations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleDeclarations_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: input.js // @out: output.js // @allowJs: true diff --git a/crates/swc/tests/tsc-references/multipleDeclarations_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleDeclarations_es5.2.minified.js index d41907ffdc36..1c110036d7a6 100644 --- a/crates/swc/tests/tsc-references/multipleDeclarations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleDeclarations_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (function() { this.m = null; }).prototype.m = function() { diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports01_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleDefaultExports01_es5.1.normal.js index 7a157ecfffe9..c99f179d330b 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports01_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: m2.ts import Entity from "./m1"; var foo = function foo() { diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports01_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleDefaultExports01_es5.2.minified.js index b1a523f94ed2..8ab2fc045e58 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports01_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import Entity from "./m1"; var foo = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports03_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleDefaultExports03_es5.1.normal.js index 47a654efd24f..7a0d64d5f0b0 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports03_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports03_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports03_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleDefaultExports03_es5.2.minified.js index cd15e13be934..0d191c5f339f 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports03_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports03_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports05_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleDefaultExports05_es5.1.normal.js index 30d092f23ab4..8a4db1628493 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports05_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports05_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var AA1 = function AA1() { "use strict"; _class_call_check(this, AA1); diff --git a/crates/swc/tests/tsc-references/multipleDefaultExports05_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleDefaultExports05_es5.2.minified.js index 396fafc38626..1bed29a41a9d 100644 --- a/crates/swc/tests/tsc-references/multipleDefaultExports05_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleDefaultExports05_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var AA1 = function() { "use strict"; _class_call_check(this, AA1); diff --git a/crates/swc/tests/tsc-references/multipleExportDefault3_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleExportDefault3_es5.1.normal.js index 8165f9bffff0..12c21e7adb3c 100644 --- a/crates/swc/tests/tsc-references/multipleExportDefault3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleExportDefault3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export default { uhoh: "another default" }; diff --git a/crates/swc/tests/tsc-references/multipleExportDefault3_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleExportDefault3_es5.2.minified.js index 105d03e1cc52..a7bf7315b2f9 100644 --- a/crates/swc/tests/tsc-references/multipleExportDefault3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleExportDefault3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export default { uhoh: "another default" }; diff --git a/crates/swc/tests/tsc-references/multipleExportDefault4_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleExportDefault4_es5.1.normal.js index 6c43e843bab1..9d055b83670b 100644 --- a/crates/swc/tests/tsc-references/multipleExportDefault4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleExportDefault4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/multipleExportDefault4_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleExportDefault4_es5.2.minified.js index 30a84a493cbe..adf041c02d8f 100644 --- a/crates/swc/tests/tsc-references/multipleExportDefault4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleExportDefault4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/multipleExportDefault5_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleExportDefault5_es5.1.normal.js index ce172cf3934f..dac80b434125 100644 --- a/crates/swc/tests/tsc-references/multipleExportDefault5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleExportDefault5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export default function bar() {}; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/multipleExportDefault5_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleExportDefault5_es5.2.minified.js index 26983fc115db..9e6af4072766 100644 --- a/crates/swc/tests/tsc-references/multipleExportDefault5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleExportDefault5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export default function bar() {}; var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/multipleNumericIndexers_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleNumericIndexers_es5.1.normal.js index d1954276e6f8..086c3573282f 100644 --- a/crates/swc/tests/tsc-references/multipleNumericIndexers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleNumericIndexers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Multiple indexers of the same type are an error var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/multipleNumericIndexers_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleNumericIndexers_es5.2.minified.js index 1519bdba7147..de6b34f7edfe 100644 --- a/crates/swc/tests/tsc-references/multipleNumericIndexers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleNumericIndexers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/multipleStringIndexers_es5.1.normal.js b/crates/swc/tests/tsc-references/multipleStringIndexers_es5.1.normal.js index 97dd5a62feb2..ef535091573a 100644 --- a/crates/swc/tests/tsc-references/multipleStringIndexers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/multipleStringIndexers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Multiple indexers of the same type are an error var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/multipleStringIndexers_es5.2.minified.js b/crates/swc/tests/tsc-references/multipleStringIndexers_es5.2.minified.js index 1519bdba7147..de6b34f7edfe 100644 --- a/crates/swc/tests/tsc-references/multipleStringIndexers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/multipleStringIndexers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/nameCollision_es5.1.normal.js b/crates/swc/tests/tsc-references/nameCollision_es5.1.normal.js index f0dc3f658f2b..71709fa5067b 100644 --- a/crates/swc/tests/tsc-references/nameCollision_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nameCollision_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A; (function(A) { // these 2 statements force an underscore before the 'A' diff --git a/crates/swc/tests/tsc-references/nameCollision_es5.2.minified.js b/crates/swc/tests/tsc-references/nameCollision_es5.2.minified.js index 0bf0e5102acd..0c0aecb9331d 100644 --- a/crates/swc/tests/tsc-references/nameCollision_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nameCollision_es5.2.minified.js @@ -1,5 +1,5 @@ var A, B, X, Y, D; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; A || (A = {}), B || (B = {}), function(B) { var B1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/namedTupleMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/namedTupleMembers_es5.1.normal.js index 098fce11ac84..41eff6ac119f 100644 --- a/crates/swc/tests/tsc-references/namedTupleMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/namedTupleMembers_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; a = b; a = c; a = d; diff --git a/crates/swc/tests/tsc-references/namedTupleMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/namedTupleMembers_es5.2.minified.js index 5136cc853639..8415801a98f9 100644 --- a/crates/swc/tests/tsc-references/namedTupleMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/namedTupleMembers_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; 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() { diff --git a/crates/swc/tests/tsc-references/namespaceImportTypeQuery_es5.1.normal.js b/crates/swc/tests/tsc-references/namespaceImportTypeQuery_es5.1.normal.js index 15d93bf10de5..d9f90afbab9e 100644 --- a/crates/swc/tests/tsc-references/namespaceImportTypeQuery_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/namespaceImportTypeQuery_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /a.ts var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/namespaceImportTypeQuery_es5.2.minified.js b/crates/swc/tests/tsc-references/namespaceImportTypeQuery_es5.2.minified.js index 03b9f62fee68..4b246476ca02 100644 --- a/crates/swc/tests/tsc-references/namespaceImportTypeQuery_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/namespaceImportTypeQuery_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A, B, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/namespaceMemberAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/namespaceMemberAccess_es5.1.normal.js index 4030c4e5fce8..657c748483ef 100644 --- a/crates/swc/tests/tsc-references/namespaceMemberAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/namespaceMemberAccess_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /b.ts import * as types from "./a"; // @Filename: /a.ts diff --git a/crates/swc/tests/tsc-references/namespaceMemberAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/namespaceMemberAccess_es5.2.minified.js index 240d56cc4bb0..e35063a85224 100644 --- a/crates/swc/tests/tsc-references/namespaceMemberAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/namespaceMemberAccess_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import * as types from "./a"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause_es5.1.normal.js b/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause_es5.1.normal.js index b30309d22f8d..1a8eccd4b3b4 100644 --- a/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; function tryCatch() { try { // do stuff... diff --git a/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause_es5.2.minified.js b/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause_es5.2.minified.js index e0cc7ad9340e..98320b705688 100644 --- a/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/narrowExceptionVariableInCatchClause_es5.2.minified.js @@ -1 +1 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; diff --git a/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof_es5.1.normal.js b/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof_es5.1.normal.js index d038bca979a4..970c7645a939 100644 --- a/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; if (_instanceof(x, Function)) { x(); x(1, 2, 3); diff --git a/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof_es5.2.minified.js b/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof_es5.2.minified.js index 1dbf337ae159..c9bc268e926a 100644 --- a/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/narrowFromAnyWithInstanceof_es5.2.minified.js @@ -1,2 +1,2 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _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_es5.1.normal.js b/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable_es5.1.normal.js index cc979e58b631..0e7011018d9d 100644 --- a/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @strict: true // Repro from #20138 var C = function C() { diff --git a/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable_es5.2.minified.js b/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable_es5.2.minified.js index 3b9c063faae1..f9e38990ee7d 100644 --- a/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/narrowingConstrainedTypeVariable_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01_es5.1.normal.js b/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01_es5.1.normal.js index d32d01291a64..94217fd6ff9d 100644 --- a/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var A = function A(a) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01_es5.2.minified.js b/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01_es5.2.minified.js index f400f95f1a46..66899aa7d31b 100644 --- a/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/narrowingGenericTypeFromInstanceof01_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var A = function(a) { "use strict"; _class_call_check(this, A), this.a = a; diff --git a/crates/swc/tests/tsc-references/negateOperatorWithAnyOtherType_es5.1.normal.js b/crates/swc/tests/tsc-references/negateOperatorWithAnyOtherType_es5.1.normal.js index 8b93855def55..3b5bce13d1b0 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithAnyOtherType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithAnyOtherType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // - operator on any type var ANY; var ANY1; diff --git a/crates/swc/tests/tsc-references/negateOperatorWithAnyOtherType_es5.2.minified.js b/crates/swc/tests/tsc-references/negateOperatorWithAnyOtherType_es5.2.minified.js index 897c4783097e..bab07260d1cd 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithAnyOtherType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithAnyOtherType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/negateOperatorWithBooleanType_es5.1.normal.js b/crates/swc/tests/tsc-references/negateOperatorWithBooleanType_es5.1.normal.js index 4b6a93796f8a..cc40857dd88b 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithBooleanType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithBooleanType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // - operator on boolean type var BOOLEAN; function foo() { diff --git a/crates/swc/tests/tsc-references/negateOperatorWithBooleanType_es5.2.minified.js b/crates/swc/tests/tsc-references/negateOperatorWithBooleanType_es5.2.minified.js index c1665cd766f5..a044cc27fffd 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithBooleanType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithBooleanType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/negateOperatorWithNumberType_es5.1.normal.js b/crates/swc/tests/tsc-references/negateOperatorWithNumberType_es5.1.normal.js index e42d9892c418..d85a959a3ff6 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithNumberType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithNumberType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // - operator on number type var NUMBER; var NUMBER1 = [ diff --git a/crates/swc/tests/tsc-references/negateOperatorWithNumberType_es5.2.minified.js b/crates/swc/tests/tsc-references/negateOperatorWithNumberType_es5.2.minified.js index 76ced0f24da3..542dc6191dd4 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithNumberType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithNumberType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/negateOperatorWithStringType_es5.1.normal.js b/crates/swc/tests/tsc-references/negateOperatorWithStringType_es5.1.normal.js index d7400a7de988..314564e6baaa 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithStringType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithStringType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // - operator on string type var STRING; var STRING1 = [ diff --git a/crates/swc/tests/tsc-references/negateOperatorWithStringType_es5.2.minified.js b/crates/swc/tests/tsc-references/negateOperatorWithStringType_es5.2.minified.js index f26d2d23ea3e..9ba6eadb5677 100644 --- a/crates/swc/tests/tsc-references/negateOperatorWithStringType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/negateOperatorWithStringType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/nestedNamespace_es5.1.normal.js b/crates/swc/tests/tsc-references/nestedNamespace_es5.1.normal.js index 95300087f92c..164428822a5a 100644 --- a/crates/swc/tests/tsc-references/nestedNamespace_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nestedNamespace_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: a.ts export var types; (function(types1) { diff --git a/crates/swc/tests/tsc-references/nestedNamespace_es5.2.minified.js b/crates/swc/tests/tsc-references/nestedNamespace_es5.2.minified.js index 1eb0183afad9..86604cb51332 100644 --- a/crates/swc/tests/tsc-references/nestedNamespace_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nestedNamespace_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var types; !function(types1) { var A = function() { diff --git a/crates/swc/tests/tsc-references/neverReturningFunctions1_es5.1.normal.js b/crates/swc/tests/tsc-references/neverReturningFunctions1_es5.1.normal.js index 1d7c85bcccc0..de9f9686c3c3 100644 --- a/crates/swc/tests/tsc-references/neverReturningFunctions1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/neverReturningFunctions1_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @strict: true // @allowUnreachableCode: false // @declaration: true diff --git a/crates/swc/tests/tsc-references/neverReturningFunctions1_es5.2.minified.js b/crates/swc/tests/tsc-references/neverReturningFunctions1_es5.2.minified.js index 31e4d9e81f8c..4dc724f7ff43 100644 --- a/crates/swc/tests/tsc-references/neverReturningFunctions1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/neverReturningFunctions1_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Test = function() { "use strict"; function Test() { diff --git a/crates/swc/tests/tsc-references/neverType_es5.1.normal.js b/crates/swc/tests/tsc-references/neverType_es5.1.normal.js index ed044f43892b..f94bab4e6d56 100644 --- a/crates/swc/tests/tsc-references/neverType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/neverType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strictNullChecks: true // @declaration: true function error(message) { diff --git a/crates/swc/tests/tsc-references/neverType_es5.2.minified.js b/crates/swc/tests/tsc-references/neverType_es5.2.minified.js index 7ee9e22e25f8..0d2fe6401966 100644 --- a/crates/swc/tests/tsc-references/neverType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/neverType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function error(message) { throw Error(message); } diff --git a/crates/swc/tests/tsc-references/newOperatorConformance_es5.1.normal.js b/crates/swc/tests/tsc-references/newOperatorConformance_es5.1.normal.js index edaca5ceb542..ddd5af316623 100644 --- a/crates/swc/tests/tsc-references/newOperatorConformance_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/newOperatorConformance_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C0 = function C0() { "use strict"; _class_call_check(this, C0); diff --git a/crates/swc/tests/tsc-references/newOperatorConformance_es5.2.minified.js b/crates/swc/tests/tsc-references/newOperatorConformance_es5.2.minified.js index b9b46ea03f52..3d01c0914e5d 100644 --- a/crates/swc/tests/tsc-references/newOperatorConformance_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/newOperatorConformance_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var anyCtor, anyCtor1, nestedCtor, C0 = function() { "use strict"; _class_call_check(this, C0); diff --git a/crates/swc/tests/tsc-references/newTarget.es5_es5.1.normal.js b/crates/swc/tests/tsc-references/newTarget.es5_es5.1.normal.js index 4508b68f0037..0e7724d77237 100644 --- a/crates/swc/tests/tsc-references/newTarget.es5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/newTarget.es5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es5 var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/newTarget.es5_es5.2.minified.js b/crates/swc/tests/tsc-references/newTarget.es5_es5.2.minified.js index 55025788d045..fac45f51bf32 100644 --- a/crates/swc/tests/tsc-references/newTarget.es5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/newTarget.es5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var A = function() { "use strict"; _instanceof(this, A) && this.constructor, _class_call_check(this, A), this.d = function _target() { diff --git a/crates/swc/tests/tsc-references/newTarget.es6_es5.1.normal.js b/crates/swc/tests/tsc-references/newTarget.es6_es5.1.normal.js index 4f165f8d87d4..8d9e4c9ba587 100644 --- a/crates/swc/tests/tsc-references/newTarget.es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/newTarget.es6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es6 var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/newTarget.es6_es5.2.minified.js b/crates/swc/tests/tsc-references/newTarget.es6_es5.2.minified.js index 55025788d045..fac45f51bf32 100644 --- a/crates/swc/tests/tsc-references/newTarget.es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/newTarget.es6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var A = function() { "use strict"; _instanceof(this, A) && this.constructor, _class_call_check(this, A), this.d = function _target() { diff --git a/crates/swc/tests/tsc-references/newTargetNarrowing_es5.1.normal.js b/crates/swc/tests/tsc-references/newTargetNarrowing_es5.1.normal.js index 38fca2a5721d..26977b0e6ac1 100644 --- a/crates/swc/tests/tsc-references/newTargetNarrowing_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/newTargetNarrowing_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @target: es6 // @strict: true function foo(x) {} diff --git a/crates/swc/tests/tsc-references/newTargetNarrowing_es5.2.minified.js b/crates/swc/tests/tsc-references/newTargetNarrowing_es5.2.minified.js index 0453c6c7cf92..cd059aaed0d6 100644 --- a/crates/swc/tests/tsc-references/newTargetNarrowing_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/newTargetNarrowing_es5.2.minified.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; function f() { !0 === (_instanceof(this, f) ? this.constructor : void 0).marked && (_instanceof(this, f) ? this.constructor : void 0).marked; } diff --git a/crates/swc/tests/tsc-references/newWithSpreadES5_es5.1.normal.js b/crates/swc/tests/tsc-references/newWithSpreadES5_es5.1.normal.js index 780384ad73b2..a4a2653692e1 100644 --- a/crates/swc/tests/tsc-references/newWithSpreadES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/newWithSpreadES5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; //@target: ES5 function f(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/newWithSpreadES5_es5.2.minified.js b/crates/swc/tests/tsc-references/newWithSpreadES5_es5.2.minified.js index 8f8d9ad4c67f..43537e325a5f 100644 --- a/crates/swc/tests/tsc-references/newWithSpreadES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/newWithSpreadES5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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/newWithSpreadES6_es5.1.normal.js b/crates/swc/tests/tsc-references/newWithSpreadES6_es5.1.normal.js index 184bff54b748..ce9872dc60a9 100644 --- a/crates/swc/tests/tsc-references/newWithSpreadES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/newWithSpreadES6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; //@target: ES6 function f(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/newWithSpreadES6_es5.2.minified.js b/crates/swc/tests/tsc-references/newWithSpreadES6_es5.2.minified.js index 8f8d9ad4c67f..43537e325a5f 100644 --- a/crates/swc/tests/tsc-references/newWithSpreadES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/newWithSpreadES6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/newWithSpread_es5.1.normal.js index 257f03bf33db..a065896271d6 100644 --- a/crates/swc/tests/tsc-references/newWithSpread_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/newWithSpread_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/newWithSpread_es5.2.minified.js index 8f8d9ad4c67f..43537e325a5f 100644 --- a/crates/swc/tests/tsc-references/newWithSpread_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/newWithSpread_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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"; 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/noUncheckedIndexedAccessDestructuring_es2015.1.normal.js b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es2015.1.normal.js index df948a91b1ab..afb1eced4666 100644 --- a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // Declaration forms for array destructuring // Destructuring from a simple array -> include undefined const [s1] = strArray; diff --git a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es2015.2.minified.js b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es2015.2.minified.js index a0b67a0c14c3..011ededb7d4c 100644 --- a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; let [s1] = strArray; s1.toString(); let [...s2] = strArray; diff --git a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es5.1.normal.js b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es5.1.normal.js index 41dd5d39b570..e96a376e997f 100644 --- a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es5.1.normal.js @@ -1,7 +1,7 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _extends from "@swc/helpers/src/_extends.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"; // 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_es5.2.minified.js b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es5.2.minified.js index 4e63d9a20255..99c9d117e2f4 100644 --- a/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/noUncheckedIndexedAccessDestructuring_es5.2.minified.js @@ -1,7 +1,7 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _extends from "@swc/helpers/src/_extends.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"; _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({}, strMap).z.toString(); var ref, x = numMapPoint.x, y = numMapPoint.y, z = numMapPoint.z; x.toFixed(), y.toFixed(), z.toFixed(); diff --git a/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments_es5.1.normal.js b/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments_es5.1.normal.js index 6d6321c6c1eb..0880f3032c4a 100644 --- a/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Check that errors are reported for non-generic types with type arguments var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments_es5.2.minified.js b/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments_es5.2.minified.js index 9ca1fc76255b..73cf1e7ebe2e 100644 --- a/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nonGenericTypeReferenceWithTypeArguments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/nonInstantiatedModule_es5.1.normal.js b/crates/swc/tests/tsc-references/nonInstantiatedModule_es5.1.normal.js index 6dcb55a28a9e..ac37c69a6696 100644 --- a/crates/swc/tests/tsc-references/nonInstantiatedModule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nonInstantiatedModule_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M; (function(M1) { var a = M1.a = 1; diff --git a/crates/swc/tests/tsc-references/nonInstantiatedModule_es5.2.minified.js b/crates/swc/tests/tsc-references/nonInstantiatedModule_es5.2.minified.js index 24b5dae13070..202d9e06c627 100644 --- a/crates/swc/tests/tsc-references/nonInstantiatedModule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nonInstantiatedModule_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (M || (M = {})).a = 1; var M, M2, M3, m = M; M.a, m.a, function(M21) { diff --git a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es2015.1.normal.js b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es2015.1.normal.js index 5ee443fe47ac..0fe8c63bd4d1 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var a; a.toString(); a.nonExist(); // error diff --git a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es2015.2.minified.js b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es2015.2.minified.js index dbb4f942873e..f916bacb4588 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; a.toString(), a.nonExist(); var a, { destructuring } = a; _extends({}, a); diff --git a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es5.1.normal.js index f9c0c5da1df3..200832b9e817 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var a; a.toString(); a.nonExist(); // error diff --git a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es5.2.minified.js index 01dcfb57b12c..e61034014bfc 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveAccessProperty_es5.2.minified.js @@ -1,3 +1,3 @@ var a; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; a.toString(), a.nonExist(), a.destructuring, _extends({}, a); diff --git a/crates/swc/tests/tsc-references/nonPrimitiveNarrow_es5.1.normal.js b/crates/swc/tests/tsc-references/nonPrimitiveNarrow_es5.1.normal.js index 6ac356d6b878..dfe792f3b81e 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveNarrow_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveNarrow_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var Narrow = function Narrow() { "use strict"; _class_call_check(this, Narrow); diff --git a/crates/swc/tests/tsc-references/nonPrimitiveNarrow_es5.2.minified.js b/crates/swc/tests/tsc-references/nonPrimitiveNarrow_es5.2.minified.js index bab2c3dd5ea8..9e738871c2fb 100644 --- a/crates/swc/tests/tsc-references/nonPrimitiveNarrow_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nonPrimitiveNarrow_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var a, b, Narrow = function() { "use strict"; _class_call_check(this, Narrow); diff --git a/crates/swc/tests/tsc-references/nullAssignableToEveryType_es5.1.normal.js b/crates/swc/tests/tsc-references/nullAssignableToEveryType_es5.1.normal.js index 8f3b3f0d81e8..922026d96125 100644 --- a/crates/swc/tests/tsc-references/nullAssignableToEveryType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nullAssignableToEveryType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/nullAssignableToEveryType_es5.2.minified.js b/crates/swc/tests/tsc-references/nullAssignableToEveryType_es5.2.minified.js index a0d5a90d7c15..7fcb8e9fbfe5 100644 --- a/crates/swc/tests/tsc-references/nullAssignableToEveryType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nullAssignableToEveryType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined_es5.1.normal.js b/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined_es5.1.normal.js index b5379eeb84f5..aba29340ffc7 100644 --- a/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // null is a subtype of any other types except undefined var r0 = true ? null : null; var r0 = true ? null : null; diff --git a/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined_es5.2.minified.js b/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined_es5.2.minified.js index b10d94540689..56e65ea184d9 100644 --- a/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nullIsSubtypeOfEverythingButUndefined_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es2015.1.normal.js b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es2015.1.normal.js index 1f03a782ebf8..aa76a586f97e 100644 --- a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; function f(a) { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es2015.2.minified.js b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es2015.2.minified.js index 4f81e00e89e4..b5a43c01d311 100644 --- a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es2015.2.minified.js @@ -1 +1 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es5.1.normal.js b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es5.1.normal.js index 77f5715a1645..bdbfe40ff833 100644 --- a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es5.1.normal.js @@ -1,4 +1,4 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f(a) { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es5.2.minified.js b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es5.2.minified.js index bfbb5e05e520..6d3ee447e766 100644 --- a/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/nullishCoalescingOperatorInAsyncGenerator_es5.2.minified.js @@ -1,2 +1,2 @@ -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2_es5.1.normal.js b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2_es5.1.normal.js index 0f9c2668358e..be1941844ad4 100644 --- a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // String indexer providing a constraint of a user defined type var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2_es5.2.minified.js b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2_es5.2.minified.js index cf95aaad561c..b8e83b09a500 100644 --- a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations_es5.1.normal.js b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations_es5.1.normal.js index 06e10549e2c3..a0147cdc5163 100644 --- a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations_es5.2.minified.js b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations_es5.2.minified.js index 007306ad4fda..a1ed5bf03c78 100644 --- a/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/numericIndexerConstrainsPropertyDeclarations_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/numericIndexingResults_es5.1.normal.js b/crates/swc/tests/tsc-references/numericIndexingResults_es5.1.normal.js index f3ce93c1a69d..64feb3e9481f 100644 --- a/crates/swc/tests/tsc-references/numericIndexingResults_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/numericIndexingResults_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/numericIndexingResults_es5.2.minified.js b/crates/swc/tests/tsc-references/numericIndexingResults_es5.2.minified.js index 64923cdf45e5..146c306ce55f 100644 --- a/crates/swc/tests/tsc-references/numericIndexingResults_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/numericIndexingResults_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, i, a, C = function() { "use strict"; _class_call_check(this, C), this[1] = "", this["2"] = ""; diff --git a/crates/swc/tests/tsc-references/numericStringNamedPropertyEquivalence_es5.1.normal.js b/crates/swc/tests/tsc-references/numericStringNamedPropertyEquivalence_es5.1.normal.js index 4fbdd4b67506..c17773422e20 100644 --- a/crates/swc/tests/tsc-references/numericStringNamedPropertyEquivalence_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/numericStringNamedPropertyEquivalence_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Each of these types has an error in it. // String named and numeric named properties conflict if they would be equivalent after ToNumber on the property name. var C = function C() { diff --git a/crates/swc/tests/tsc-references/numericStringNamedPropertyEquivalence_es5.2.minified.js b/crates/swc/tests/tsc-references/numericStringNamedPropertyEquivalence_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/numericStringNamedPropertyEquivalence_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/numericStringNamedPropertyEquivalence_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectLiteralNormalization_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectLiteralNormalization_es2015.1.normal.js index 9f6e406fa091..0073b7915663 100644 --- a/crates/swc/tests/tsc-references/objectLiteralNormalization_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectLiteralNormalization_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; // @strict: true // @declaration: true // Object literals in unions are normalized upon widening diff --git a/crates/swc/tests/tsc-references/objectLiteralNormalization_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectLiteralNormalization_es2015.2.minified.js index 079cd4552f4f..f92c44bcb575 100644 --- a/crates/swc/tests/tsc-references/objectLiteralNormalization_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectLiteralNormalization_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; let a1 = { a: 0 }; diff --git a/crates/swc/tests/tsc-references/objectLiteralNormalization_es5.1.normal.js b/crates/swc/tests/tsc-references/objectLiteralNormalization_es5.1.normal.js index 63f4aa6c578e..d8c66cc1e3a1 100644 --- a/crates/swc/tests/tsc-references/objectLiteralNormalization_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectLiteralNormalization_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; // @strict: true // @declaration: true // Object literals in unions are normalized upon widening diff --git a/crates/swc/tests/tsc-references/objectLiteralNormalization_es5.2.minified.js b/crates/swc/tests/tsc-references/objectLiteralNormalization_es5.2.minified.js index 25b186198bdd..55a4fd4155f1 100644 --- a/crates/swc/tests/tsc-references/objectLiteralNormalization_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectLiteralNormalization_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; var a1 = { a: 0 }; diff --git a/crates/swc/tests/tsc-references/objectRest2_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectRest2_es2015.1.normal.js index 80b14a81fde0..dd1ed88c1d67 100644 --- a/crates/swc/tests/tsc-references/objectRest2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRest2_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; function rootConnection(name) { return { resolve: function() { diff --git a/crates/swc/tests/tsc-references/objectRest2_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectRest2_es2015.2.minified.js index f5958f752f47..a7b98739c3d1 100644 --- a/crates/swc/tests/tsc-references/objectRest2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRest2_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; !function(name) { var _ref; return { diff --git a/crates/swc/tests/tsc-references/objectRest2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectRest2_es5.1.normal.js index 3ecd961b6c50..50c302a91940 100644 --- a/crates/swc/tests/tsc-references/objectRest2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRest2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; import regeneratorRuntime from "regenerator-runtime"; function rootConnection(name) { return { diff --git a/crates/swc/tests/tsc-references/objectRest2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectRest2_es5.2.minified.js index 2534f3d331cb..82260c264118 100644 --- a/crates/swc/tests/tsc-references/objectRest2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRest2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; import regeneratorRuntime from "regenerator-runtime"; !function(name) { var _ref; diff --git a/crates/swc/tests/tsc-references/objectRestAssignment_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectRestAssignment_es2015.1.normal.js index 2c7cf45aad94..1b720a645f71 100644 --- a/crates/swc/tests/tsc-references/objectRestAssignment_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestAssignment_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: es2015 let ka; let nested; diff --git a/crates/swc/tests/tsc-references/objectRestAssignment_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectRestAssignment_es2015.2.minified.js index 5cb42448cb79..0fd3d5db0f29 100644 --- a/crates/swc/tests/tsc-references/objectRestAssignment_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestAssignment_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; let ka, other; _object_without_properties((_complex = void 0).x, [ "ka" diff --git a/crates/swc/tests/tsc-references/objectRestAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/objectRestAssignment_es5.1.normal.js index 56e8da677e3d..893cfb8e9c3d 100644 --- a/crates/swc/tests/tsc-references/objectRestAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestAssignment_es5.1.normal.js @@ -1,7 +1,7 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _throw from "@swc/helpers/lib/_throw.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; // @target: es2015 var ka; var nested; diff --git a/crates/swc/tests/tsc-references/objectRestAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/objectRestAssignment_es5.2.minified.js index 09933208988a..5a60b07c3bf6 100644 --- a/crates/swc/tests/tsc-references/objectRestAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestAssignment_es5.2.minified.js @@ -1,7 +1,7 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _throw from "@swc/helpers/lib/_throw.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; +import _throw from "@swc/helpers/src/_throw.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; _object_without_properties((_complex = complex).x, [ "ka" ]), _object_without_properties(_complex, [ diff --git a/crates/swc/tests/tsc-references/objectRestCatchES5_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectRestCatchES5_es2015.1.normal.js index 034c3106c043..4ea901b195d8 100644 --- a/crates/swc/tests/tsc-references/objectRestCatchES5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestCatchES5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; let a = 1, b = 2; try {} catch (_param) { var { a: a1 } = _param, b1 = _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestCatchES5_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectRestCatchES5_es2015.2.minified.js index 105115452a15..feebd5ee14ce 100644 --- a/crates/swc/tests/tsc-references/objectRestCatchES5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestCatchES5_es2015.2.minified.js @@ -1 +1 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; diff --git a/crates/swc/tests/tsc-references/objectRestCatchES5_es5.1.normal.js b/crates/swc/tests/tsc-references/objectRestCatchES5_es5.1.normal.js index ae060d217113..80955e124339 100644 --- a/crates/swc/tests/tsc-references/objectRestCatchES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestCatchES5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/objectRestCatchES5_es5.2.minified.js index 105115452a15..feebd5ee14ce 100644 --- a/crates/swc/tests/tsc-references/objectRestCatchES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestCatchES5_es5.2.minified.js @@ -1 +1 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; diff --git a/crates/swc/tests/tsc-references/objectRestForOf_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectRestForOf_es2015.1.normal.js index 412af635edbb..9df9be5892ce 100644 --- a/crates/swc/tests/tsc-references/objectRestForOf_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestForOf_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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"; // @target: es2015 let array; for (let _ref of array){ diff --git a/crates/swc/tests/tsc-references/objectRestForOf_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectRestForOf_es2015.2.minified.js index 1afe59209e72..099d63f7d68b 100644 --- a/crates/swc/tests/tsc-references/objectRestForOf_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestForOf_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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"; let array; for (let _ref of array){ var __ref, { x } = _ref; diff --git a/crates/swc/tests/tsc-references/objectRestForOf_es5.1.normal.js b/crates/swc/tests/tsc-references/objectRestForOf_es5.1.normal.js index 1f5486aef34e..87bc5c24ce14 100644 --- a/crates/swc/tests/tsc-references/objectRestForOf_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestForOf_es5.1.normal.js @@ -1,6 +1,6 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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"; // @target: es2015 var array; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; diff --git a/crates/swc/tests/tsc-references/objectRestForOf_es5.2.minified.js b/crates/swc/tests/tsc-references/objectRestForOf_es5.2.minified.js index 1b1b48190ab4..c7a1c50ff7e7 100644 --- a/crates/swc/tests/tsc-references/objectRestForOf_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestForOf_es5.2.minified.js @@ -1,6 +1,6 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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"; var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0; try { for(var array, _step, _iterator = array[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0){ diff --git a/crates/swc/tests/tsc-references/objectRestParameterES5_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectRestParameterES5_es2015.1.normal.js index 36e144e501f7..39ede70e45e3 100644 --- a/crates/swc/tests/tsc-references/objectRestParameterES5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestParameterES5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: es5 function cloneAgain(_param) { var { a } = _param, clone = _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestParameterES5_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectRestParameterES5_es2015.2.minified.js index e489754b5a00..92e3c7f4703d 100644 --- a/crates/swc/tests/tsc-references/objectRestParameterES5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestParameterES5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; function foobar(_param = {}) { var { bar ={} } = _param; _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestParameterES5_es5.1.normal.js b/crates/swc/tests/tsc-references/objectRestParameterES5_es5.1.normal.js index de3625ea733c..bbb800b972a2 100644 --- a/crates/swc/tests/tsc-references/objectRestParameterES5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestParameterES5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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"; // @target: es5 function cloneAgain(_param) { var a = _param.a, clone = _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestParameterES5_es5.2.minified.js b/crates/swc/tests/tsc-references/objectRestParameterES5_es5.2.minified.js index 7a78e8a24c87..0ae932cb29c0 100644 --- a/crates/swc/tests/tsc-references/objectRestParameterES5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestParameterES5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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"; suddenly(function(_param) { return _param.x, _object_without_properties(_param, [ "x" diff --git a/crates/swc/tests/tsc-references/objectRestParameter_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectRestParameter_es2015.1.normal.js index cb5b0f0734ee..53d28c2091af 100644 --- a/crates/swc/tests/tsc-references/objectRestParameter_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestParameter_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: es2015 function cloneAgain(_param) { var { a } = _param, clone = _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestParameter_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectRestParameter_es2015.2.minified.js index e489754b5a00..92e3c7f4703d 100644 --- a/crates/swc/tests/tsc-references/objectRestParameter_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestParameter_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; function foobar(_param = {}) { var { bar ={} } = _param; _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestParameter_es5.1.normal.js b/crates/swc/tests/tsc-references/objectRestParameter_es5.1.normal.js index e15c67969bb4..ae3c6910d7e7 100644 --- a/crates/swc/tests/tsc-references/objectRestParameter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestParameter_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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"; // @target: es2015 function cloneAgain(_param) { var a = _param.a, clone = _object_without_properties(_param, [ diff --git a/crates/swc/tests/tsc-references/objectRestParameter_es5.2.minified.js b/crates/swc/tests/tsc-references/objectRestParameter_es5.2.minified.js index 7a78e8a24c87..0ae932cb29c0 100644 --- a/crates/swc/tests/tsc-references/objectRestParameter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestParameter_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +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"; suddenly(function(_param) { return _param.x, _object_without_properties(_param, [ "x" diff --git a/crates/swc/tests/tsc-references/objectRestReadonly_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectRestReadonly_es2015.1.normal.js index 043a8f88e787..df615667fa30 100644 --- a/crates/swc/tests/tsc-references/objectRestReadonly_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestReadonly_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; const obj = { foo: 'bar', baz: 'qux', diff --git a/crates/swc/tests/tsc-references/objectRestReadonly_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectRestReadonly_es2015.2.minified.js index fe1e32746fab..f7a825b46048 100644 --- a/crates/swc/tests/tsc-references/objectRestReadonly_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestReadonly_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; let obj = { foo: 'bar', baz: 'qux', diff --git a/crates/swc/tests/tsc-references/objectRestReadonly_es5.1.normal.js b/crates/swc/tests/tsc-references/objectRestReadonly_es5.1.normal.js index 0c332db9d496..4cf6421b965c 100644 --- a/crates/swc/tests/tsc-references/objectRestReadonly_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRestReadonly_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; var obj = { foo: "bar", baz: "qux", diff --git a/crates/swc/tests/tsc-references/objectRestReadonly_es5.2.minified.js b/crates/swc/tests/tsc-references/objectRestReadonly_es5.2.minified.js index ba7cfe839c12..2a628a591a29 100644 --- a/crates/swc/tests/tsc-references/objectRestReadonly_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRestReadonly_es5.2.minified.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; var obj = { foo: "bar", baz: "qux", diff --git a/crates/swc/tests/tsc-references/objectRest_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectRest_es2015.1.normal.js index 75189b0d2dcf..f653aead28b6 100644 --- a/crates/swc/tests/tsc-references/objectRest_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRest_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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"; // @target: es2015 var o = { a: 1, diff --git a/crates/swc/tests/tsc-references/objectRest_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectRest_es2015.2.minified.js index bf75310db103..bacb8d0bbc4d 100644 --- a/crates/swc/tests/tsc-references/objectRest_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRest_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _extends from "@swc/helpers/src/_extends.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"; var _complex, _tmp, _o, o = { a: 1, b: 'no' diff --git a/crates/swc/tests/tsc-references/objectRest_es5.1.normal.js b/crates/swc/tests/tsc-references/objectRest_es5.1.normal.js index 7d164e5e0072..a75a429030d5 100644 --- a/crates/swc/tests/tsc-references/objectRest_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectRest_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; +import _extends from "@swc/helpers/src/_extends.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"; // @target: es2015 var o = { a: 1, diff --git a/crates/swc/tests/tsc-references/objectRest_es5.2.minified.js b/crates/swc/tests/tsc-references/objectRest_es5.2.minified.js index 87c1e1e36e54..65967164d41e 100644 --- a/crates/swc/tests/tsc-references/objectRest_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectRest_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; -import _to_property_key from "@swc/helpers/lib/_to_property_key.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; +import _extends from "@swc/helpers/src/_extends.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"; var nestedrest, complex, _complex, ref, _tmp, _o, ref1, o = { a: 1, b: "no" diff --git a/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es2015.1.normal.js index c183e0e1c387..085d66f499f8 100644 --- a/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; // fixes #12200 function f() { let n = 12; diff --git a/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es2015.2.minified.js index 6907981aa861..6879f1c126ab 100644 --- a/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; diff --git a/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es5.1.normal.js index cccea32b43b5..2c5d3ce0166f 100644 --- a/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es5.1.normal.js @@ -1,6 +1,6 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +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"; // fixes #12200 function f() { var n = 12; diff --git a/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es5.2.minified.js index 57febceeff84..e3d4a47a7b23 100644 --- a/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadComputedProperty_es5.2.minified.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +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"; diff --git a/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es2015.1.normal.js index ab9086b3a41c..07cfa7de8967 100644 --- a/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; let i = _object_spread_props(_object_spread({}, indexed1), { b: 11 }); diff --git a/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es2015.2.minified.js index 1c0c1c618174..ab3fd9deb8d0 100644 --- a/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread_props(_object_spread({}, indexed1), { b: 11 })[101], _object_spread({}, indexed1, indexed2)[1001], indexed3 = _object_spread({}, b ? indexed3 : void 0); diff --git a/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es5.1.normal.js index 1b731a73270b..b98f4b5e57ca 100644 --- a/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; var i = _object_spread_props(_object_spread({}, indexed1), { b: 11 }); diff --git a/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es5.2.minified.js index 1c0c1c618174..ab3fd9deb8d0 100644 --- a/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadIndexSignature_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread_props(_object_spread({}, indexed1), { b: 11 })[101], _object_spread({}, indexed1, indexed2)[1001], indexed3 = _object_spread({}, b ? indexed3 : void 0); diff --git a/crates/swc/tests/tsc-references/objectSpreadNegative_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadNegative_es2015.1.normal.js index 218793f1d419..6184af648951 100644 --- a/crates/swc/tests/tsc-references/objectSpreadNegative_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadNegative_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; // @target: es5 // @strictNullChecks: true let o = { diff --git a/crates/swc/tests/tsc-references/objectSpreadNegative_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadNegative_es2015.2.minified.js index 9f9fac717749..800d185cf84a 100644 --- a/crates/swc/tests/tsc-references/objectSpreadNegative_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadNegative_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; let o = { a: 1, b: 'no' diff --git a/crates/swc/tests/tsc-references/objectSpreadNegative_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadNegative_es5.1.normal.js index 7c81d506ed7e..f5a8b7a0c4e1 100644 --- a/crates/swc/tests/tsc-references/objectSpreadNegative_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadNegative_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +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"; // @target: es5 // @strictNullChecks: true var o = { diff --git a/crates/swc/tests/tsc-references/objectSpreadNegative_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadNegative_es5.2.minified.js index d552f623052f..9b17493ff50c 100644 --- a/crates/swc/tests/tsc-references/objectSpreadNegative_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadNegative_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +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"; var _obj, o = { a: 1, b: "no" diff --git a/crates/swc/tests/tsc-references/objectSpreadNoTransform_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadNoTransform_es2015.1.normal.js index cf94eaaed0d9..c9936489f07a 100644 --- a/crates/swc/tests/tsc-references/objectSpreadNoTransform_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadNoTransform_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: esnext const y = { a: 'yes', diff --git a/crates/swc/tests/tsc-references/objectSpreadNoTransform_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadNoTransform_es2015.2.minified.js index 44ab758fd3e6..4394d6763e1d 100644 --- a/crates/swc/tests/tsc-references/objectSpreadNoTransform_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadNoTransform_es2015.2.minified.js @@ -1,6 +1,6 @@ var b, _o; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; let o = _object_spread({ x: 1 }, { diff --git a/crates/swc/tests/tsc-references/objectSpreadNoTransform_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadNoTransform_es5.1.normal.js index b021821f57c3..12301e9db3a3 100644 --- a/crates/swc/tests/tsc-references/objectSpreadNoTransform_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadNoTransform_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: esnext var y = { a: "yes", diff --git a/crates/swc/tests/tsc-references/objectSpreadNoTransform_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadNoTransform_es5.2.minified.js index fba0e35da33d..4526c4f42422 100644 --- a/crates/swc/tests/tsc-references/objectSpreadNoTransform_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadNoTransform_es5.2.minified.js @@ -1,6 +1,6 @@ var _o; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; _object_without_properties(_o = _object_spread({ x: 1 }, { diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es2015.1.normal.js index fa630c446527..a3395d95c520 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @strict: true function f(cnd) { // Type is a union of 2^(n-1) members, where n is the number of spread objects diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es2015.2.minified.js index e8b11256d939..cd13e7501216 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es2015.2.minified.js @@ -1 +1 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es5.1.normal.js index fa630c446527..a3395d95c520 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @strict: true function f(cnd) { // Type is a union of 2^(n-1) members, where n is the number of spread objects diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es5.2.minified.js index e8b11256d939..cd13e7501216 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedComplexity_es5.2.minified.js @@ -1 +1 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es2015.1.normal.js index e38347518b96..c1ae0aeefcf2 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; function parseWithSpread(config) { return _object_spread({}, config.a !== undefined && { a: config.a.toString() diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es2015.2.minified.js index 3ff76744b98c..dca01f01e36f 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; !function(config) { return _object_spread({}, void 0 !== config.a && { a: config.a.toString() diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es5.1.normal.js index e38347518b96..c1ae0aeefcf2 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; function parseWithSpread(config) { return _object_spread({}, config.a !== undefined && { a: config.a.toString() diff --git a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es5.2.minified.js index 3ff76744b98c..dca01f01e36f 100644 --- a/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadRepeatedNullCheckPerf_es5.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; !function(config) { return _object_spread({}, void 0 !== config.a && { a: config.a.toString() diff --git a/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es2015.1.normal.js index bb3256676ade..aeaac1145439 100644 --- a/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @strict: true // @target: esnext const o1 = _object_spread({ diff --git a/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es2015.2.minified.js index 293d893f232d..4d32757d2e55 100644 --- a/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({ foo: 1 }, { diff --git a/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es5.1.normal.js index 478e8abc774d..5659215de3b4 100644 --- a/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @strict: true // @target: esnext var o1 = _object_spread({ diff --git a/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es5.2.minified.js index 293d893f232d..4d32757d2e55 100644 --- a/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadSetonlyAccessor_es5.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({ foo: 1 }, { diff --git a/crates/swc/tests/tsc-references/objectSpreadStrictNull_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadStrictNull_es2015.1.normal.js index c31d840b0573..df51289e3012 100644 --- a/crates/swc/tests/tsc-references/objectSpreadStrictNull_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadStrictNull_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; // @strictNullChecks: true function f(definiteBoolean, definiteString, optionalString, optionalNumber, undefinedString, undefinedNumber) { // optional diff --git a/crates/swc/tests/tsc-references/objectSpreadStrictNull_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadStrictNull_es2015.2.minified.js index 0f8e62c785b6..f6d2309a47cc 100644 --- a/crates/swc/tests/tsc-references/objectSpreadStrictNull_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadStrictNull_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread_props(_object_spread({}, { title: "The Matrix", yearReleased: 1999 diff --git a/crates/swc/tests/tsc-references/objectSpreadStrictNull_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpreadStrictNull_es5.1.normal.js index 449e37f4f507..f41b2cb8aabb 100644 --- a/crates/swc/tests/tsc-references/objectSpreadStrictNull_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpreadStrictNull_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; // @strictNullChecks: true function f(definiteBoolean, definiteString, optionalString, optionalNumber, undefinedString, undefinedNumber) { // optional diff --git a/crates/swc/tests/tsc-references/objectSpreadStrictNull_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpreadStrictNull_es5.2.minified.js index 0f8e62c785b6..f6d2309a47cc 100644 --- a/crates/swc/tests/tsc-references/objectSpreadStrictNull_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpreadStrictNull_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread_props(_object_spread({}, { title: "The Matrix", yearReleased: 1999 diff --git a/crates/swc/tests/tsc-references/objectSpread_es2015.1.normal.js b/crates/swc/tests/tsc-references/objectSpread_es2015.1.normal.js index 0c0a9ac10e84..9dd44d6d0bb4 100644 --- a/crates/swc/tests/tsc-references/objectSpread_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpread_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; // @strictNullChecks: true // @target: es5 let o = { diff --git a/crates/swc/tests/tsc-references/objectSpread_es2015.2.minified.js b/crates/swc/tests/tsc-references/objectSpread_es2015.2.minified.js index 1e915c9290dc..acbbed59d44d 100644 --- a/crates/swc/tests/tsc-references/objectSpread_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpread_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; let o = { a: 1, b: 'no' diff --git a/crates/swc/tests/tsc-references/objectSpread_es5.1.normal.js b/crates/swc/tests/tsc-references/objectSpread_es5.1.normal.js index de6bb0bb8e18..5542ee7a65c9 100644 --- a/crates/swc/tests/tsc-references/objectSpread_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectSpread_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +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"; // @strictNullChecks: true // @target: es5 var o = { diff --git a/crates/swc/tests/tsc-references/objectSpread_es5.2.minified.js b/crates/swc/tests/tsc-references/objectSpread_es5.2.minified.js index 4e97eb748c2c..e43fde608d13 100644 --- a/crates/swc/tests/tsc-references/objectSpread_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectSpread_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +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"; var anything, o = { a: 1, b: "no" diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject_es5.1.normal.js index 1fb31698aecc..d672c4140605 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @skipDefaultLibCheck: false var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject_es5.2.minified.js index 8b76ae6fe8da..9784447e3c24 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfExtendedObject_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var c, i, b, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2_es5.1.normal.js index 17cd6a3bd464..6742228e83de 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i; var o; o = i; // error diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2_es5.2.minified.js index c187a776a598..3c28c35265f0 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat_es5.1.normal.js index bb812b010688..759b5a565d44 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i; var o; o = i; // error diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat_es5.2.minified.js index 98a46940cb07..88f412116b15 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObjectAssignmentCompat_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject_es5.1.normal.js index 0d76b85420f9..f911cbf9e9b0 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // all of these valueOf calls should return the type shown in the overriding signatures here var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject_es5.2.minified.js index b4e2c98035bc..1683b8b70ae3 100644 --- a/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeHidingMembersOfObject_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, i, b, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/objectTypePropertyAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypePropertyAccess_es5.1.normal.js index 18a8a58c9c60..b1b8c7b3e37f 100644 --- a/crates/swc/tests/tsc-references/objectTypePropertyAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypePropertyAccess_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Index notation should resolve to the type of a declared property with that same name var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypePropertyAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypePropertyAccess_es5.2.minified.js index 9179ac4ac7bf..2c6ab6a38189 100644 --- a/crates/swc/tests/tsc-references/objectTypePropertyAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypePropertyAccess_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, i, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypeWithDuplicateNumericProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithDuplicateNumericProperty_es5.1.normal.js index d6199c7d0112..d065f10795aa 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithDuplicateNumericProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithDuplicateNumericProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // numeric properties must be distinct after a ToNumber operation // so the below are all errors var C = function C() { diff --git a/crates/swc/tests/tsc-references/objectTypeWithDuplicateNumericProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithDuplicateNumericProperty_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithDuplicateNumericProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithDuplicateNumericProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypeWithNumericProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithNumericProperty_es5.1.normal.js index c55ed8b4a2c6..01a1fab2b029 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithNumericProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithNumericProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // no errors here var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypeWithNumericProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithNumericProperty_es5.2.minified.js index 93b7be467f2c..45a0535eacec 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithNumericProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithNumericProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, i, a, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2_es5.1.normal.js index c49344b238e8..b5b55fac4640 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Basic recursive type var List = function List() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2_es5.2.minified.js index 9b6b56de4b4f..34f0637f9270 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var List = function() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally_es5.1.normal.js index fd59a39a6b8a..1cb886bf9d98 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Types with infinitely expanding recursive types are type checked nominally var List = function List() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally_es5.2.minified.js index 29df74e66e11..098712d5945d 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedPropertyCheckedNominally_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var List = function() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty_es5.1.normal.js index c49344b238e8..b5b55fac4640 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Basic recursive type var List = function List() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty_es5.2.minified.js index 9b6b56de4b4f..34f0637f9270 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithRecursiveWrappedProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var List = function() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer_es5.1.normal.js index e3be1be1df4b..3f93ce0623a7 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var o = {}; var r = o[""]; // should be Object var C = function C() { diff --git a/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer_es5.2.minified.js index a888bb485152..aaa960181a69 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithStringIndexerHidingObjectIndexer_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, o2, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters_es5.1.normal.js index b5545c72a206..febbb0b1a2fb 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters_es5.2.minified.js index 3fd38ecea776..4a6c2668b23e 100644 --- a/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypeWithStringNamedPropertyOfIllegalCharacters_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, i, a, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentity2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentity2_es5.1.normal.js index 466fac8abed0..307035f89be5 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentity2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentity2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentity2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentity2_es5.2.minified.js index f4292d10ab9a..51dc4aed68d4 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentity2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentity2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2_es5.1.normal.js index 2e17ca8595f9..b79a3a4a393f 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts_es5.1.normal.js index 3b407b70eb7c..aa0623e2c662 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts_es5.2.minified.js index a7489f46776e..da757e06b1f1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesDifferingParamCounts_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads_es5.1.normal.js index 2e17ca8595f9..b79a3a4a393f 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignaturesWithOverloads_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures_es5.1.normal.js index 2e17ca8595f9..b79a3a4a393f 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithCallSignatures_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2_es5.1.normal.js index 85009c4af96e..043381e38c99 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var B = function B(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2_es5.2.minified.js index 13d38c746bbe..10463380cad2 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x) { return _class_call_check(this, B), null; }, C = function(x) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts_es5.1.normal.js index 3fd8d904a09b..43cfc62b0c9f 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var B = function B(x, y) { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts_es5.2.minified.js index 5c57004a899d..c4929abd5dde 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignaturesDifferingParamCounts_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x, y) { return _class_call_check(this, B), null; }, C = function(x, y) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures_es5.1.normal.js index 0048d2d1dd53..fc5f8885e649 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = function A(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures_es5.2.minified.js index 2cf2fe65777f..c6c429a4de94 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithConstructSignatures_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function(x) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2_es5.1.normal.js index 7bba11c27ec4..3c5fb5e6cfe5 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2_es5.2.minified.js index a4f39c895ed4..bcaaeab1977a 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2_es5.1.normal.js index aa7f52a4c655..f91fa36564c3 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2_es5.2.minified.js index 0858f3495ead..1bc0bddf716e 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3_es5.1.normal.js index e24ccdaec73f..f1a3f7250060 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3_es5.2.minified.js index 7955ea9eac6a..ed745f0be888 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var One = function() { "use strict"; _class_call_check(this, One); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints_es5.1.normal.js index ecba10809d57..7c243c5ae5e1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2_es5.1.normal.js index 3731c1c677cb..73b71fcbdf43 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType_es5.1.normal.js index 3731c1c677cb..73b71fcbdf43 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingByReturnType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts_es5.1.normal.js index 7351f36143ea..408ba44eefa1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterCounts_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames_es5.1.normal.js index 7351f36143ea..408ba44eefa1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesDifferingTypeParameterNames_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2_es5.1.normal.js index 3d34295cfcba..e7c17d431869 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2_es5.2.minified.js index a4f39c895ed4..bcaaeab1977a 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3_es5.1.normal.js index 3d34295cfcba..e7c17d431869 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3_es5.2.minified.js index a4f39c895ed4..bcaaeab1977a 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams_es5.1.normal.js index 3d34295cfcba..e7c17d431869 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams_es5.2.minified.js index a4f39c895ed4..bcaaeab1977a 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignaturesOptionalParams_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures_es5.1.normal.js index 7351f36143ea..408ba44eefa1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures_es5.2.minified.js index 2aea62458f08..55634788e5a9 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericCallSignatures_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2_es5.1.normal.js index 6d760a0fac64..75830bb4ba4e 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2_es5.2.minified.js index 5cfbf22aa870..4db0819ebc92 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x, y) { return _class_call_check(this, B), null; }, C = function(x, y) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3_es5.1.normal.js index b43322c2fbcf..ee5b75c30374 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3_es5.2.minified.js index 3054dd58618a..d62e84497315 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var One = function() { "use strict"; _class_call_check(this, One); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints_es5.1.normal.js index 0fe2aace7972..919e7834add1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints_es5.2.minified.js index 13d38c746bbe..10463380cad2 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x) { return _class_call_check(this, B), null; }, C = function(x) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2_es5.1.normal.js index 0353a8780d85..27257326630d 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2_es5.2.minified.js index 13d38c746bbe..10463380cad2 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x) { return _class_call_check(this, B), null; }, C = function(x) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType_es5.1.normal.js index 7d8fcca92667..d5f295f0519f 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType_es5.2.minified.js index 13d38c746bbe..10463380cad2 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingByReturnType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x) { return _class_call_check(this, B), null; }, C = function(x) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts_es5.1.normal.js index 8d072693556f..8a5a605d46ea 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var B = function B(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts_es5.2.minified.js index 13d38c746bbe..10463380cad2 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterCounts_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x) { return _class_call_check(this, B), null; }, C = function(x) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames_es5.1.normal.js index 1139d6ebd021..80fab97cb7c8 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var B = function B(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames_es5.2.minified.js index 13d38c746bbe..10463380cad2 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesDifferingTypeParameterNames_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x) { return _class_call_check(this, B), null; }, C = function(x) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2_es5.1.normal.js index fce241e525d8..1f099c79c8d4 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2_es5.2.minified.js index 5c57004a899d..c4929abd5dde 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x, y) { return _class_call_check(this, B), null; }, C = function(x, y) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3_es5.1.normal.js index fce241e525d8..1f099c79c8d4 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3_es5.2.minified.js index 5c57004a899d..c4929abd5dde 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x, y) { return _class_call_check(this, B), null; }, C = function(x, y) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams_es5.1.normal.js index fce241e525d8..1f099c79c8d4 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams_es5.2.minified.js index 5c57004a899d..c4929abd5dde 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithGenericConstructSignaturesOptionalParams_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function(x, y) { return _class_call_check(this, B), null; }, C = function(x, y) { diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1_es5.1.normal.js index e8cff42b8ca9..555a37f693f0 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // object types are identical structurally var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1_es5.2.minified.js index ba8490152721..cf35e40dc5d4 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2_es5.1.normal.js index 0ee08dc5a42b..4772e6ae4741 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // object types are identical structurally var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2_es5.2.minified.js index 97abfc0e03ca..4b0f67c29610 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3_es5.1.normal.js index e8cff42b8ca9..555a37f693f0 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // object types are identical structurally var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3_es5.2.minified.js index ba8490152721..cf35e40dc5d4 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithNumericIndexers3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality_es5.1.normal.js index 2dfbb7f4e6e9..5f5cdc89e060 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality_es5.2.minified.js index 79feee14b0eb..ea3b7674d80c 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithOptionality_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2_es5.1.normal.js index 56314eb8eaf2..568d176fc66a 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // object types are identical structurally var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2_es5.2.minified.js index 7aefc844517c..bd0ddac4bdb0 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3_es5.1.normal.js index 386dc2c8c142..6ebe47e21117 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function C1() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3_es5.2.minified.js index 33d0078b96d4..710612ab54ce 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates_es5.1.normal.js index a24e50f820d6..8523f38f76f1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // object types are identical structurally var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates_es5.2.minified.js index ba8490152721..cf35e40dc5d4 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPrivates_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics_es5.1.normal.js index a1a42d9a0468..8f4985bb9b32 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics_es5.2.minified.js index 79feee14b0eb..ea3b7674d80c 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithPublics_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2_es5.1.normal.js index 647bd4fd4596..a521476c9fec 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // object types are identical structurally var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2_es5.2.minified.js index 97abfc0e03ca..4b0f67c29610 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers_es5.1.normal.js index a24e50f820d6..8523f38f76f1 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // object types are identical structurally var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers_es5.2.minified.js index ba8490152721..cf35e40dc5d4 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentityWithStringIndexers_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/objectTypesIdentity_es5.1.normal.js b/crates/swc/tests/tsc-references/objectTypesIdentity_es5.1.normal.js index a1a42d9a0468..8f4985bb9b32 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentity_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentity_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // object types are identical structurally var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/objectTypesIdentity_es5.2.minified.js b/crates/swc/tests/tsc-references/objectTypesIdentity_es5.2.minified.js index 79feee14b0eb..ea3b7674d80c 100644 --- a/crates/swc/tests/tsc-references/objectTypesIdentity_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/objectTypesIdentity_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/optionalBindingParameters1_es5.1.normal.js b/crates/swc/tests/tsc-references/optionalBindingParameters1_es5.1.normal.js index 211ff0fb12c4..2435860a2865 100644 --- a/crates/swc/tests/tsc-references/optionalBindingParameters1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/optionalBindingParameters1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/optionalBindingParameters1_es5.2.minified.js index 936f05110f8e..289a60db33cf 100644 --- a/crates/swc/tests/tsc-references/optionalBindingParameters1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/optionalBindingParameters1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; function foo(param) { var _param = _sliced_to_array(param, 3); _param[0], _param[1], _param[2]; diff --git a/crates/swc/tests/tsc-references/optionalChainingInTypeAssertions_es5.1.normal.js b/crates/swc/tests/tsc-references/optionalChainingInTypeAssertions_es5.1.normal.js index cbd479ff1897..819c851ae155 100644 --- a/crates/swc/tests/tsc-references/optionalChainingInTypeAssertions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/optionalChainingInTypeAssertions_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var ref, ref1, /*a1*/ ref2, /*b1*/ ref3; // @target: es2015, esnext var Foo = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/optionalChainingInTypeAssertions_es5.2.minified.js b/crates/swc/tests/tsc-references/optionalChainingInTypeAssertions_es5.2.minified.js index 6029d28d0686..7ef6636955cf 100644 --- a/crates/swc/tests/tsc-references/optionalChainingInTypeAssertions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/optionalChainingInTypeAssertions_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var ref, ref1, ref2, ref3, Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/optionalMethodDeclarations_es5.1.normal.js b/crates/swc/tests/tsc-references/optionalMethodDeclarations_es5.1.normal.js index 4fd794df27f7..33e2b1929e0b 100644 --- a/crates/swc/tests/tsc-references/optionalMethodDeclarations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/optionalMethodDeclarations_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext,es2016 // @noTypesAndSymbols: true // /~https://github.com/microsoft/TypeScript/issues/34952#issuecomment-552025027 diff --git a/crates/swc/tests/tsc-references/optionalMethodDeclarations_es5.2.minified.js b/crates/swc/tests/tsc-references/optionalMethodDeclarations_es5.2.minified.js index 497df234ec77..1cf224c60a98 100644 --- a/crates/swc/tests/tsc-references/optionalMethodDeclarations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/optionalMethodDeclarations_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/optionalMethod_es5.1.normal.js b/crates/swc/tests/tsc-references/optionalMethod_es5.1.normal.js index 26949ef52008..38196771e264 100644 --- a/crates/swc/tests/tsc-references/optionalMethod_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/optionalMethod_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext // @noTypesAndSymbols: true var Base = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/optionalMethod_es5.2.minified.js b/crates/swc/tests/tsc-references/optionalMethod_es5.2.minified.js index 549b9eb7da0e..413a92082bbd 100644 --- a/crates/swc/tests/tsc-references/optionalMethod_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/optionalMethod_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/optionalMethods_es5.1.normal.js b/crates/swc/tests/tsc-references/optionalMethods_es5.1.normal.js index 0acc50188da3..56083b747848 100644 --- a/crates/swc/tests/tsc-references/optionalMethods_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/optionalMethods_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; function test1(x) { x.a; x.b; diff --git a/crates/swc/tests/tsc-references/optionalMethods_es5.2.minified.js b/crates/swc/tests/tsc-references/optionalMethods_es5.2.minified.js index 217cbb75feb6..cbff44709585 100644 --- a/crates/swc/tests/tsc-references/optionalMethods_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/optionalMethods_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Bar = function() { "use strict"; function Bar(d) { diff --git a/crates/swc/tests/tsc-references/optionalProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/optionalProperty_es5.1.normal.js index 66890e142757..e919c02e6533 100644 --- a/crates/swc/tests/tsc-references/optionalProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/optionalProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext // @useDefineForClassFields: true // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/optionalProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/optionalProperty_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/optionalProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/optionalProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd_es5.1.normal.js b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd_es5.1.normal.js index 25ae634e493c..68e10ff7ae19 100644 --- a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES6 // @module: amd // @rootDir: tests/cases/conformance/es6/moduleExportsAmd/src diff --git a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd_es5.2.minified.js b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd_es5.2.minified.js index b2f0318ea467..bb6ed7a64e82 100644 --- a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesAmd_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import foo from "./b"; import Foo from "./a"; var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesSystem_es5.1.normal.js b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesSystem_es5.1.normal.js index 87216e9befda..950bba29389a 100644 --- a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesSystem_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesSystem_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: ES6 // @module: system // @rootDir: tests/cases/conformance/es6/moduleExportsSystem/src diff --git a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesSystem_es5.2.minified.js b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesSystem_es5.2.minified.js index b2f0318ea467..bb6ed7a64e82 100644 --- a/crates/swc/tests/tsc-references/outFilerootDirModuleNamesSystem_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/outFilerootDirModuleNamesSystem_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import foo from "./b"; import Foo from "./a"; var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/overloadResolutionClassConstructors_es5.1.normal.js b/crates/swc/tests/tsc-references/overloadResolutionClassConstructors_es5.1.normal.js index 87e3446b2be0..7fdd6767e580 100644 --- a/crates/swc/tests/tsc-references/overloadResolutionClassConstructors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/overloadResolutionClassConstructors_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var SomeBase = function SomeBase() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/overloadResolutionClassConstructors_es5.2.minified.js b/crates/swc/tests/tsc-references/overloadResolutionClassConstructors_es5.2.minified.js index a472387e02a5..b0e2cfd14add 100644 --- a/crates/swc/tests/tsc-references/overloadResolutionClassConstructors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/overloadResolutionClassConstructors_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var SomeBase = function() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/overloadResolutionConstructors_es5.1.normal.js b/crates/swc/tests/tsc-references/overloadResolutionConstructors_es5.1.normal.js index 7528b02b9e6a..0a270a7366fd 100644 --- a/crates/swc/tests/tsc-references/overloadResolutionConstructors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/overloadResolutionConstructors_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var SomeBase = function SomeBase() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/overloadResolutionConstructors_es5.2.minified.js b/crates/swc/tests/tsc-references/overloadResolutionConstructors_es5.2.minified.js index 570a2cbffba7..905b28f8c845 100644 --- a/crates/swc/tests/tsc-references/overloadResolutionConstructors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/overloadResolutionConstructors_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var fn1, fn2, fn3, fn4, fn5, SomeBase = function() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/overloadResolution_es5.1.normal.js b/crates/swc/tests/tsc-references/overloadResolution_es5.1.normal.js index 8d69715e03fe..c02593bf7cae 100644 --- a/crates/swc/tests/tsc-references/overloadResolution_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/overloadResolution_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var SomeBase = function SomeBase() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/overloadResolution_es5.2.minified.js b/crates/swc/tests/tsc-references/overloadResolution_es5.2.minified.js index f43dae02995b..725abbf7b291 100644 --- a/crates/swc/tests/tsc-references/overloadResolution_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/overloadResolution_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var SomeBase = function() { "use strict"; _class_call_check(this, SomeBase); diff --git a/crates/swc/tests/tsc-references/override10_es5.1.normal.js b/crates/swc/tests/tsc-references/override10_es5.1.normal.js index ce8fccdf82e6..cf9d6e92519f 100644 --- a/crates/swc/tests/tsc-references/override10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override10_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @declaration: true // @noImplicitOverride: true var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/override10_es5.2.minified.js b/crates/swc/tests/tsc-references/override10_es5.2.minified.js index eee4339b314f..3549a44d10d5 100644 --- a/crates/swc/tests/tsc-references/override10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override10_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/override12_es5.1.normal.js b/crates/swc/tests/tsc-references/override12_es5.1.normal.js index f39ce148ef0b..5b045e164d9f 100644 --- a/crates/swc/tests/tsc-references/override12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override12_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true // @target: es2015,esnext var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/override12_es5.2.minified.js b/crates/swc/tests/tsc-references/override12_es5.2.minified.js index f7fb00e1bbba..0612d04f0e44 100644 --- a/crates/swc/tests/tsc-references/override12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override12_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/override13_es5.1.normal.js b/crates/swc/tests/tsc-references/override13_es5.1.normal.js index 60619114104f..d34d102be206 100644 --- a/crates/swc/tests/tsc-references/override13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override13_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true // @target: esnext var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/override13_es5.2.minified.js b/crates/swc/tests/tsc-references/override13_es5.2.minified.js index c434ffecdc04..f0a2c9a3980e 100644 --- a/crates/swc/tests/tsc-references/override13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override13_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Foo = function() { "use strict"; _class_call_check(this, Foo), this.property = 1; diff --git a/crates/swc/tests/tsc-references/override14_es5.1.normal.js b/crates/swc/tests/tsc-references/override14_es5.1.normal.js index ebfb24ac70af..a5ce03320997 100644 --- a/crates/swc/tests/tsc-references/override14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override14_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true // @target: esnext var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/override14_es5.2.minified.js b/crates/swc/tests/tsc-references/override14_es5.2.minified.js index 6406ae3dec45..d1b52e5ea29b 100644 --- a/crates/swc/tests/tsc-references/override14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override14_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Foo = function() { "use strict"; _class_call_check(this, Foo), this.property = 1; diff --git a/crates/swc/tests/tsc-references/override15_es5.1.normal.js b/crates/swc/tests/tsc-references/override15_es5.1.normal.js index 14082cafecb4..a5fb1e8d27bd 100644 --- a/crates/swc/tests/tsc-references/override15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override15_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/override15_es5.2.minified.js b/crates/swc/tests/tsc-references/override15_es5.2.minified.js index fe5591b65bef..04d987deeefd 100644 --- a/crates/swc/tests/tsc-references/override15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override15_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/override16_es5.1.normal.js b/crates/swc/tests/tsc-references/override16_es5.1.normal.js index eb19b9e652a5..37c3286af1ae 100644 --- a/crates/swc/tests/tsc-references/override16_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override16_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: esnext,es2015 // @noImplicitOverride: true var A = function A() { diff --git a/crates/swc/tests/tsc-references/override16_es5.2.minified.js b/crates/swc/tests/tsc-references/override16_es5.2.minified.js index 8aa520444386..b5a6e9daff42 100644 --- a/crates/swc/tests/tsc-references/override16_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override16_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/override17_es5.1.normal.js b/crates/swc/tests/tsc-references/override17_es5.1.normal.js index e2148d9ae394..822ef606995e 100644 --- a/crates/swc/tests/tsc-references/override17_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override17_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true // @useDefineForClassFields: true // @target: es2015,esnext diff --git a/crates/swc/tests/tsc-references/override17_es5.2.minified.js b/crates/swc/tests/tsc-references/override17_es5.2.minified.js index f7fb00e1bbba..0612d04f0e44 100644 --- a/crates/swc/tests/tsc-references/override17_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override17_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/override18_es5.1.normal.js b/crates/swc/tests/tsc-references/override18_es5.1.normal.js index 666dd27b30e4..0dddb86d0701 100644 --- a/crates/swc/tests/tsc-references/override18_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override18_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: esnext,es2015 // @noImplicitOverride: true // @useDefineForClassFields: true diff --git a/crates/swc/tests/tsc-references/override18_es5.2.minified.js b/crates/swc/tests/tsc-references/override18_es5.2.minified.js index 8aa520444386..b5a6e9daff42 100644 --- a/crates/swc/tests/tsc-references/override18_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override18_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/override19_es5.1.normal.js b/crates/swc/tests/tsc-references/override19_es5.1.normal.js index 2471643fe076..0723256b0611 100644 --- a/crates/swc/tests/tsc-references/override19_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override19_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Context = function Context() { "use strict"; _class_call_check(this, Context); diff --git a/crates/swc/tests/tsc-references/override19_es5.2.minified.js b/crates/swc/tests/tsc-references/override19_es5.2.minified.js index 24a44764d99c..06b7a776d61d 100644 --- a/crates/swc/tests/tsc-references/override19_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override19_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Context = function() { "use strict"; _class_call_check(this, Context); diff --git a/crates/swc/tests/tsc-references/override20_es5.1.normal.js b/crates/swc/tests/tsc-references/override20_es5.1.normal.js index 4d1be7a65f64..d7bc3068adfa 100644 --- a/crates/swc/tests/tsc-references/override20_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override20_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: esnext // @noImplicitOverride: true var Foo = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/override20_es5.2.minified.js b/crates/swc/tests/tsc-references/override20_es5.2.minified.js index 8066369a55ef..3350a091116a 100644 --- a/crates/swc/tests/tsc-references/override20_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override20_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Foo = function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/override2_es5.1.normal.js b/crates/swc/tests/tsc-references/override2_es5.1.normal.js index 73cf4f6ebe48..eedfe7d7f0e3 100644 --- a/crates/swc/tests/tsc-references/override2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @declaration: true // @noImplicitOverride: true var AB = function AB() { diff --git a/crates/swc/tests/tsc-references/override2_es5.2.minified.js b/crates/swc/tests/tsc-references/override2_es5.2.minified.js index 5477d26fb749..552f0018d181 100644 --- a/crates/swc/tests/tsc-references/override2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var AB = function() { "use strict"; _class_call_check(this, AB); diff --git a/crates/swc/tests/tsc-references/override3_es5.1.normal.js b/crates/swc/tests/tsc-references/override3_es5.1.normal.js index cf75f009b0d0..0ee3a67f1773 100644 --- a/crates/swc/tests/tsc-references/override3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var DB = /*#__PURE__*/ function(B) { "use strict"; _inherits(DB, B); diff --git a/crates/swc/tests/tsc-references/override3_es5.2.minified.js b/crates/swc/tests/tsc-references/override3_es5.2.minified.js index fc2023e1dda9..664277651163 100644 --- a/crates/swc/tests/tsc-references/override3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var DB = function(B) { "use strict"; _inherits(DB, B); diff --git a/crates/swc/tests/tsc-references/override4_es5.1.normal.js b/crates/swc/tests/tsc-references/override4_es5.1.normal.js index 1ee7d234779a..daef79249aa0 100644 --- a/crates/swc/tests/tsc-references/override4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @declaration: true // @noImplicitOverride: true var B = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/override4_es5.2.minified.js b/crates/swc/tests/tsc-references/override4_es5.2.minified.js index 212a738227c3..65ad3ed16911 100644 --- a/crates/swc/tests/tsc-references/override4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/override6_es5.1.normal.js b/crates/swc/tests/tsc-references/override6_es5.1.normal.js index f992e1c9f33a..697bb56e885b 100644 --- a/crates/swc/tests/tsc-references/override6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @declaration: true // @noImplicitOverride: true var B = function B(foo, bar) { diff --git a/crates/swc/tests/tsc-references/override6_es5.2.minified.js b/crates/swc/tests/tsc-references/override6_es5.2.minified.js index 2d07c0c99b03..600a2aa0d59d 100644 --- a/crates/swc/tests/tsc-references/override6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function(foo, bar) { "use strict"; _class_call_check(this, B), this.foo = foo, this.bar = bar, this.baz = 1; diff --git a/crates/swc/tests/tsc-references/override8_es5.1.normal.js b/crates/swc/tests/tsc-references/override8_es5.1.normal.js index 46d76c547808..f172eaefa6b6 100644 --- a/crates/swc/tests/tsc-references/override8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override8_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @declaration: true // @noImplicitOverride: true var B = function B() { diff --git a/crates/swc/tests/tsc-references/override8_es5.2.minified.js b/crates/swc/tests/tsc-references/override8_es5.2.minified.js index d2fd61a32239..4e780bc1cb67 100644 --- a/crates/swc/tests/tsc-references/override8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override8_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/overrideInterfaceProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/overrideInterfaceProperty_es5.1.normal.js index 61d6c6553edc..eb5d82981163 100644 --- a/crates/swc/tests/tsc-references/overrideInterfaceProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/overrideInterfaceProperty_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Sizz = /*#__PURE__*/ function(Mup) { "use strict"; _inherits(Sizz, Mup); diff --git a/crates/swc/tests/tsc-references/overrideInterfaceProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/overrideInterfaceProperty_es5.2.minified.js index da2acc06e802..ac2f2b501245 100644 --- a/crates/swc/tests/tsc-references/overrideInterfaceProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/overrideInterfaceProperty_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Sizz = function(Mup) { "use strict"; _inherits(Sizz, Mup); diff --git a/crates/swc/tests/tsc-references/override_js1_es5.1.normal.js b/crates/swc/tests/tsc-references/override_js1_es5.1.normal.js index 3fe1a699c197..880aa7a0485c 100644 --- a/crates/swc/tests/tsc-references/override_js1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override_js1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true // @allowJs: true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/override_js1_es5.2.minified.js b/crates/swc/tests/tsc-references/override_js1_es5.2.minified.js index daee4c6c018a..be0ec94d6050 100644 --- a/crates/swc/tests/tsc-references/override_js1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override_js1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/override_js2_es5.1.normal.js b/crates/swc/tests/tsc-references/override_js2_es5.1.normal.js index a10ff9277bdb..781f8b90c277 100644 --- a/crates/swc/tests/tsc-references/override_js2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override_js2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/override_js2_es5.2.minified.js b/crates/swc/tests/tsc-references/override_js2_es5.2.minified.js index daee4c6c018a..be0ec94d6050 100644 --- a/crates/swc/tests/tsc-references/override_js2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override_js2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/override_js3_es5.1.normal.js b/crates/swc/tests/tsc-references/override_js3_es5.1.normal.js index 7c8318e4d496..22d86884b5b8 100644 --- a/crates/swc/tests/tsc-references/override_js3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override_js3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/override_js3_es5.2.minified.js b/crates/swc/tests/tsc-references/override_js3_es5.2.minified.js index 74167a924e1e..3a644b47d8e2 100644 --- a/crates/swc/tests/tsc-references/override_js3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override_js3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/override_js4_es5.1.normal.js b/crates/swc/tests/tsc-references/override_js4_es5.1.normal.js index 21586fa3d22b..e70b503bcec1 100644 --- a/crates/swc/tests/tsc-references/override_js4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/override_js4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noImplicitOverride: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/override_js4_es5.2.minified.js b/crates/swc/tests/tsc-references/override_js4_es5.2.minified.js index fe5591b65bef..04d987deeefd 100644 --- a/crates/swc/tests/tsc-references/override_js4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/override_js4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es2015.1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es2015.1.normal.js index 2c19eca2f196..4cc2aca48d80 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: es5, es2015, esnext // @noEmit: true // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es2015.2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es2015.2.minified.js index 105115452a15..feebd5ee14ce 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es2015.2.minified.js @@ -1 +1 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es5.1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es5.1.normal.js index 71df366b1e0c..e4b20b7cd27f 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; // @target: es5, es2015, esnext // @noEmit: true // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es5.2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es5.2.minified.js index 105115452a15..feebd5ee14ce 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing.2_es5.2.minified.js @@ -1 +1 @@ -import _object_without_properties from "@swc/helpers/lib/_object_without_properties.js"; +import _object_without_properties from "@swc/helpers/src/_object_without_properties.mjs"; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es5.1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es5.1.normal.js index a10c830af7b9..086f9f670233 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es5.2.minified.js index 9499de9f1be9..0c95affb9063 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; var x = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 12, y = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : x; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es6_es5.1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es6_es5.1.normal.js index 8d9f54d9346f..6dec3689c186 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es2015 var foo = ""; function f1() { diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es6_es5.2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es6_es5.2.minified.js index 9499de9f1be9..0c95affb9063 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing1_es6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; var x = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 12, y = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : x; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing_es5.1.normal.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing_es5.1.normal.js index 2f5d3196ce1a..72a9da83c11c 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function left(a) { var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : a, c = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : b; a; diff --git a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing_es5.2.minified.js b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing_es5.2.minified.js index 133cece43df0..6548a7563b76 100644 --- a/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parameterInitializersForwardReferencing_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny_es5.1.normal.js b/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny_es5.1.normal.js index 5d8a9cb9d461..7af4daf13525 100644 --- a/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo(x) { return x; } diff --git a/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny_es5.2.minified.js b/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny_es5.2.minified.js index a621dcafc76b..2a679f12fe4d 100644 --- a/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parametersWithNoAnnotationAreAny_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parenthesizedContexualTyping3_es5.1.normal.js b/crates/swc/tests/tsc-references/parenthesizedContexualTyping3_es5.1.normal.js index 211bdb698ae6..01eefb3edb86 100644 --- a/crates/swc/tests/tsc-references/parenthesizedContexualTyping3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parenthesizedContexualTyping3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/parenthesizedContexualTyping3_es5.2.minified.js b/crates/swc/tests/tsc-references/parenthesizedContexualTyping3_es5.2.minified.js index 90837a4f2445..ce52ee7beb85 100644 --- a/crates/swc/tests/tsc-references/parenthesizedContexualTyping3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parenthesizedContexualTyping3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/parser509546_1_es5.1.normal.js b/crates/swc/tests/tsc-references/parser509546_1_es5.1.normal.js index 70a361298a33..ceef43cbcf39 100644 --- a/crates/swc/tests/tsc-references/parser509546_1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parser509546_1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Logger = function Logger() { "use strict"; _class_call_check(this, Logger); diff --git a/crates/swc/tests/tsc-references/parser509546_1_es5.2.minified.js b/crates/swc/tests/tsc-references/parser509546_1_es5.2.minified.js index 44ed032575ed..01f3687e4742 100644 --- a/crates/swc/tests/tsc-references/parser509546_1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parser509546_1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Logger = function() { "use strict"; _class_call_check(this, Logger); diff --git a/crates/swc/tests/tsc-references/parser509546_2_es5.1.normal.js b/crates/swc/tests/tsc-references/parser509546_2_es5.1.normal.js index c79b16ea5062..67fa6971a235 100644 --- a/crates/swc/tests/tsc-references/parser509546_2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parser509546_2_es5.1.normal.js @@ -1,5 +1,5 @@ "use strict"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Logger = function Logger() { _class_call_check(this, Logger); }; diff --git a/crates/swc/tests/tsc-references/parser509546_2_es5.2.minified.js b/crates/swc/tests/tsc-references/parser509546_2_es5.2.minified.js index 5e6182ab8e1b..2f02f1807e4d 100644 --- a/crates/swc/tests/tsc-references/parser509546_2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parser509546_2_es5.2.minified.js @@ -1,5 +1,5 @@ "use strict"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Logger = function() { _class_call_check(this, Logger); }; diff --git a/crates/swc/tests/tsc-references/parser509546_es5.1.normal.js b/crates/swc/tests/tsc-references/parser509546_es5.1.normal.js index 70a361298a33..ceef43cbcf39 100644 --- a/crates/swc/tests/tsc-references/parser509546_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parser509546_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Logger = function Logger() { "use strict"; _class_call_check(this, Logger); diff --git a/crates/swc/tests/tsc-references/parser509546_es5.2.minified.js b/crates/swc/tests/tsc-references/parser509546_es5.2.minified.js index 44ed032575ed..01f3687e4742 100644 --- a/crates/swc/tests/tsc-references/parser509546_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parser509546_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Logger = function() { "use strict"; _class_call_check(this, Logger); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11_es5.1.normal.js index 33f9639f0a1a..445d053ebef8 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = /*#__PURE__*/ function() { "use strict"; function Outer() { diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11_es5.2.minified.js index 378b5de8bab9..96d712f9f47d 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic11_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function() { "use strict"; function Outer() { diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14_es5.1.normal.js index 33f9639f0a1a..445d053ebef8 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = /*#__PURE__*/ function() { "use strict"; function Outer() { diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14_es5.2.minified.js index 378b5de8bab9..96d712f9f47d 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic14_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function() { "use strict"; function Outer() { diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2_es5.1.normal.js index d5e5e71c54f0..59b060fc577a 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function Outer() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2_es5.2.minified.js index 0d47f27881da..a8d5d4246f74 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3_es5.1.normal.js index f4b8f1b115b8..5fded2db8c16 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function Outer() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3_es5.2.minified.js index b4f5c2f83f00..13b0505cc287 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4_es5.1.normal.js index d5e5e71c54f0..59b060fc577a 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function Outer() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4_es5.2.minified.js index 0d47f27881da..a8d5d4246f74 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5_es5.1.normal.js index d5e5e71c54f0..59b060fc577a 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function Outer() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5_es5.2.minified.js index 0d47f27881da..a8d5d4246f74 100644 --- a/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessibilityAfterStatic5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/parserAccessors1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessors1_es5.1.normal.js index 6337e7b4dbae..3548d848715a 100644 --- a/crates/swc/tests/tsc-references/parserAccessors1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessors1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserAccessors1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessors1_es5.2.minified.js index d71238b25146..f42667d21c42 100644 --- a/crates/swc/tests/tsc-references/parserAccessors1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessors1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserAccessors2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAccessors2_es5.1.normal.js index a2e8924a403a..fe4fc2f5d648 100644 --- a/crates/swc/tests/tsc-references/parserAccessors2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAccessors2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserAccessors2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAccessors2_es5.2.minified.js index 0c3b8bcd2a62..c50efa05942e 100644 --- a/crates/swc/tests/tsc-references/parserAccessors2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAccessors2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es2015.1.normal.js b/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es2015.1.normal.js index 493d216681b6..3b87b2e3a503 100644 --- a/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @target: esnext ({ m () { diff --git a/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es2015.2.minified.js b/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es5.1.normal.js b/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es5.1.normal.js index 1cff7f1e220d..9189204716a0 100644 --- a/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @target: esnext ({ diff --git a/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es5.2.minified.js b/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es5.2.minified.js index 4226201d4a97..3417dabd0f23 100644 --- a/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserArrowFunctionExpression7_es5.2.minified.js @@ -1,2 +1,2 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/parserAstSpans1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserAstSpans1_es5.1.normal.js index 27327e24bf02..a83ded548bba 100644 --- a/crates/swc/tests/tsc-references/parserAstSpans1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserAstSpans1_es5.1.normal.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var c1 = /*#__PURE__*/ function() { "use strict"; function c1() { diff --git a/crates/swc/tests/tsc-references/parserAstSpans1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserAstSpans1_es5.2.minified.js index fe169610b550..7ef78880fa84 100644 --- a/crates/swc/tests/tsc-references/parserAstSpans1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserAstSpans1_es5.2.minified.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var i1_i, i2_i, i3_i, c1 = function() { "use strict"; function c1() { diff --git a/crates/swc/tests/tsc-references/parserClass1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClass1_es5.1.normal.js index 4ea57de11f72..8cc0940c9b74 100644 --- a/crates/swc/tests/tsc-references/parserClass1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClass1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var NullLogger = /*#__PURE__*/ function() { "use strict"; function NullLogger() { diff --git a/crates/swc/tests/tsc-references/parserClass1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClass1_es5.2.minified.js index 37eeb7156975..e85e59fabd79 100644 --- a/crates/swc/tests/tsc-references/parserClass1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClass1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var NullLogger = function() { "use strict"; function NullLogger() { diff --git a/crates/swc/tests/tsc-references/parserClass2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClass2_es5.1.normal.js index d924cf6cbd22..bf3968eb4354 100644 --- a/crates/swc/tests/tsc-references/parserClass2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClass2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var LoggerAdapter = function LoggerAdapter(logger) { "use strict"; _class_call_check(this, LoggerAdapter); diff --git a/crates/swc/tests/tsc-references/parserClass2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClass2_es5.2.minified.js index 77d8cb48e731..8bdf79086c92 100644 --- a/crates/swc/tests/tsc-references/parserClass2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClass2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var LoggerAdapter = function(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_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration10_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration10_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration10_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration10_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration10_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration11_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration11_es5.1.normal.js index 40ec9fd59321..53df2f5718c1 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration11_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration11_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration11_es5.2.minified.js index 4b8955c83151..a0c315467acb 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration11_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration12_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration12_es5.1.normal.js index 2c88dcf28a23..52e48195ed64 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration12_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C(a) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration12_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration12_es5.2.minified.js index fd2dd1594156..13774d5612f0 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration12_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(a) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration13_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration13_es5.1.normal.js index 6908d207c2e8..00f4f536963e 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration13_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration13_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration13_es5.2.minified.js index 0591504c8ffe..5176e4fbfcb4 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration13_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration14_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration14_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration14_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration14_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration14_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration15_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration15_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration15_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration15_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration15_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration15_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration16_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration16_es5.1.normal.js index 40ec9fd59321..53df2f5718c1 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration16_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration16_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration16_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration16_es5.2.minified.js index 4b8955c83151..a0c315467acb 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration16_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration16_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration19_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration19_es5.1.normal.js index a986554fe77d..6cf70c0ae29f 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration19_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration19_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration19_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration19_es5.2.minified.js index 4b8955c83151..a0c315467acb 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration19_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration19_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration20_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration20_es5.1.normal.js index 4d0172628ca5..291f1ef32594 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration20_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration20_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration20_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration20_es5.2.minified.js index 21bc320a0856..31dc96cc8fb5 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration20_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration20_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration21_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration21_es5.1.normal.js index 8f5b9e1e4063..96d033e49cab 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration21_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration21_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration21_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration21_es5.2.minified.js index 34c3dc6f920b..9fc4dc2c0504 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration21_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration21_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration22_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration22_es5.1.normal.js index 52d547391c35..e08c25124280 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration22_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration22_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration22_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration22_es5.2.minified.js index 0591504c8ffe..5176e4fbfcb4 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration22_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration22_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration23_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration23_es5.1.normal.js index 943e74c1e879..5e29113bfbf5 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration23_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration23_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C2 = function C2() { "use strict"; _class_call_check(this, C2); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration23_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration23_es5.2.minified.js index 188bbeebaca8..8f16ebe4cb71 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration23_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration23_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C2 = function() { "use strict"; _class_call_check(this, C2); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration25_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration25_es5.1.normal.js index be0e269e832e..f69047f36fea 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration25_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration25_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration25_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration25_es5.2.minified.js index 499add986919..65e0744e50c6 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration25_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration25_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var List = function() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration26_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration26_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration26_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration26_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration26_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration26_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration26_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration26_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration8_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration8_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration8_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration8_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration8_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration8_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration9_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclaration9_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration9_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclaration9_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclaration9_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclaration9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclaration9_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserClassDeclarationIndexSignature1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName12_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName12_es5.1.normal.js index 1e412f6fba28..f4c1f0faf2eb 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName12_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName12_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName12_es5.2.minified.js index 972588b8b56b..82402f1ebf95 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName12_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName17_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName17_es5.1.normal.js index 0e3e436b0226..00f56edbdd8e 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName17_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName17_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; //@target: ES6 var v = (_obj = {}, _mutatorMap[e] = _mutatorMap[e] || {}, _mutatorMap[e].set = function(v) {}, _define_enumerable_properties(_obj, _mutatorMap), _obj); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName17_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName17_es5.2.minified.js index 81903e259516..e710ded00bdd 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName17_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName17_es5.2.minified.js @@ -1,3 +1,3 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; _obj = {}, _mutatorMap[e] = _mutatorMap[e] || {}, _mutatorMap[e].set = function(v) {}, _define_enumerable_properties(_obj, _mutatorMap); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName24_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName24_es5.1.normal.js index 455f6227ee26..ff628d61790f 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName24_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName24_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName24_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName24_es5.2.minified.js index 817323eef661..40dae126c934 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName24_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName24_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName2_es5.1.normal.js index 81f77068f849..248284399dcf 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName2_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var v = _define_property({}, e, 1); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName2_es5.2.minified.js index e2ba13efeab1..330c5554e58f 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName2_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, e, 1); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName3_es5.1.normal.js index f993489cea94..7e155774b7fe 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName3_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var v = _define_property({}, e, function() {}); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName3_es5.2.minified.js index a9419ac6c4c6..756217d585d2 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName3_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, e, function() {}); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName40_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName40_es5.1.normal.js index 458089b6d249..0baa5dbf681e 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName40_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName40_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName40_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName40_es5.2.minified.js index 7700d7a1aa6f..09b5d7453718 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName40_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName40_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName41_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName41_es5.1.normal.js index b558f012831b..f167a8ae1343 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName41_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName41_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var v = _define_property({}, 0 in [], true); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName41_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName41_es5.2.minified.js index 8a2b1c88b642..c3f5c8b8a953 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName41_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName41_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, 0 in [], !0); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName4_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName4_es5.1.normal.js index 5affbf715e35..1902e4195a9f 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; //@target: ES6 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/parserComputedPropertyName4_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName4_es5.2.minified.js index d7c40f8bd8e8..f02309ec5e52 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName4_es5.2.minified.js @@ -1,3 +1,3 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; _obj = {}, _mutatorMap[e] = _mutatorMap[e] || {}, _mutatorMap[e].get = function() {}, _define_enumerable_properties(_obj, _mutatorMap); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName6_es5.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName6_es5.1.normal.js index 327771fbde04..9572a6edd7f8 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; //@target: ES6 var v = (_obj = {}, _define_property(_obj, e, 1), _define_property(_obj, e + e, 2), _obj); diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName6_es5.2.minified.js index 9bdc17555978..5ef31b8ec281 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName6_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, e, 1), _define_property(_obj, e + e, 2); diff --git a/crates/swc/tests/tsc-references/parserConstructorDeclaration1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserConstructorDeclaration1_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserConstructorDeclaration1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserConstructorDeclaration1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserConstructorDeclaration1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserConstructorDeclaration1_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserConstructorDeclaration1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserConstructorDeclaration1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserConstructorDeclaration5_es5.1.normal.js b/crates/swc/tests/tsc-references/parserConstructorDeclaration5_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserConstructorDeclaration5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserConstructorDeclaration5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserConstructorDeclaration5_es5.2.minified.js b/crates/swc/tests/tsc-references/parserConstructorDeclaration5_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserConstructorDeclaration5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserConstructorDeclaration5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserES3Accessors1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES3Accessors1_es5.1.normal.js index 3f9518cfafce..f4b65cbcd62f 100644 --- a/crates/swc/tests/tsc-references/parserES3Accessors1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES3Accessors1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserES3Accessors1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES3Accessors1_es5.2.minified.js index d71238b25146..f42667d21c42 100644 --- a/crates/swc/tests/tsc-references/parserES3Accessors1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES3Accessors1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserES3Accessors2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES3Accessors2_es5.1.normal.js index 82bfd16b4a21..9d95adbf4ab4 100644 --- a/crates/swc/tests/tsc-references/parserES3Accessors2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES3Accessors2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserES3Accessors2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES3Accessors2_es5.2.minified.js index 0c3b8bcd2a62..c50efa05942e 100644 --- a/crates/swc/tests/tsc-references/parserES3Accessors2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES3Accessors2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2_es5.1.normal.js index 966a1c586c84..a4c482e776f0 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES5 var v = _define_property({}, e, 1); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2_es5.2.minified.js index e2ba13efeab1..330c5554e58f 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName2_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, e, 1); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.1.normal.js index 6ded89681f6e..2bf7b7b79bc3 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES5 var v = _define_property({}, e, function() {}); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.2.minified.js index a9419ac6c4c6..756217d585d2 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, e, function() {}); diff --git a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4_es5.1.normal.js index 3ce8549c0450..61b642d2564a 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; //@target: ES5 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_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4_es5.2.minified.js index d7c40f8bd8e8..f02309ec5e52 100644 --- a/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ComputedPropertyName4_es5.2.minified.js @@ -1,3 +1,3 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; _obj = {}, _mutatorMap[e] = _mutatorMap[e] || {}, _mutatorMap[e].get = function() {}, _define_enumerable_properties(_obj, _mutatorMap); diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement11_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement11_es5.1.normal.js index 04a7a0993a2f..900865a85be0 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement11_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@target: ES5 diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement11_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement11_es5.2.minified.js index be4434a117b2..9ee7de913a59 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement11_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement14_es5.1.normal.js index 04a7a0993a2f..900865a85be0 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@target: ES5 diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement14_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement14_es5.2.minified.js index be4434a117b2..9ee7de913a59 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement14_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement15_es5.1.normal.js index 04a7a0993a2f..900865a85be0 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement15_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@target: ES5 diff --git a/crates/swc/tests/tsc-references/parserES5ForOfStatement15_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5ForOfStatement15_es5.2.minified.js index be4434a117b2..9ee7de913a59 100644 --- a/crates/swc/tests/tsc-references/parserES5ForOfStatement15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5ForOfStatement15_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5SymbolIndexer2_es5.1.normal.js index 27357364a2d1..e478453f2979 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolIndexer2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolIndexer2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserES5SymbolIndexer2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5SymbolIndexer2_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolIndexer2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolIndexer2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserES5SymbolProperty6_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5SymbolProperty6_es5.1.normal.js index 9b75f28b5520..983258f7d98d 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolProperty6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolProperty6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _toStringTag = Symbol.toStringTag; //@target: ES5 var C = function C() { diff --git a/crates/swc/tests/tsc-references/parserES5SymbolProperty6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5SymbolProperty6_es5.2.minified.js index c57b9b88f291..8de78f8df183 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolProperty6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolProperty6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _toStringTag = Symbol.toStringTag, C = function() { "use strict"; _class_call_check(this, C), this[_toStringTag] = ""; diff --git a/crates/swc/tests/tsc-references/parserES5SymbolProperty7_es5.1.normal.js b/crates/swc/tests/tsc-references/parserES5SymbolProperty7_es5.1.normal.js index b7fa8df5a790..b90be74fdb0f 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolProperty7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolProperty7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserES5SymbolProperty7_es5.2.minified.js b/crates/swc/tests/tsc-references/parserES5SymbolProperty7_es5.2.minified.js index 927f4f33dc2d..e25e93cf9c32 100644 --- a/crates/swc/tests/tsc-references/parserES5SymbolProperty7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserES5SymbolProperty7_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1_es5.1.normal.js index bc173d19de9e..dc6c2598d60f 100644 --- a/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Module var Shapes; (function(Shapes1) { diff --git a/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1_es5.2.minified.js index dfe2d1b796b3..42dcac834a7d 100644 --- a/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserErrorRecovery_IncompleteMemberVariable1_es5.2.minified.js @@ -1,5 +1,5 @@ var Shapes; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(Shapes1) { var Point = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6_es5.1.normal.js b/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6_es5.1.normal.js index 1b95216980c4..3fde40e0dfaa 100644 --- a/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6_es5.2.minified.js index 074e1ab00d49..b176bf3b5abb 100644 --- a/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserErrorRecovery_ParameterList6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/parserExportAssignment7_es5.1.normal.js b/crates/swc/tests/tsc-references/parserExportAssignment7_es5.1.normal.js index 2ec58fb18c88..f4d2a633124d 100644 --- a/crates/swc/tests/tsc-references/parserExportAssignment7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserExportAssignment7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserExportAssignment7_es5.2.minified.js b/crates/swc/tests/tsc-references/parserExportAssignment7_es5.2.minified.js index a981ee0f30ce..b6f77a8ef05c 100644 --- a/crates/swc/tests/tsc-references/parserExportAssignment7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserExportAssignment7_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserExportAssignment8_es5.1.normal.js b/crates/swc/tests/tsc-references/parserExportAssignment8_es5.1.normal.js index b66b74b4955b..644f77ac4e3f 100644 --- a/crates/swc/tests/tsc-references/parserExportAssignment8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserExportAssignment8_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = B; export var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserExportAssignment8_es5.2.minified.js b/crates/swc/tests/tsc-references/parserExportAssignment8_es5.2.minified.js index 4452f6916dce..b2f7d3842b41 100644 --- a/crates/swc/tests/tsc-references/parserExportAssignment8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserExportAssignment8_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; module.exports = B; export var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserForOfStatement11_es5.1.normal.js b/crates/swc/tests/tsc-references/parserForOfStatement11_es5.1.normal.js index 7977616a8860..79430d0bf92c 100644 --- a/crates/swc/tests/tsc-references/parserForOfStatement11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserForOfStatement11_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@target: ES6 diff --git a/crates/swc/tests/tsc-references/parserForOfStatement11_es5.2.minified.js b/crates/swc/tests/tsc-references/parserForOfStatement11_es5.2.minified.js index be4434a117b2..9ee7de913a59 100644 --- a/crates/swc/tests/tsc-references/parserForOfStatement11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserForOfStatement11_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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/parserForOfStatement14_es5.1.normal.js b/crates/swc/tests/tsc-references/parserForOfStatement14_es5.1.normal.js index 7977616a8860..79430d0bf92c 100644 --- a/crates/swc/tests/tsc-references/parserForOfStatement14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserForOfStatement14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@target: ES6 diff --git a/crates/swc/tests/tsc-references/parserForOfStatement14_es5.2.minified.js b/crates/swc/tests/tsc-references/parserForOfStatement14_es5.2.minified.js index be4434a117b2..9ee7de913a59 100644 --- a/crates/swc/tests/tsc-references/parserForOfStatement14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserForOfStatement14_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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/parserForOfStatement15_es5.1.normal.js b/crates/swc/tests/tsc-references/parserForOfStatement15_es5.1.normal.js index 7977616a8860..79430d0bf92c 100644 --- a/crates/swc/tests/tsc-references/parserForOfStatement15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserForOfStatement15_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { //@target: ES6 diff --git a/crates/swc/tests/tsc-references/parserForOfStatement15_es5.2.minified.js b/crates/swc/tests/tsc-references/parserForOfStatement15_es5.2.minified.js index be4434a117b2..9ee7de913a59 100644 --- a/crates/swc/tests/tsc-references/parserForOfStatement15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserForOfStatement15_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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/parserGenericClass1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericClass1_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericClass1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericClass1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericClass1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericClass1_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericClass1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericClass1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericClass2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericClass2_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericClass2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericClass2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericClass2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericClass2_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericClass2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericClass2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint1_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint1_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint2_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint2_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint3_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint3_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint4_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint4_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint4_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint4_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint5_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint5_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint5_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint5_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint6_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint6_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint6_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint7_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericConstraint7_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericConstraint7_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericConstraint7_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserGenericConstraint7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericConstraint7_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1_es5.1.normal.js index 8b2ec8b85797..aa247c01fe5a 100644 --- a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = /*#__PURE__*/ function(A) { "use strict"; _inherits(C, A); diff --git a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1_es5.2.minified.js index ac82e5dc34e3..bf4e1c0815f1 100644 --- a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function(A) { "use strict"; _inherits(C, A); diff --git a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2_es5.1.normal.js index 559b7bacbae6..1740c6a7682b 100644 --- a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = /*#__PURE__*/ function(A) { "use strict"; _inherits(C, A); diff --git a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2_es5.2.minified.js index ac82e5dc34e3..bf4e1c0815f1 100644 --- a/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserGenericsInTypeContexts2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function(A) { "use strict"; _inherits(C, A); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4_es5.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4_es5.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6_es5.1.normal.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserIndexMemberDeclaration6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserMemberAccessor1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessor1_es5.1.normal.js index 354992ba5980..1e15c4cc5028 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessor1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessor1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessor1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessor1_es5.2.minified.js index b8947478a1a1..2c446132ded4 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessor1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessor1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1_es5.1.normal.js index 27729deb4788..7ddc2bc27e73 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1_es5.2.minified.js index 17e0fe3cda5d..2bb6c8196f2c 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2_es5.1.normal.js index 29bee9dbd487..5a3993e3d995 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2_es5.2.minified.js index 6082afc8e1bb..bd0983615ae0 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3_es5.1.normal.js index 12c8387d8571..c29ded6898b9 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3_es5.2.minified.js index 4ad8b3ce01bd..15ff0b552148 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration3_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4_es5.1.normal.js index 5a8dd5156a71..8f6cb8b9c7b9 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4_es5.2.minified.js index 0d82148ab001..0703edb00c0f 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5_es5.1.normal.js index 5a8dd5156a71..8f6cb8b9c7b9 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5_es5.2.minified.js index 0d82148ab001..0703edb00c0f 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6_es5.1.normal.js index ccb5fd07756c..4679b16dffc1 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: es5 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6_es5.2.minified.js index 02d998e4c5a5..39154815d8da 100644 --- a/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberAccessorDeclaration6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1_es5.1.normal.js index b271a71270f5..d812d26be62f 100644 --- a/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1_es5.2.minified.js index e21035ea86c2..3c4f3a3bf580 100644 --- a/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberFunctionDeclarationAmbiguities1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5_es5.1.normal.js b/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5_es5.2.minified.js b/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserMemberVariableDeclaration5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserRealSource12_es5.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource12_es5.1.normal.js index f648126e8948..de6c1b60e14b 100644 --- a/crates/swc/tests/tsc-references/parserRealSource12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource12_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. /// diff --git a/crates/swc/tests/tsc-references/parserRealSource12_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource12_es5.2.minified.js index 44d840baacc8..50e314ddabd2 100644 --- a/crates/swc/tests/tsc-references/parserRealSource12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource12_es5.2.minified.js @@ -1,5 +1,5 @@ var TypeScript; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(TypeScript1) { var globalAstWalkerFactory, ChildrenWalkers1, getAstWalkerFactory = function() { return globalAstWalkerFactory || (globalAstWalkerFactory = new AstWalkerFactory()), globalAstWalkerFactory; diff --git a/crates/swc/tests/tsc-references/parserRealSource14_es5.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource14_es5.1.normal.js index de098715e253..8f8d94d4f0c3 100644 --- a/crates/swc/tests/tsc-references/parserRealSource14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. /// diff --git a/crates/swc/tests/tsc-references/parserRealSource14_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource14_es5.2.minified.js index 309e38fd684a..50438a99155f 100644 --- a/crates/swc/tests/tsc-references/parserRealSource14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource14_es5.2.minified.js @@ -1,5 +1,5 @@ var TypeScript; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(TypeScript1) { var GetAstPathOptions, lastOf = function(items) { return null === items || 0 === items.length ? null : items[items.length - 1]; diff --git a/crates/swc/tests/tsc-references/parserRealSource1_es5.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource1_es5.1.normal.js index 1dc7b1c9ade9..64a562f77082 100644 --- a/crates/swc/tests/tsc-references/parserRealSource1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. /// diff --git a/crates/swc/tests/tsc-references/parserRealSource1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource1_es5.2.minified.js index 10030ebdb0ef..ac080437abd7 100644 --- a/crates/swc/tests/tsc-references/parserRealSource1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource1_es5.2.minified.js @@ -1,5 +1,5 @@ var TypeScript; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(TypeScript1) { !function(CompilerDiagnostics) { var debug = CompilerDiagnostics.debug = !1, diagnosticWriter = CompilerDiagnostics.diagnosticWriter = null; diff --git a/crates/swc/tests/tsc-references/parserRealSource5_es5.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource5_es5.1.normal.js index bd775a456cab..b981cb1f8893 100644 --- a/crates/swc/tests/tsc-references/parserRealSource5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. /// diff --git a/crates/swc/tests/tsc-references/parserRealSource5_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource5_es5.2.minified.js index e06f52d2ca46..42a2abfb768c 100644 --- a/crates/swc/tests/tsc-references/parserRealSource5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource5_es5.2.minified.js @@ -1,5 +1,5 @@ var TypeScript; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(TypeScript1) { var PrintContext = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserRealSource6_es5.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource6_es5.1.normal.js index 2b2bdf77b2a8..f189b658d401 100644 --- a/crates/swc/tests/tsc-references/parserRealSource6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. /// diff --git a/crates/swc/tests/tsc-references/parserRealSource6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource6_es5.2.minified.js index b5877d73aabd..0929d7a2362c 100644 --- a/crates/swc/tests/tsc-references/parserRealSource6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource6_es5.2.minified.js @@ -1,5 +1,5 @@ var TypeScript; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(TypeScript1) { var preFindMemberScope = function(ast, parent, walker) { var memScope = walker.state; diff --git a/crates/swc/tests/tsc-references/parserRealSource8_es5.1.normal.js b/crates/swc/tests/tsc-references/parserRealSource8_es5.1.normal.js index 846c06dffafa..8e666b36eaa0 100644 --- a/crates/swc/tests/tsc-references/parserRealSource8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserRealSource8_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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. /// diff --git a/crates/swc/tests/tsc-references/parserRealSource8_es5.2.minified.js b/crates/swc/tests/tsc-references/parserRealSource8_es5.2.minified.js index b9d9bc1adf07..89ce84909b1f 100644 --- a/crates/swc/tests/tsc-references/parserRealSource8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserRealSource8_es5.2.minified.js @@ -1,5 +1,5 @@ var TypeScript; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !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_es5.1.normal.js b/crates/swc/tests/tsc-references/parserSuperExpression1_es5.1.normal.js index a472715d4405..947ad6886bd4 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.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"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSuperExpression1_es5.2.minified.js b/crates/swc/tests/tsc-references/parserSuperExpression1_es5.2.minified.js index dfc8d36dde79..58514afaf229 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.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"; var M1, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSuperExpression3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserSuperExpression3_es5.1.normal.js index eee0bf25dd07..e45c2cee1559 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSuperExpression3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserSuperExpression3_es5.2.minified.js index ace7a0cc3155..c45a990b05fe 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSuperExpression4_es5.1.normal.js b/crates/swc/tests/tsc-references/parserSuperExpression4_es5.1.normal.js index 57cf705aaa46..344bb1655a99 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _set from "@swc/helpers/lib/_set.js"; +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"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSuperExpression4_es5.2.minified.js b/crates/swc/tests/tsc-references/parserSuperExpression4_es5.2.minified.js index abb25c674d91..82915d0a03fb 100644 --- a/crates/swc/tests/tsc-references/parserSuperExpression4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSuperExpression4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _set from "@swc/helpers/lib/_set.js"; +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"; var M1, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserSymbolIndexer2_es5.1.normal.js b/crates/swc/tests/tsc-references/parserSymbolIndexer2_es5.1.normal.js index fa9a0bea7d21..d58dff38ca61 100644 --- a/crates/swc/tests/tsc-references/parserSymbolIndexer2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSymbolIndexer2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserSymbolIndexer2_es5.2.minified.js b/crates/swc/tests/tsc-references/parserSymbolIndexer2_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserSymbolIndexer2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSymbolIndexer2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserSymbolIndexer3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserSymbolIndexer3_es5.1.normal.js index fa9a0bea7d21..d58dff38ca61 100644 --- a/crates/swc/tests/tsc-references/parserSymbolIndexer3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSymbolIndexer3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserSymbolIndexer3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserSymbolIndexer3_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserSymbolIndexer3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSymbolIndexer3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserSymbolProperty5_es5.1.normal.js b/crates/swc/tests/tsc-references/parserSymbolProperty5_es5.1.normal.js index fa9a0bea7d21..d58dff38ca61 100644 --- a/crates/swc/tests/tsc-references/parserSymbolProperty5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSymbolProperty5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserSymbolProperty5_es5.2.minified.js b/crates/swc/tests/tsc-references/parserSymbolProperty5_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/parserSymbolProperty5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSymbolProperty5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/parserSymbolProperty6_es5.1.normal.js b/crates/swc/tests/tsc-references/parserSymbolProperty6_es5.1.normal.js index 1ab9cf6abed0..41fd2f62fb41 100644 --- a/crates/swc/tests/tsc-references/parserSymbolProperty6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSymbolProperty6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _toStringTag = Symbol.toStringTag; //@target: ES6 var C = function C() { diff --git a/crates/swc/tests/tsc-references/parserSymbolProperty6_es5.2.minified.js b/crates/swc/tests/tsc-references/parserSymbolProperty6_es5.2.minified.js index c57b9b88f291..8de78f8df183 100644 --- a/crates/swc/tests/tsc-references/parserSymbolProperty6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSymbolProperty6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _toStringTag = Symbol.toStringTag, C = function() { "use strict"; _class_call_check(this, C), this[_toStringTag] = ""; diff --git a/crates/swc/tests/tsc-references/parserSymbolProperty7_es5.1.normal.js b/crates/swc/tests/tsc-references/parserSymbolProperty7_es5.1.normal.js index ce54c3f86764..9019e31cb4f6 100644 --- a/crates/swc/tests/tsc-references/parserSymbolProperty7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserSymbolProperty7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/parserSymbolProperty7_es5.2.minified.js b/crates/swc/tests/tsc-references/parserSymbolProperty7_es5.2.minified.js index 927f4f33dc2d..e25e93cf9c32 100644 --- a/crates/swc/tests/tsc-references/parserSymbolProperty7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserSymbolProperty7_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/parserUnicode3_es5.1.normal.js b/crates/swc/tests/tsc-references/parserUnicode3_es5.1.normal.js index 42520b799c2c..5a6f75ec442b 100644 --- a/crates/swc/tests/tsc-references/parserUnicode3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserUnicode3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var 剩下 = function 剩下() { "use strict"; _class_call_check(this, 剩下); diff --git a/crates/swc/tests/tsc-references/parserUnicode3_es5.2.minified.js b/crates/swc/tests/tsc-references/parserUnicode3_es5.2.minified.js index 124f1cdf643b..c6a3a65e4228 100644 --- a/crates/swc/tests/tsc-references/parserUnicode3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserUnicode3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var 剩下 = function() { "use strict"; _class_call_check(this, 剩下); diff --git a/crates/swc/tests/tsc-references/parserindenter_es5.1.normal.js b/crates/swc/tests/tsc-references/parserindenter_es5.1.normal.js index 49accbe4083e..e7b769a82c34 100644 --- a/crates/swc/tests/tsc-references/parserindenter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/parserindenter_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // // Copyright (c) Microsoft Corporation. All rights reserved. // diff --git a/crates/swc/tests/tsc-references/parserindenter_es5.2.minified.js b/crates/swc/tests/tsc-references/parserindenter_es5.2.minified.js index 4fa567a994d8..78afbd2242d4 100644 --- a/crates/swc/tests/tsc-references/parserindenter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/parserindenter_es5.2.minified.js @@ -1,5 +1,5 @@ var Formatting; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(Formatting1) { var Indenter = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError_es5.1.normal.js b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError_es5.1.normal.js index d43ccc4c2680..4ff063ff6f8a 100644 --- a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError_es5.2.minified.js b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError_es5.2.minified.js index 2b3ede2e8fb3..658792a4283c 100644 --- a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceError_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter_es5.1.normal.js b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter_es5.1.normal.js index 03fb356e920f..b6040fa53aa2 100644 --- a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter_es5.2.minified.js b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter_es5.2.minified.js index cfdb05b98d2e..b035347fbc5f 100644 --- a/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/partiallyAnnotatedFunctionInferenceWithTypeParameter_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/plusOperatorWithAnyOtherType_es5.1.normal.js b/crates/swc/tests/tsc-references/plusOperatorWithAnyOtherType_es5.1.normal.js index 471db6e5ec9a..14e91eb2136f 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithAnyOtherType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithAnyOtherType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // + operator on any type var ANY; var ANY1; diff --git a/crates/swc/tests/tsc-references/plusOperatorWithAnyOtherType_es5.2.minified.js b/crates/swc/tests/tsc-references/plusOperatorWithAnyOtherType_es5.2.minified.js index a403888a55a9..f86ec0196c56 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithAnyOtherType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithAnyOtherType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/plusOperatorWithBooleanType_es5.1.normal.js b/crates/swc/tests/tsc-references/plusOperatorWithBooleanType_es5.1.normal.js index 77d1f9561f44..7c480a7bc128 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithBooleanType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithBooleanType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // + operator on boolean type var BOOLEAN; function foo() { diff --git a/crates/swc/tests/tsc-references/plusOperatorWithBooleanType_es5.2.minified.js b/crates/swc/tests/tsc-references/plusOperatorWithBooleanType_es5.2.minified.js index c1665cd766f5..a044cc27fffd 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithBooleanType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithBooleanType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/plusOperatorWithNumberType_es5.1.normal.js b/crates/swc/tests/tsc-references/plusOperatorWithNumberType_es5.1.normal.js index 5dedd4baa859..e95d4415f3f1 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithNumberType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithNumberType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // + operator on number type var NUMBER; var NUMBER1 = [ diff --git a/crates/swc/tests/tsc-references/plusOperatorWithNumberType_es5.2.minified.js b/crates/swc/tests/tsc-references/plusOperatorWithNumberType_es5.2.minified.js index 76ced0f24da3..542dc6191dd4 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithNumberType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithNumberType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/plusOperatorWithStringType_es5.1.normal.js b/crates/swc/tests/tsc-references/plusOperatorWithStringType_es5.1.normal.js index dec274c3046a..726b4edc08e2 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithStringType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithStringType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // + operator on string type var STRING; var STRING1 = [ diff --git a/crates/swc/tests/tsc-references/plusOperatorWithStringType_es5.2.minified.js b/crates/swc/tests/tsc-references/plusOperatorWithStringType_es5.2.minified.js index f26d2d23ea3e..9ba6eadb5677 100644 --- a/crates/swc/tests/tsc-references/plusOperatorWithStringType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/plusOperatorWithStringType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/preserveValueImports_errors_es5.1.normal.js b/crates/swc/tests/tsc-references/preserveValueImports_errors_es5.1.normal.js index 80b447a5a413..d9daeb725fc1 100644 --- a/crates/swc/tests/tsc-references/preserveValueImports_errors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/preserveValueImports_errors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { A } from "./a"; // @Filename: e.ts import { BB } from "./d"; diff --git a/crates/swc/tests/tsc-references/preserveValueImports_errors_es5.2.minified.js b/crates/swc/tests/tsc-references/preserveValueImports_errors_es5.2.minified.js index 481f5c5805c2..020a38dc8fdd 100644 --- a/crates/swc/tests/tsc-references/preserveValueImports_errors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/preserveValueImports_errors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import { A } from "./a"; import { BB } from "./d"; var B = function() { diff --git a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass_es5.1.normal.js b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass_es5.1.normal.js index 799069a4a222..fc02621c967e 100644 --- a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // no errors var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass_es5.2.minified.js b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass_es5.2.minified.js index 6f119f4a1b71..c52db9713493 100644 --- a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinClass_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass_es5.1.normal.js b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass_es5.1.normal.js index ef368156787b..710fc720b9ba 100644 --- a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: ES5 // no errors var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass_es5.2.minified.js b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass_es5.2.minified.js index 6aa467877c1e..6dc6933a765d 100644 --- a/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateClassPropertyAccessibleWithinNestedClass_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es2015.1.normal.js index 47cf5d6e0f6c..35a91195ec20 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _fieldFunc = /*#__PURE__*/ new WeakMap(), _fieldFunc2 = /*#__PURE__*/ new WeakMap(); // @target: es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es2015.2.minified.js index 0ae5c5830134..2d2f00c4fc17 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _fieldFunc = new WeakMap(), _fieldFunc2 = new WeakMap(); class A { test() { diff --git a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es5.1.normal.js index 4ae7dfa36d02..19895c010610 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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 _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es5.2.minified.js index e0022839bd54..9d52a105772a 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAccessorsCallExpression_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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 _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameAccessors_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameAccessors_es2015.1.normal.js index 57f696c345d4..7ac3e3cd5f02 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessors_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAccessors_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _prop = /*#__PURE__*/ new WeakMap(), _roProp = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameAccessors_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameAccessors_es2015.2.minified.js index 4dd6709316ab..b74178b18fea 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessors_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAccessors_es2015.2.minified.js @@ -1,3 +1,3 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; diff --git a/crates/swc/tests/tsc-references/privateNameAccessors_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameAccessors_es5.1.normal.js index a7ecd70a7901..f9350346c7be 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAccessors_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _prop = /*#__PURE__*/ new WeakMap(), _roProp = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameAccessors_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameAccessors_es5.2.minified.js index f0a8ecc02227..eaa7a944350d 100644 --- a/crates/swc/tests/tsc-references/privateNameAccessors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAccessors_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _prop = new WeakMap(), _roProp = new WeakMap(), A1 = function(name) { "use strict"; _class_call_check(this, A1), _class_private_field_init(this, _prop, { diff --git a/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es2015.1.normal.js index 0f250c152e49..151362617201 100644 --- a/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _prop = /*#__PURE__*/ new WeakMap(); class B { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es2015.2.minified.js index a700c561f9cc..b29bd3dd3b55 100644 --- a/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es2015.2.minified.js @@ -1 +1 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es5.1.normal.js index d0812c14be99..c0388e332875 100644 --- a/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _prop = /*#__PURE__*/ new WeakMap(); var B = function B() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es5.2.minified.js index 728c05d8cbfe..19cd81393220 100644 --- a/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAmbientNoImplicitAny_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _prop = new WeakMap(), B = function() { "use strict"; _class_call_check(this, B), _class_private_field_init(this, _prop, { diff --git a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es2015.1.normal.js index 533f2a6d9d6e..07c20645dee5 100644 --- a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es2015.1.normal.js @@ -1,8 +1,8 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +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_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_spread from "@swc/helpers/src/_object_spread.mjs"; var _prop = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es2015.2.minified.js index 84d3981c773d..1ea121e1a941 100644 --- a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es2015.2.minified.js @@ -1,8 +1,8 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +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_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_spread from "@swc/helpers/src/_object_spread.mjs"; var _prop = new WeakMap(); class C { method(other) { diff --git a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es5.1.normal.js index 78412f784afe..7fc643fb62ca 100644 --- a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +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_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_spread from "@swc/helpers/src/_object_spread.mjs"; var _prop = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es5.2.minified.js index d46008c2d16a..3d5cb2dbfac8 100644 --- a/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAndObjectRestSpread_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +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_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_spread from "@swc/helpers/src/_object_spread.mjs"; var _prop = new WeakMap(), C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es2015.1.normal.js index 03e3d13a81c3..0367097ee304 100644 --- a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _foo = /*#__PURE__*/ new WeakMap(), _prop = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022, es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es2015.2.minified.js index 0bc2d4d71d22..2abf57c23216 100644 --- a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _foo = new WeakMap(), _prop = new WeakMap(); class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es5.1.normal.js index a43ac308a7dd..02d46b87a366 100644 --- a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(), _prop = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022, es2015 var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es5.2.minified.js index 1c5f611c79c3..e689479e88ac 100644 --- a/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameAndStaticInitializer_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = new WeakMap(), _prop = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateNameCircularReference_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameCircularReference_es2015.1.normal.js index d40c11e54b3b..09b56c679612 100644 --- a/crates/swc/tests/tsc-references/privateNameCircularReference_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameCircularReference_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameCircularReference_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameCircularReference_es2015.2.minified.js index f1660c97e6c7..0047b5f07c0b 100644 --- a/crates/swc/tests/tsc-references/privateNameCircularReference_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameCircularReference_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; diff --git a/crates/swc/tests/tsc-references/privateNameCircularReference_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameCircularReference_es5.1.normal.js index a8614e37e8b1..1ae716c71b18 100644 --- a/crates/swc/tests/tsc-references/privateNameCircularReference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameCircularReference_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameCircularReference_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameCircularReference_es5.2.minified.js index 7bdcb93536b4..5a9635563c33 100644 --- a/crates/swc/tests/tsc-references/privateNameCircularReference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameCircularReference_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = new WeakMap(), _bar = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es2015.1.normal.js index be5ae1c2615d..9b9787a5bbca 100644 --- a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; // @target: es2015 const array = []; for(let i = 0; i < 10; ++i){ diff --git a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es2015.2.minified.js index 39262a536752..c8d2693df757 100644 --- a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; let array = []; for(let i = 0; i < 10; ++i){ var _myField; diff --git a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es5.1.normal.js index 4bbaaffae116..01fbab366545 100644 --- a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; // @target: es2015 var array = []; for(var i = 0; i < 10; ++i){ diff --git a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es5.2.minified.js index 25a3bd0a2e6c..95e781dddac8 100644 --- a/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameClassExpressionLoop_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; for(var array = [], i = 0; i < 10; ++i){ var _myField, _method, _accessor, get_accessor = function() { return 42; diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es2015.1.normal.js index 0e4a2fb49ff2..dc9cb834e46f 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _c = /*#__PURE__*/ new WeakMap(), _d = /*#__PURE__*/ new WeakMap(), _e = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022, es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es2015.2.minified.js index db34b03e0abd..536d49f5f18b 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; 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/privateNameComputedPropertyName1_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es5.1.normal.js index 43259e4c65f3..643e60624e74 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _c = /*#__PURE__*/ new WeakMap(), _d = /*#__PURE__*/ new WeakMap(), _e = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022, es2015 var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es5.2.minified.js index 3e8419aecc99..14c23892485f 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName1_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _a = new WeakMap(), _b = new WeakMap(), _c = new WeakMap(), _d = new WeakMap(), _e = new WeakMap(), A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es2015.1.normal.js index 5a2367eaacf3..1ec8316d6088 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; // @target: esnext, es2022, es2015 let getX; var _x = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es2015.2.minified.js index d0dd2a6247a4..473cf37ef5b1 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; let getX; var _x = new WeakMap(); let tmp = (getX = (a)=>_class_private_field_get(a, _x), "_"); diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es5.1.normal.js index f30391b0ea88..0724af23249b 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; // @target: esnext, es2022, es2015 var getX; var _x = /*#__PURE__*/ new WeakMap(); diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es5.2.minified.js index 8371c3dfd215..a90da9152418 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var getX, _x = new WeakMap(), tmp = (getX = function(a) { return _class_private_field_get(a, _x); }, "_"), A = function() { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es2015.1.normal.js index f42a129443df..808eeeb272ff 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _name = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022, es2015 class Foo { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es2015.2.minified.js index 7dc6db2cc61c..984c0a8c3605 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _name = new WeakMap(); console.log(new class { getValue(x) { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es5.1.normal.js index a46dad5a447d..96ce66e91a4a 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _name = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022, es2015 var Foo = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es5.2.minified.js index 964c2848c987..ea5440bb2085 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _name = new WeakMap(), Foo = function() { "use strict"; function Foo(name) { diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName4_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName4_es5.1.normal.js index d416051b1b06..0ef9e138c663 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es2015 // @useDefineForClassFields: true // @noTypesAndSymbols: true diff --git a/crates/swc/tests/tsc-references/privateNameComputedPropertyName4_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameComputedPropertyName4_es5.2.minified.js index f304da0cb42c..55dd42917650 100644 --- a/crates/swc/tests/tsc-references/privateNameComputedPropertyName4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameComputedPropertyName4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/privateNameConstructorSignature_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameConstructorSignature_es2015.1.normal.js index 707bc929fec9..df7a432f01c4 100644 --- a/crates/swc/tests/tsc-references/privateNameConstructorSignature_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameConstructorSignature_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.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"; var _x = /*#__PURE__*/ new WeakMap(); class C { static test() { diff --git a/crates/swc/tests/tsc-references/privateNameConstructorSignature_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameConstructorSignature_es2015.2.minified.js index 7020d863d84b..876bcb8f27d2 100644 --- a/crates/swc/tests/tsc-references/privateNameConstructorSignature_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameConstructorSignature_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.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"; var _x = new WeakMap(); class C { static test() { diff --git a/crates/swc/tests/tsc-references/privateNameConstructorSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameConstructorSignature_es5.1.normal.js index 6cea6806facd..b01d6d0a510e 100644 --- a/crates/swc/tests/tsc-references/privateNameConstructorSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameConstructorSignature_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _x = /*#__PURE__*/ new WeakMap(); var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameConstructorSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameConstructorSignature_es5.2.minified.js index aee3692ac03e..791bb84441c2 100644 --- a/crates/swc/tests/tsc-references/privateNameConstructorSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameConstructorSignature_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _x = new WeakMap(), C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es2015.1.normal.js index 03ca6306af4f..41c1678ba301 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; // @target: es6 class D { } diff --git a/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es2015.2.minified.js index 76d684db0cf4..e08decb10e8a 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _x = new WeakMap(); class C { foo() { diff --git a/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es5.1.normal.js index f0b891712abb..df3d70221a32 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; // @target: es6 var D = function D() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es5.2.minified.js index 20abbe2c5eb6..d13a9d65b8e1 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameDeclarationMerging_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var D = function() { "use strict"; _class_call_check(this, D); diff --git a/crates/swc/tests/tsc-references/privateNameDeclaration_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameDeclaration_es2015.1.normal.js index b3343185d874..6dc56f8cad74 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclaration_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameDeclaration_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); // @declaration: true // @target: es2015 diff --git a/crates/swc/tests/tsc-references/privateNameDeclaration_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameDeclaration_es2015.2.minified.js index a700c561f9cc..b29bd3dd3b55 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclaration_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameDeclaration_es2015.2.minified.js @@ -1 +1 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameDeclaration_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameDeclaration_es5.1.normal.js index bb299021b4c5..8f8ace6f783d 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclaration_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameDeclaration_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); // @declaration: true // @target: es2015 diff --git a/crates/swc/tests/tsc-references/privateNameDeclaration_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameDeclaration_es5.2.minified.js index 37c8ac36e4a8..f8f0607d26e1 100644 --- a/crates/swc/tests/tsc-references/privateNameDeclaration_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameDeclaration_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = new WeakMap(), _bar = new WeakMap(), A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/privateNameDuplicateField_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameDuplicateField_es2015.1.normal.js index e0f0ea9086fb..4d4058e6f6e8 100644 --- a/crates/swc/tests/tsc-references/privateNameDuplicateField_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameDuplicateField_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; // @strict: true // @target: es6 function Field() { diff --git a/crates/swc/tests/tsc-references/privateNameDuplicateField_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameDuplicateField_es2015.2.minified.js index 8d54f4d56fd1..1286e0fb78fc 100644 --- a/crates/swc/tests/tsc-references/privateNameDuplicateField_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameDuplicateField_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameDuplicateField_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameDuplicateField_es5.1.normal.js index 33f2a13a53be..3afec37a14df 100644 --- a/crates/swc/tests/tsc-references/privateNameDuplicateField_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameDuplicateField_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; // @strict: true // @target: es6 function Field() { diff --git a/crates/swc/tests/tsc-references/privateNameDuplicateField_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameDuplicateField_es5.2.minified.js index 61904d328874..237b7aec440d 100644 --- a/crates/swc/tests/tsc-references/privateNameDuplicateField_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameDuplicateField_es5.2.minified.js @@ -1,3 +1,3 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameES5Ban_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameES5Ban_es2015.1.normal.js index 903c71558d50..a7bc6f55c7e1 100644 --- a/crates/swc/tests/tsc-references/privateNameES5Ban_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameES5Ban_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _field = /*#__PURE__*/ new WeakMap(), _method = /*#__PURE__*/ new WeakSet(), _acc = /*#__PURE__*/ new WeakMap(); // @target: es5, es3 class A { diff --git a/crates/swc/tests/tsc-references/privateNameES5Ban_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameES5Ban_es2015.2.minified.js index 8d54f4d56fd1..1286e0fb78fc 100644 --- a/crates/swc/tests/tsc-references/privateNameES5Ban_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameES5Ban_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameES5Ban_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameES5Ban_es5.1.normal.js index 365a0b75c5a8..618a7e0779a3 100644 --- a/crates/swc/tests/tsc-references/privateNameES5Ban_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameES5Ban_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _field = /*#__PURE__*/ new WeakMap(), _method = /*#__PURE__*/ new WeakSet(), _acc = /*#__PURE__*/ new WeakMap(); // @target: es5, es3 var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNameES5Ban_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameES5Ban_es5.2.minified.js index 1a19b03e4a2c..fe86aafda97d 100644 --- a/crates/swc/tests/tsc-references/privateNameES5Ban_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameES5Ban_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _field = new WeakMap(), _method = new WeakSet(), _acc = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_method_init(this, _method), _class_private_field_init(this, _acc, { diff --git a/crates/swc/tests/tsc-references/privateNameEmitHelpers_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameEmitHelpers_es2015.1.normal.js index 7e1cd4942e8f..bfeb856cfecd 100644 --- a/crates/swc/tests/tsc-references/privateNameEmitHelpers_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameEmitHelpers_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakSet(), _c = /*#__PURE__*/ new WeakMap(); // @target: es2015 // @importHelpers: true diff --git a/crates/swc/tests/tsc-references/privateNameEmitHelpers_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameEmitHelpers_es2015.2.minified.js index c026b4b69949..4c15e7021fc4 100644 --- a/crates/swc/tests/tsc-references/privateNameEmitHelpers_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameEmitHelpers_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _a = new WeakMap(), _b = new WeakSet(), _c = new WeakMap(); export class C { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameEmitHelpers_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameEmitHelpers_es5.1.normal.js index c17ceed431f6..e3d2613580ba 100644 --- a/crates/swc/tests/tsc-references/privateNameEmitHelpers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameEmitHelpers_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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 _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakSet(), _c = /*#__PURE__*/ new WeakMap(); // @target: es2015 // @importHelpers: true diff --git a/crates/swc/tests/tsc-references/privateNameEmitHelpers_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameEmitHelpers_es5.2.minified.js index 4cb4af9a1fed..70a041317118 100644 --- a/crates/swc/tests/tsc-references/privateNameEmitHelpers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameEmitHelpers_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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 _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _a = new WeakMap(), _b = new WeakSet(), _c = new WeakMap(); export var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldAccess_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldAccess_es2015.1.normal.js index 88fd77cf1ce5..0204252bee0d 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAccess_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAccess_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _myField = /*#__PURE__*/ new WeakMap(); // @target: es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNameFieldAccess_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldAccess_es2015.2.minified.js index f1660c97e6c7..0047b5f07c0b 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAccess_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAccess_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldAccess_es5.1.normal.js index 88b67a81d1c6..03d1345267bb 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAccess_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _myField = /*#__PURE__*/ new WeakMap(); // @target: es2015 var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldAccess_es5.2.minified.js index 907f4e2dd575..5a0df1af6215 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAccess_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _myField = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _myField, { diff --git a/crates/swc/tests/tsc-references/privateNameFieldAssignment_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldAssignment_es2015.1.normal.js index 0e2fd4e67e56..cd68ca795bbe 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAssignment_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAssignment_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _field = /*#__PURE__*/ new WeakMap(); // @target: es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNameFieldAssignment_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldAssignment_es2015.2.minified.js index 090e2240bd24..c97a600d4840 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAssignment_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAssignment_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _field = new WeakMap(); class A { static getInstance() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldAssignment_es5.1.normal.js index c6dc6819d163..951ec617f44b 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAssignment_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _field = /*#__PURE__*/ new WeakMap(); // @target: es2015 var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldAssignment_es5.2.minified.js index e0a2fb0a7e96..15ce4fe49f17 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldAssignment_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _field = new WeakMap(), A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es2015.1.normal.js index 985959b1715d..4f382a0795da 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _fieldFunc = /*#__PURE__*/ new WeakMap(), _fieldFunc2 = /*#__PURE__*/ new WeakMap(); // @target: es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es2015.2.minified.js index bb6ea6316031..5709bd2458db 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _fieldFunc = new WeakMap(), _fieldFunc2 = new WeakMap(); class A { test() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es5.1.normal.js index b061dd272539..c3d217478a19 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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 _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es5.2.minified.js index fd30fd57234f..40a424e2d413 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldCallExpression_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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 _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es2015.1.normal.js index 75110292e845..2b06f4344bfd 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _class, _Foo; var _foo = /*#__PURE__*/ new WeakMap(), _foo2 = /*#__PURE__*/ new WeakMap(); // @target: es2015 diff --git a/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es2015.2.minified.js index a700c561f9cc..b29bd3dd3b55 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es2015.2.minified.js @@ -1 +1 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es5.1.normal.js index 44374c1b65c8..a65859c020fd 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _class, _Foo; var _foo = /*#__PURE__*/ new WeakMap(), _foo2 = /*#__PURE__*/ new WeakMap(); // @target: es2015 diff --git a/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es5.2.minified.js index ab8a9d919b95..d5627e93684b 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldClassExpression_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _class, _Foo, _foo = new WeakMap(), _foo2 = new WeakMap(), B = function() { "use strict"; _class_call_check(this, B), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateNameFieldInitializer_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldInitializer_es2015.1.normal.js index 786bf0b14f87..d51b21271e50 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldInitializer_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldInitializer_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _field = /*#__PURE__*/ new WeakMap(), _uninitialized = /*#__PURE__*/ new WeakMap(); // @target: es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNameFieldInitializer_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldInitializer_es2015.2.minified.js index a700c561f9cc..b29bd3dd3b55 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldInitializer_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldInitializer_es2015.2.minified.js @@ -1 +1 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameFieldInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldInitializer_es5.1.normal.js index 348eac4e2c77..d2b53243b093 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldInitializer_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _field = /*#__PURE__*/ new WeakMap(), _uninitialized = /*#__PURE__*/ new WeakMap(); // @target: es2015 var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldInitializer_es5.2.minified.js index 38d64ff3e38c..ada172f0ae4f 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldInitializer_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _field = new WeakMap(), _uninitialized = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _field, { diff --git a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es2015.1.normal.js index a734477560f9..e07d93cd92e7 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; +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"; var _test = /*#__PURE__*/ new WeakMap(); // @target: es2015 class C { diff --git a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es2015.2.minified.js index eb1ca7ee70b2..365cf57b5af1 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; +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"; var _test = new WeakMap(); class C { test() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es5.1.normal.js index 72d6c7b30892..a858444d17f5 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; +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 _class_private_field_update from "@swc/helpers/src/_class_private_field_update.mjs"; var _test = /*#__PURE__*/ new WeakMap(); // @target: es2015 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es5.2.minified.js index d4efd4546a2e..09106af69fb9 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldUnaryMutation_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; +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 _class_private_field_update from "@swc/helpers/src/_class_private_field_update.mjs"; var _test = new WeakMap(), C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateNameField_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameField_es2015.1.normal.js index bc71937119d7..ea8cbd35fc63 100644 --- a/crates/swc/tests/tsc-references/privateNameField_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameField_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.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"; var _name = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameField_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameField_es2015.2.minified.js index 9fd6f14e6024..5b18d757677b 100644 --- a/crates/swc/tests/tsc-references/privateNameField_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameField_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.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"; diff --git a/crates/swc/tests/tsc-references/privateNameField_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameField_es5.1.normal.js index f276cc7f9436..82b0eb9e3285 100644 --- a/crates/swc/tests/tsc-references/privateNameField_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameField_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _name = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameField_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameField_es5.2.minified.js index 88e05f7ef2d5..3f2b712df109 100644 --- a/crates/swc/tests/tsc-references/privateNameField_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameField_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _name = new WeakMap(), A = function(name) { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _name, { diff --git a/crates/swc/tests/tsc-references/privateNameFieldsESNext_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldsESNext_es2015.1.normal.js index 435e06c261f0..e01db583e11c 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldsESNext_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldsESNext_es2015.1.normal.js @@ -1,8 +1,8 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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 _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _something = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022 // @useDefineForClassFields: false diff --git a/crates/swc/tests/tsc-references/privateNameFieldsESNext_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldsESNext_es2015.2.minified.js index ba22b614530b..9bd74b2b8723 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldsESNext_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldsESNext_es2015.2.minified.js @@ -1,8 +1,8 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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 _class_static_private_field_spec_set from "@swc/helpers/src/_class_static_private_field_spec_set.mjs"; var _a = new WeakMap(), _b = new WeakMap(), _something = new WeakMap(); class C { method() { diff --git a/crates/swc/tests/tsc-references/privateNameFieldsESNext_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameFieldsESNext_es5.1.normal.js index 1ef4ab4af8dd..07f772b1f439 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldsESNext_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameFieldsESNext_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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 _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"; var _a = /*#__PURE__*/ new WeakMap(), _b = /*#__PURE__*/ new WeakMap(), _something = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022 // @useDefineForClassFields: false diff --git a/crates/swc/tests/tsc-references/privateNameFieldsESNext_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameFieldsESNext_es5.2.minified.js index 5101e73c16cb..a46fd2a54158 100644 --- a/crates/swc/tests/tsc-references/privateNameFieldsESNext_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameFieldsESNext_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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 _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"; var _a = new WeakMap(), _b = new WeakMap(), _something = new WeakMap(), C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es2015.1.normal.js index 6022bef19c93..3fc9c3662929 100644 --- a/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _brand_check_brand = new WeakSet(); var _unused = /*#__PURE__*/ new WeakMap(), _brand = /*#__PURE__*/ new WeakMap(); // @strict: true diff --git a/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es2015.2.minified.js index 4da7cc34e23f..837bfcebb103 100644 --- a/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; new WeakSet(); diff --git a/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es5.1.normal.js index 76e849f684a9..77a390595780 100644 --- a/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _brand_check_brand = new WeakSet(); var _unused = /*#__PURE__*/ new WeakMap(), _brand = /*#__PURE__*/ new WeakMap(); // @strict: true diff --git a/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es5.2.minified.js index 41982b57a3ac..1627a491fe8d 100644 --- a/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameInInExpressionUnused_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _brand_check_brand = new WeakSet(), _unused = new WeakMap(), _brand = new WeakMap(), Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es2015.1.normal.js index b35bfc6edb1b..b145ff63eb6f 100644 --- a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _y = /*#__PURE__*/ new WeakMap(); // @target: es2015 class Test { diff --git a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es2015.2.minified.js index 4dd6709316ab..b74178b18fea 100644 --- a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es2015.2.minified.js @@ -1,3 +1,3 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; diff --git a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es5.1.normal.js index 279c2f3a908f..a1c308b80dfc 100644 --- a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _y = /*#__PURE__*/ new WeakMap(); // @target: es2015 var Test = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es5.2.minified.js index 6944a5d55c91..d02f3ce8be75 100644 --- a/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameInLhsReceiverExpression_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _y = new WeakMap(), Test = function() { "use strict"; function Test() { diff --git a/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es2015.1.normal.js index 2169b537dc08..6bbb4d40aaaa 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; // @target: esnext, es2022 // @useDefineForClassFields: true class B { diff --git a/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es2015.2.minified.js index a700c561f9cc..b29bd3dd3b55 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es2015.2.minified.js @@ -1 +1 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es5.1.normal.js index 9dd39671555a..6871e28fcd47 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es5.1.normal.js @@ -1,8 +1,8 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext, es2022 // @useDefineForClassFields: true var B = function B() { diff --git a/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es5.2.minified.js index e1fc4791b5dc..65c7d62d36d6 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuperUseDefineForClassFields_es5.2.minified.js @@ -1,8 +1,8 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/privateNameLateSuper_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameLateSuper_es2015.1.normal.js index 6b189063511b..cbd7a2c97c41 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuper_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuper_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; // @target: es2015 class B { } diff --git a/crates/swc/tests/tsc-references/privateNameLateSuper_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameLateSuper_es2015.2.minified.js index a700c561f9cc..b29bd3dd3b55 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuper_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuper_es2015.2.minified.js @@ -1 +1 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameLateSuper_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameLateSuper_es5.1.normal.js index efeecd44ba04..b9592d13706a 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuper_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuper_es5.1.normal.js @@ -1,8 +1,8 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es2015 var B = function B() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameLateSuper_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameLateSuper_es5.2.minified.js index e1fc4791b5dc..65c7d62d36d6 100644 --- a/crates/swc/tests/tsc-references/privateNameLateSuper_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameLateSuper_es5.2.minified.js @@ -1,8 +1,8 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/privateNameMethodAssignment_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodAssignment_es2015.1.normal.js index 014be8441910..056deca49e6f 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAssignment_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAssignment_es2015.1.normal.js @@ -1,8 +1,8 @@ -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _class_private_field_destructure from "@swc/helpers/lib/_class_private_field_destructure.js"; +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 _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 _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; var _method = /*#__PURE__*/ new WeakSet(); // @target: es2015 class A3 { diff --git a/crates/swc/tests/tsc-references/privateNameMethodAssignment_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodAssignment_es2015.2.minified.js index 65dddb267b26..34a4942047d3 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAssignment_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAssignment_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _class_private_field_destructure from "@swc/helpers/lib/_class_private_field_destructure.js"; +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 _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 _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameMethodAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodAssignment_es5.1.normal.js index df0a56522c3b..f6a0eb0e9879 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAssignment_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _class_private_field_destructure from "@swc/helpers/lib/_class_private_field_destructure.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.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 _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 _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; var _method = /*#__PURE__*/ new WeakSet(); // @target: es2015 var A3 = function A3(a, b) { diff --git a/crates/swc/tests/tsc-references/privateNameMethodAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodAssignment_es5.2.minified.js index 1e7c15182b2b..cab8afc62251 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAssignment_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _class_private_field_destructure from "@swc/helpers/lib/_class_private_field_destructure.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.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 _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 _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; var _method = new WeakSet(), A3 = function(a, b) { "use strict"; var ref; diff --git a/crates/swc/tests/tsc-references/privateNameMethodAsync_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodAsync_es2015.1.normal.js index 486d003df10a..83cd31e994c0 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAsync_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAsync_es2015.1.normal.js @@ -1,8 +1,8 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 _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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; var _bar, _baz, _qux, _class; // @target: es2019 const C = (_bar = /*#__PURE__*/ new WeakSet(), _baz = /*#__PURE__*/ new WeakSet(), _qux = /*#__PURE__*/ new WeakSet(), _class = class { diff --git a/crates/swc/tests/tsc-references/privateNameMethodAsync_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodAsync_es2015.2.minified.js index dc193bd4765e..4008c30b68bd 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAsync_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAsync_es2015.2.minified.js @@ -1,9 +1,9 @@ var _bar, _baz, _qux; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 _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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; let C = (_bar = new WeakSet(), _baz = new WeakSet(), _qux = new WeakSet(), class { foo() { var _this = this; diff --git a/crates/swc/tests/tsc-references/privateNameMethodAsync_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodAsync_es5.1.normal.js index 1ae3c8cbd2ca..9d8fa23d06e8 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAsync_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAsync_es5.1.normal.js @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 _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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(baz); var _bar, _baz, _qux, _class; diff --git a/crates/swc/tests/tsc-references/privateNameMethodAsync_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodAsync_es5.2.minified.js index 37e9f7cbd3e0..b9e0f262a878 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodAsync_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodAsync_es5.2.minified.js @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 _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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _bar, _baz, _qux, _marked = regeneratorRuntime.mark(baz); function bar() { diff --git a/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es2015.1.normal.js index 221cecd3b0ad..4f1a9ddf3567 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _method = /*#__PURE__*/ new WeakSet(), _method2 = /*#__PURE__*/ new WeakSet(); // @target: es2015 class AA { diff --git a/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es2015.2.minified.js index 8e7ba8154eac..5200696808d5 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _method = new WeakSet(), _method2 = new WeakSet(); class AA { test() { diff --git a/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es5.1.normal.js index 710605213c1c..61f97f3ef47c 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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 _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es5.2.minified.js index 56c02a899c99..25c985819127 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodCallExpression_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +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 _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es2015.1.normal.js index c0f6e90e08a9..a630bb85e4d1 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _ref, _method = /*#__PURE__*/ new WeakSet(); // @target: es2015 class C { diff --git a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es2015.2.minified.js index 570c31a24fbf..1bb72bbf6e7e 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _ref, _method = new WeakSet(); class C { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es5.1.normal.js index 0fa74b914e7a..cacc70cfc2da 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _ref, _method = /*#__PURE__*/ new WeakSet(); // @target: es2015 var C = function C() { diff --git a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es5.2.minified.js index 15f666d53cc7..ccced3a16d91 100644 --- a/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethodInStaticFieldInit_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _ref, _method = new WeakSet(), C = function() { "use strict"; _class_call_check(this, C), _class_private_method_init(this, _method); diff --git a/crates/swc/tests/tsc-references/privateNameMethod_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethod_es2015.1.normal.js index df6a166c69da..792e6129e3f9 100644 --- a/crates/swc/tests/tsc-references/privateNameMethod_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethod_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _method = /*#__PURE__*/ new WeakSet(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameMethod_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethod_es2015.2.minified.js index 20ff8aad0e01..89230e734856 100644 --- a/crates/swc/tests/tsc-references/privateNameMethod_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethod_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; diff --git a/crates/swc/tests/tsc-references/privateNameMethod_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameMethod_es5.1.normal.js index be1d5d062306..12e44e5aec3c 100644 --- a/crates/swc/tests/tsc-references/privateNameMethod_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameMethod_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _method = /*#__PURE__*/ new WeakSet(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNameMethod_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameMethod_es5.2.minified.js index eee7c9764180..b6d333058aac 100644 --- a/crates/swc/tests/tsc-references/privateNameMethod_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameMethod_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _method = new WeakSet(), A1 = function(name) { "use strict"; _class_call_check(this, A1), _class_private_method_init(this, _method), _class_private_method_get(this, _method, method).call(this, ""), _class_private_method_get(this, _method, method).call(this, 1), _class_private_method_get(this, _method, method).call(this); diff --git a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es2015.1.normal.js index 571b886d17ac..aef3759a5be3 100644 --- a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es2015.2.minified.js index a700c561f9cc..b29bd3dd3b55 100644 --- a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es2015.2.minified.js @@ -1 +1 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es5.1.normal.js index da1e4ae842e6..29681a0dfd74 100644 --- a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2015 var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es5.2.minified.js index 9b0a1930f703..a3810aa14d17 100644 --- a/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameNestedClassNameConflict_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateNameReadonly_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameReadonly_es2015.1.normal.js index e3cec1cb1dcb..9a805f1c5cc4 100644 --- a/crates/swc/tests/tsc-references/privateNameReadonly_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameReadonly_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _bar, _class; // @target: es2015 const C = (_bar = /*#__PURE__*/ new WeakSet(), _class = class { diff --git a/crates/swc/tests/tsc-references/privateNameReadonly_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameReadonly_es2015.2.minified.js index a683b3449cc3..02d5655fe0b6 100644 --- a/crates/swc/tests/tsc-references/privateNameReadonly_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameReadonly_es2015.2.minified.js @@ -1,6 +1,6 @@ var _bar; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; let C = (_bar = new WeakSet(), class { foo() { _class_private_field_set(this, _bar, console.log("should log this then throw")); diff --git a/crates/swc/tests/tsc-references/privateNameReadonly_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameReadonly_es5.1.normal.js index 756396bd0f30..da6f36f0f757 100644 --- a/crates/swc/tests/tsc-references/privateNameReadonly_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameReadonly_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.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"; var _bar, _class; // @target: es2015 var C = (_bar = /*#__PURE__*/ new WeakSet(), _class = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameReadonly_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameReadonly_es5.2.minified.js index 5d832010b280..b361e1035028 100644 --- a/crates/swc/tests/tsc-references/privateNameReadonly_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameReadonly_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.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"; var _bar, C = (_bar = new WeakSet(), function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es2015.1.normal.js index 12e3218c1550..f97860907169 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.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"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2019 class C { diff --git a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es2015.2.minified.js index 5b548b663859..4fcb93066518 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.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"; var _foo = new WeakMap(); new class { bar() { diff --git a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es5.1.normal.js index 334207db9949..5760da1502fd 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2019 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es5.2.minified.js index 45ec2f277b86..bc78af477dc8 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameSetterExprReturnValue_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _foo = new WeakMap(), C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es2015.1.normal.js index 9fd647b86f29..87b1be5d6a9e 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _x, _class; // @target: es2015 const C = (_x = /*#__PURE__*/ new WeakMap(), _class = class { diff --git a/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es2015.2.minified.js index f9bf4afc8a46..30961bbb99d2 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es2015.2.minified.js @@ -1,7 +1,7 @@ var _x; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; let C = (_x = new WeakMap(), class { m() { _class_private_field_set(this, _x, _class_private_field_get(this, _x) + 2); diff --git a/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es5.1.normal.js index 9e963ec79f26..4fbed4a33f28 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _x, _class; // @target: es2015 var C = (_x = /*#__PURE__*/ new WeakMap(), _class = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es5.2.minified.js index f0c80ca4ac1a..92cf949b9a18 100644 --- a/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameSetterNoGetter_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _x, C = (_x = new WeakMap(), function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es2015.1.normal.js index 52bcacddf914..cf6a930e16d8 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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"; // @target: es2015 class A { static test() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es2015.2.minified.js index 031e09f1426a..e25ea6e2c792 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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"; class A { static test() { _class_static_private_field_spec_get(this, A, _fieldFunc).call(A); diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es5.1.normal.js index d35670cdb266..e42825cca8f4 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es5.1.normal.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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 _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es5.2.minified.js index 76e4957da7cf..0af9216af95e 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessorsCallExpression_es5.2.minified.js @@ -1,9 +1,9 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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 _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessors_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticAccessors_es2015.1.normal.js index 22be8421b8f3..2b49105ffc5e 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessors_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessors_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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"; // @strict: true // @target: es6 class A1 { diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessors_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticAccessors_es2015.2.minified.js index ba47c6d64868..ad8194b7282b 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessors_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessors_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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"; class A1 { constructor(name){ _class_static_private_field_spec_set(A1, A1, _prop, ""), _class_static_private_field_spec_set(A1, A1, _roProp, ""), console.log(_class_static_private_field_spec_get(A1, A1, _prop)), console.log(_class_static_private_field_spec_get(A1, A1, _roProp)); diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessors_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticAccessors_es5.1.normal.js index 72452970799b..38656228a4fe 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessors_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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"; // @strict: true // @target: es6 var A1 = function A1(name) { diff --git a/crates/swc/tests/tsc-references/privateNameStaticAccessors_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticAccessors_es5.2.minified.js index bc9320e41bf5..9b436de6a8d8 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAccessors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAccessors_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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"; var A1 = function(name) { "use strict"; _class_call_check(this, A1), _class_static_private_field_spec_set(A1, A1, _prop, ""), _class_static_private_field_spec_set(A1, A1, _roProp, ""), console.log(_class_static_private_field_spec_get(A1, A1, _prop)), console.log(_class_static_private_field_spec_get(A1, A1, _roProp)); diff --git a/crates/swc/tests/tsc-references/privateNameStaticAndStaticInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticAndStaticInitializer_es5.1.normal.js index e80b87d671db..6290b39e324b 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAndStaticInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAndStaticInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es2015 // @useDefineForClassFields: false var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticAndStaticInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticAndStaticInitializer_es5.2.minified.js index 27acadfb465c..592a79d4705e 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticAndStaticInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticAndStaticInitializer_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es2015.1.normal.js index a79d10e0dcac..5532f6505566 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +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"; // @target: es2015 // @importHelpers: true // @isolatedModules: true diff --git a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es2015.2.minified.js index d9edd687c483..8d3fe9e981f0 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +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"; export class S { } diff --git a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es5.1.normal.js index 0edd8ded69ba..e6e581047c62 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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"; // @target: es2015 // @importHelpers: true // @isolatedModules: true diff --git a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es5.2.minified.js index 70b0a45c3f91..5184cc60a527 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticEmitHelpers_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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"; export var S = function() { "use strict"; _class_call_check(this, S); diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es2015.1.normal.js index 6eb50b954340..b6cd8bf18752 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; // @target: es2015 class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es2015.2.minified.js index 973f1fd68bf2..18a18b20edf5 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; class A { constructor(){ console.log(_class_static_private_field_spec_get(A, A, _myField)), console.log(_class_static_private_field_spec_get(this, A, _myField)); diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es5.1.normal.js index 7a5fafd998b2..395defe3da47 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; // @target: es2015 var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es5.2.minified.js index b0b1582fb20a..2fc39ca77221 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAccess_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var A = function() { "use strict"; _class_call_check(this, A), console.log(_class_static_private_field_spec_get(A, A, _myField)), console.log(_class_static_private_field_spec_get(this, A, _myField)); diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es2015.1.normal.js index 59e0b15ef1d4..822720a31873 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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"; // @target: es2015 class A { static getClass() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es2015.2.minified.js index d1aa1aa6efc7..52bb39bf0e3b 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +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"; class A { static getClass() { return A; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es5.1.normal.js index b64fffff7e9e..582c0ceed604 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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"; // @target: es2015 var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es5.2.minified.js index a016bee9c33b..09aa105de38e 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldAssignment_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es2015.1.normal.js index 5aee923b5103..60db720de5ff 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; // @target: es2015 class A { test() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es2015.2.minified.js index 87b260f4fad5..b1841dbff8ce 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; class A { test() { var ref; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es5.1.normal.js index e4a5d471bfc9..40a0adf74fb5 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es5.2.minified.js index 1912f3bacf50..57aa6c79de6e 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldCallExpression_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es2015.1.normal.js index 7ca260da6159..e7b7bdb2f204 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _class, _Foo; // @target: es2015 class B { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es2015.2.minified.js index 6aca84e57d62..a2f2bb2f0068 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; 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/privateNameStaticFieldClassExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es5.1.normal.js index 681bc47ef560..463650f59f20 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _class, _Foo; // @target: es2015 var B = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es5.2.minified.js index c3193a8259f3..629f6c3e9e2a 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldClassExpression_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _class, _Foo, B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es2015.1.normal.js index 6c20246fa531..1eea0c11b079 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_field_destructure from "@swc/helpers/lib/_class_static_private_field_destructure.js"; +import _class_static_private_field_destructure from "@swc/helpers/src/_class_static_private_field_destructure.mjs"; // @target: esnext, es2022, es2015 // @useDefineForClassFields: false class A { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es2015.2.minified.js index 561163128e3f..ed4c4a2e4600 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_field_destructure from "@swc/helpers/lib/_class_static_private_field_destructure.js"; +import _class_static_private_field_destructure from "@swc/helpers/src/_class_static_private_field_destructure.mjs"; class A { testObject() { return { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es5.1.normal.js index 491a3dd49707..bdc067ea8644 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _class_static_private_field_destructure from "@swc/helpers/lib/_class_static_private_field_destructure.js"; +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 _class_static_private_field_destructure from "@swc/helpers/src/_class_static_private_field_destructure.mjs"; // @target: esnext, es2022, es2015 // @useDefineForClassFields: false var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es5.2.minified.js index e5e16c3f4373..f0c5cdb44a8c 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldDestructuredBinding_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _class_static_private_field_destructure from "@swc/helpers/lib/_class_static_private_field_destructure.js"; +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 _class_static_private_field_destructure from "@swc/helpers/src/_class_static_private_field_destructure.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldInitializer_es5.1.normal.js index 14bbd7c714f2..e2c46dc3b69a 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: es2015, es2022, esnext // @useDefineForClassFields: false var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldInitializer_es5.2.minified.js index 27acadfb465c..592a79d4705e 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldInitializer_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldNoInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldNoInitializer_es5.1.normal.js index bb3f42ee72d1..0efc8b926ed6 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldNoInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldNoInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _class, _x; // @target: es2015, es2022, esnext var C = (_class = function _class1() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldNoInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldNoInitializer_es5.2.minified.js index 188bbeebaca8..8f16ebe4cb71 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldNoInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldNoInitializer_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C2 = function() { "use strict"; _class_call_check(this, C2); diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es2015.1.normal.js index 6eb9818ac99e..87d589579a48 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; +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"; // @target: es2015 class C { test() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es2015.2.minified.js index 2fbfbee4e891..4f13ab5f2efd 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; +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"; class C { test() { for(_class_static_private_field_update(this.getClass(), C, _test).value++, _class_static_private_field_update(this.getClass(), C, _test).value--, ++_class_static_private_field_update(this.getClass(), C, _test).value, --_class_static_private_field_update(this.getClass(), C, _test).value, _class_static_private_field_update(this.getClass(), C, _test).value++, _class_static_private_field_update(this.getClass(), C, _test).value--, ++_class_static_private_field_update(this.getClass(), C, _test).value, --_class_static_private_field_update(this.getClass(), C, _test).value, _class_static_private_field_spec_set(this.getClass(), C, _test, 0); 10 > _class_static_private_field_spec_get(this.getClass(), C, _test); ++_class_static_private_field_update(this.getClass(), C, _test).value); diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es5.1.normal.js index 42518a218ae1..25b5ff8d79d3 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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"; // @target: es2015 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es5.2.minified.js index c2661f464bee..b61e46e67e94 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticFieldUnaryMutation_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +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"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es2015.1.normal.js index ba8068234d4b..b7cb4eeda3ba 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _class_static_private_field_destructure from "@swc/helpers/lib/_class_static_private_field_destructure.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +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"; // @target: es2015 class A3 { constructor(a, b){ diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es2015.2.minified.js index 489611dbc830..2ff8348cbd72 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _class_static_private_field_destructure from "@swc/helpers/lib/_class_static_private_field_destructure.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +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"; class A3 { constructor(a, b){ _class_static_private_field_spec_set(A3, A3, _method, ()=>{}), _class_static_private_field_spec_set(a, A3, _method, ()=>{}), _class_static_private_field_spec_set(b, A3, _method, ()=>{}), ({ x: _class_static_private_field_destructure(A3, A3, _method).value } = { diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es5.1.normal.js index 587c7d6d3d18..cf145ac0dd89 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _class_static_private_field_destructure from "@swc/helpers/lib/_class_static_private_field_destructure.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.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 _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"; // @target: es2015 var A3 = function A3(a, b) { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es5.2.minified.js index 0981cc36f135..1dcde6c72950 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodAssignment_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _class_static_private_field_destructure from "@swc/helpers/lib/_class_static_private_field_destructure.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.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 _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"; var A3 = function(a, b) { "use strict"; var ref; diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es2015.1.normal.js index 3ec019359468..3053129b653c 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @target: es2015 class AA { test() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es2015.2.minified.js index da9bf3824d53..0ec0df45de82 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; class AA { test() { _class_static_private_method_get(AA, AA, method).call(AA); diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es5.1.normal.js index 8c2faec804d6..87dc1764c7a4 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es5.2.minified.js index 9642db3cba05..62d02177aad5 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodCallExpression_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _construct from "@swc/helpers/lib/_construct.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _construct from "@swc/helpers/src/_construct.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; function _templateObject() { var data = _tagged_template_literal([ "head", diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es2015.1.normal.js index 1b9b23778d99..ec7461fe9e0f 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @target: es2015 class C { } diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es2015.2.minified.js index 9dfc0d4e2f19..d5ea7d434191 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; class C { } function method() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es5.1.normal.js index 98181517f69a..55ce5fed63cf 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @target: es2015 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es5.2.minified.js index 5558487a034a..17be178f9775 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethodInStaticFieldInit_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethod_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethod_es2015.1.normal.js index 697a4e33f22c..aa5ee6df4551 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethod_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethod_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @strict: true // @target: es6 class A1 { diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethod_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethod_es2015.2.minified.js index d58accfb2ce3..577109a27d69 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethod_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethod_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; class A1 { constructor(){ _class_static_private_method_get(A1, A1, method).call(A1, ""), _class_static_private_method_get(A1, A1, method).call(A1, 1), _class_static_private_method_get(A1, A1, method).call(A1); diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethod_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticMethod_es5.1.normal.js index 7998c62acd37..746548e3be3e 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethod_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethod_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @strict: true // @target: es6 var A1 = function A1() { diff --git a/crates/swc/tests/tsc-references/privateNameStaticMethod_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticMethod_es5.2.minified.js index 9884c45e3049..07ae07e353b3 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticMethod_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticMethod_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; var A1 = function() { "use strict"; _class_call_check(this, A1), _class_static_private_method_get(A1, A1, method).call(A1, ""), _class_static_private_method_get(A1, A1, method).call(A1, 1), _class_static_private_method_get(A1, A1, method).call(A1); diff --git a/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es2015.1.normal.js index 45261fcd5e21..8d20cc767564 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es2015.1.normal.js @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @strict: true // @target: esnext, es2022 // @lib: esnext, es2022 diff --git a/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es2015.2.minified.js index 52dd652fbd43..001f1a4b878a 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es2015.2.minified.js @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; class A { constructor(){ _class_static_private_method_get(A, A, function(a) {}).call(A, 30), _class_static_private_method_get(A, A, bar).call(A, 30), _class_static_private_method_get(A, A, bar).call(A, 30), _class_static_private_field_spec_set(A, A, _quux, _class_static_private_field_spec_get(A, A, _quux) + 1), _class_static_private_field_update(A, A, _quux).value++; diff --git a/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es5.1.normal.js index 53961e64a000..0c7d530247a3 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es5.1.normal.js @@ -1,12 +1,12 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @strict: true // @target: esnext, es2022 diff --git a/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es5.2.minified.js index 8f43b107aca5..686df317a613 100644 --- a/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameStaticsAndStaticMethods_es5.2.minified.js @@ -1,12 +1,12 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNameUnused_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNameUnused_es2015.1.normal.js index b6ee36f85d77..60f7e36ca503 100644 --- a/crates/swc/tests/tsc-references/privateNameUnused_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameUnused_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _used = /*#__PURE__*/ new WeakMap(), _unused = /*#__PURE__*/ new WeakMap(); // @noUnusedLocals:true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/privateNameUnused_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNameUnused_es2015.2.minified.js index fc3007ce12f9..c705f7e62a59 100644 --- a/crates/swc/tests/tsc-references/privateNameUnused_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameUnused_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _used = new WeakMap(), _unused = new WeakMap(); export class A { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateNameUnused_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNameUnused_es5.1.normal.js index 186b65d57b66..cc9d15fefc9c 100644 --- a/crates/swc/tests/tsc-references/privateNameUnused_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNameUnused_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _used = /*#__PURE__*/ new WeakMap(), _unused = /*#__PURE__*/ new WeakMap(); // @noUnusedLocals:true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/privateNameUnused_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNameUnused_es5.2.minified.js index 17c813e8099f..c8ddecd93e41 100644 --- a/crates/swc/tests/tsc-references/privateNameUnused_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNameUnused_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _used = new WeakMap(), _unused = new WeakMap(); export var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNamesAndFields_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndFields_es2015.1.normal.js index 60c3b3c37038..7f07883b8476 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndFields_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndFields_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.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"; var _foo = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNamesAndFields_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndFields_es2015.2.minified.js index 9fd6f14e6024..5b18d757677b 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndFields_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndFields_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.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"; diff --git a/crates/swc/tests/tsc-references/privateNamesAndFields_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndFields_es5.1.normal.js index 710638dd036a..ffdbd7cd5fdd 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndFields_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndFields_es5.1.normal.js @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNamesAndFields_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndFields_es5.2.minified.js index d5908d533504..5a403c9e93a5 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndFields_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndFields_es5.2.minified.js @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _foo = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateNamesAndMethods_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndMethods_es2015.1.normal.js index 451075e18897..03da64b93423 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndMethods_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndMethods_es2015.1.normal.js @@ -1,11 +1,11 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.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 _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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; var _foo = /*#__PURE__*/ new WeakSet(), _bar = /*#__PURE__*/ new WeakSet(), _baz = /*#__PURE__*/ new WeakSet(), __quux = /*#__PURE__*/ new WeakMap(), _quux = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022 // @lib: esnext, es2022 diff --git a/crates/swc/tests/tsc-references/privateNamesAndMethods_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndMethods_es2015.2.minified.js index 209f0ebb9e83..f4a6a751542f 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndMethods_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndMethods_es2015.2.minified.js @@ -1,8 +1,8 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.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 _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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNamesAndMethods_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndMethods_es5.1.normal.js index cc78f0554672..db05fbf734d0 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndMethods_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndMethods_es5.1.normal.js @@ -1,15 +1,15 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; +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 _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 _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 _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 regeneratorRuntime from "regenerator-runtime"; var _foo = /*#__PURE__*/ new WeakSet(), _bar = /*#__PURE__*/ new WeakSet(), _baz = /*#__PURE__*/ new WeakSet(), __quux = /*#__PURE__*/ new WeakMap(), _quux = /*#__PURE__*/ new WeakMap(); // @target: esnext, es2022 diff --git a/crates/swc/tests/tsc-references/privateNamesAndMethods_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndMethods_es5.2.minified.js index 32f16550563d..7afcea4b2ee0 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndMethods_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndMethods_es5.2.minified.js @@ -1,15 +1,15 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _class_private_field_update from "@swc/helpers/lib/_class_private_field_update.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _assert_this_initialized from "@swc/helpers/src/_assert_this_initialized.mjs"; +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 _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 _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 _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 regeneratorRuntime from "regenerator-runtime"; var _foo = new WeakSet(), _bar = new WeakSet(), _baz = new WeakSet(), __quux = new WeakMap(), _quux = new WeakMap(), A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es2015.1.normal.js index 45261fcd5e21..8d20cc767564 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es2015.1.normal.js @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @strict: true // @target: esnext, es2022 // @lib: esnext, es2022 diff --git a/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es2015.2.minified.js index 52dd652fbd43..001f1a4b878a 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es2015.2.minified.js @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; class A { constructor(){ _class_static_private_method_get(A, A, function(a) {}).call(A, 30), _class_static_private_method_get(A, A, bar).call(A, 30), _class_static_private_method_get(A, A, bar).call(A, 30), _class_static_private_field_spec_set(A, A, _quux, _class_static_private_field_spec_get(A, A, _quux) + 1), _class_static_private_field_update(A, A, _quux).value++; diff --git a/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es5.1.normal.js index 53961e64a000..0c7d530247a3 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es5.1.normal.js @@ -1,12 +1,12 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @strict: true // @target: esnext, es2022 diff --git a/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es5.2.minified.js index 8f43b107aca5..686df317a613 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndStaticMethods_es5.2.minified.js @@ -1,12 +1,12 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _class_static_private_field_spec_set from "@swc/helpers/lib/_class_static_private_field_spec_set.js"; -import _class_static_private_field_update from "@swc/helpers/lib/_class_static_private_field_update.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; var A = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNamesAndkeyof_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndkeyof_es2015.1.normal.js index 95a4cd52cc34..17a199384464 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndkeyof_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndkeyof_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _fooField = /*#__PURE__*/ new WeakMap(), _fooMethod = /*#__PURE__*/ new WeakSet(), _fooProp = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNamesAndkeyof_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndkeyof_es2015.2.minified.js index 8d54f4d56fd1..1286e0fb78fc 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndkeyof_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndkeyof_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNamesAndkeyof_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAndkeyof_es5.1.normal.js index 4dfcbe06a58e..cd65571ca9c2 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndkeyof_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAndkeyof_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _fooField = /*#__PURE__*/ new WeakMap(), _fooMethod = /*#__PURE__*/ new WeakSet(), _fooProp = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNamesAndkeyof_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAndkeyof_es5.2.minified.js index 844b2fa14b8d..383716e195e9 100644 --- a/crates/swc/tests/tsc-references/privateNamesAndkeyof_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAndkeyof_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _fooField = new WeakMap(), _fooMethod = new WeakSet(), _fooProp = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_method_init(this, _fooMethod), _class_private_field_init(this, _fooProp, { diff --git a/crates/swc/tests/tsc-references/privateNamesAssertion_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAssertion_es2015.1.normal.js index c88d448e16f8..b63470d143d5 100644 --- a/crates/swc/tests/tsc-references/privateNamesAssertion_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAssertion_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _p1 = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: esnext, es2022 diff --git a/crates/swc/tests/tsc-references/privateNamesAssertion_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAssertion_es2015.2.minified.js index 0e4ad9d3e09e..6bca05887fbf 100644 --- a/crates/swc/tests/tsc-references/privateNamesAssertion_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAssertion_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; diff --git a/crates/swc/tests/tsc-references/privateNamesAssertion_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesAssertion_es5.1.normal.js index 3f104232f912..235564045035 100644 --- a/crates/swc/tests/tsc-references/privateNamesAssertion_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesAssertion_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _p1 = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: esnext, es2022 diff --git a/crates/swc/tests/tsc-references/privateNamesAssertion_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesAssertion_es5.2.minified.js index ebe8218dd3aa..9e199256cdb0 100644 --- a/crates/swc/tests/tsc-references/privateNamesAssertion_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesAssertion_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _p1 = new WeakMap(), Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es2015.1.normal.js index 3deee70b72df..c43a7b091ba6 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2015 class Parent { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es2015.2.minified.js index 0b373241f930..87f5e93fa034 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _foo = new WeakMap(); class Parent { accessChildProps() { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es5.1.normal.js index d27923d23dcd..dc2961fd150c 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es5.1.normal.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2015 var Parent = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es5.2.minified.js index 790d299c1ca1..6a91bb960dc9 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-1_es5.2.minified.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _foo = new WeakMap(), Parent = function() { "use strict"; function Parent() { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es2015.1.normal.js index f3f1e99a3e25..f4e3144ab364 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2015 class Parent { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es2015.2.minified.js index 2f443b1e2891..052851f46d70 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es2015.2.minified.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _foo = new WeakMap(); class Parent { accessChildProps() { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es5.1.normal.js index 3558f5b0e8f4..a9c006ed38a9 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es5.1.normal.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2015 var Parent = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es5.2.minified.js index e50b2e559051..77706059cf02 100644 --- a/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesConstructorChain-2_es5.2.minified.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _foo = new WeakMap(), Parent = function() { "use strict"; function Parent() { diff --git a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es2015.1.normal.js index 36fa89bf496f..bbbced1486ce 100644 --- a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var /** * @public */ _a = /*#__PURE__*/ new WeakMap(), /** diff --git a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es2015.2.minified.js index 8d54f4d56fd1..1286e0fb78fc 100644 --- a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_private_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es5.1.normal.js index 3dd72e701103..a1ff8c72fbff 100644 --- a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var /** * @public */ _a = /*#__PURE__*/ new WeakMap(), /** diff --git a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es5.2.minified.js index d31d24206462..0d8585171898 100644 --- a/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesIncompatibleModifiersJs_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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_method_init from "@swc/helpers/src/_class_private_method_init.mjs"; var _a = new WeakMap(), _b = new WeakMap(), _c = new WeakMap(), _aMethod = new WeakSet(), _bMethod = new WeakSet(), _cMethod = new WeakSet(), _aProp = new WeakMap(), _bProp = new WeakMap(), _cProp = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_method_init(this, _aMethod), _class_private_method_init(this, _bMethod), _class_private_method_init(this, _cMethod), _class_private_field_init(this, _aProp, { diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-1_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-1_es2015.1.normal.js index 2641301fde7d..df9cb205227b 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-1_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-1_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-1_es2015.2.minified.js index 162992990fc9..0cac7532e334 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-1_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; new class { constructor(){ _class_private_field_init(this, new WeakMap(), { diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-1_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-1_es5.1.normal.js index 6beb6d28da7f..91530ef33071 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-1_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-1_es5.2.minified.js index 7f1fee753aa2..2425c1b4c207 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-2_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-2_es2015.1.normal.js index d1ec1302a0b9..29b3d260dc7d 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-2_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; // @filename: main.ts import { Foo as A } from "./a"; import { Foo as B } from "./b"; diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-2_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-2_es2015.2.minified.js index 5acaa694a66a..076594af9203 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-2_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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 { Foo as A } from "./a"; import { Foo as B } from "./b"; var _x = new WeakMap(); diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-2_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-2_es5.1.normal.js index 162e086fc1ef..f0c982e9fda4 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; // @filename: main.ts import { Foo as A } from "./a"; import { Foo as B } from "./b"; diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-2_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-2_es5.2.minified.js index db0277603073..aa5c1d6e0eaf 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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 { Foo as A } from "./a"; import { Foo as B } from "./b"; var _x = new WeakMap(); diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-3_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-3_es2015.1.normal.js index 65c65d0c6dc9..8619f2b61554 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-3_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-3_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-3_es2015.2.minified.js index e9dbfece7955..88eb8092624a 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-3_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; +import _class_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; class B { test(x) { _class_static_private_field_spec_get(x, B, _foo); diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-3_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-3_es5.1.normal.js index 48344e5fd0be..abe609ed5d2a 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @target: es2015 var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-3_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-3_es5.2.minified.js index 0dddc8b6f743..aea06fbc82be 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_static_private_field_spec_get from "@swc/helpers/lib/_class_static_private_field_spec_get.js"; +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_static_private_field_spec_get from "@swc/helpers/src/_class_static_private_field_spec_get.mjs"; var _foo = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-4_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-4_es2015.1.normal.js index 9e2099c6d326..a4b3632988ef 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; // @target: es2015 class A1 { } diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-4_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-4_es2015.2.minified.js index a700c561f9cc..b29bd3dd3b55 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-4_es2015.2.minified.js @@ -1 +1 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-4_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-4_es5.1.normal.js index 69a1ea4f353f..f1ca50d188a4 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; // @target: es2015 var A1 = function A1() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-4_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-4_es5.2.minified.js index 19e0d4b71512..df853fc9a0da 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var A1 = function() { "use strict"; _class_call_check(this, A1); diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-5_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-5_es2015.1.normal.js index cac704c58e24..85afcb9c6f7f 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; var _foo = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-5_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-5_es2015.2.minified.js index 162992990fc9..0cac7532e334 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +import _class_private_field_init from "@swc/helpers/src/_class_private_field_init.mjs"; new class { constructor(){ _class_private_field_init(this, new WeakMap(), { diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-5_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUnique-5_es5.1.normal.js index a2d15c4cf855..31991436e267 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(); // @strict: true // @target: es6 diff --git a/crates/swc/tests/tsc-references/privateNamesUnique-5_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUnique-5_es5.2.minified.js index 7f1fee753aa2..2425c1b4c207 100644 --- a/crates/swc/tests/tsc-references/privateNamesUnique-5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUnique-5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; +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"; var _foo = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es2015.1.normal.js index 4dfb169b136c..bcabe3653529 100644 --- a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); // @target: es2015 class A { diff --git a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es2015.2.minified.js index 0e4ad9d3e09e..6bca05887fbf 100644 --- a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; diff --git a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es5.1.normal.js b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es5.1.normal.js index 029c5506e201..fd1d10fe453b 100644 --- a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _foo = /*#__PURE__*/ new WeakMap(), _bar = /*#__PURE__*/ new WeakMap(); // @target: es2015 var A = function A() { diff --git a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es5.2.minified.js b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es5.2.minified.js index 2f8df874b66b..8ebca745401b 100644 --- a/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateNamesUseBeforeDef_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_method_get from "@swc/helpers/lib/_class_private_method_get.js"; -import _class_private_method_init from "@swc/helpers/lib/_class_private_method_init.js"; +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"; var _foo = new WeakMap(), _bar = new WeakMap(), A = function() { "use strict"; _class_call_check(this, A), _class_private_field_init(this, _foo, { diff --git a/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring_es5.1.normal.js b/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring_es5.1.normal.js index 5c9edcd57ecb..805bdb44cf98 100644 --- a/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var K = /*#__PURE__*/ function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring_es5.2.minified.js b/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring_es5.2.minified.js index a662f2182951..c21e66bace33 100644 --- a/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateProtectedMembersAreNotAccessibleDestructuring_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var K = function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/privateStaticMemberAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/privateStaticMemberAccessibility_es5.1.normal.js index 09476a1a4620..2fbfbeca391a 100644 --- a/crates/swc/tests/tsc-references/privateStaticMemberAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticMemberAccessibility_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/privateStaticMemberAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/privateStaticMemberAccessibility_es5.2.minified.js index 8935acc5f4bf..02c39608c701 100644 --- a/crates/swc/tests/tsc-references/privateStaticMemberAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticMemberAccessibility_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/privateStaticNameShadowing_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateStaticNameShadowing_es2015.1.normal.js index c3445c7fa5f2..8514e49040bb 100644 --- a/crates/swc/tests/tsc-references/privateStaticNameShadowing_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticNameShadowing_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @target: es2015 class X { constructor(){ diff --git a/crates/swc/tests/tsc-references/privateStaticNameShadowing_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateStaticNameShadowing_es2015.2.minified.js index 2034a1b0893b..d9048caf74fc 100644 --- a/crates/swc/tests/tsc-references/privateStaticNameShadowing_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticNameShadowing_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; class X { constructor(){ _class_static_private_method_get(X, X, m).call(X); diff --git a/crates/swc/tests/tsc-references/privateStaticNameShadowing_es5.1.normal.js b/crates/swc/tests/tsc-references/privateStaticNameShadowing_es5.1.normal.js index 60531fd7b356..274afa3c6e20 100644 --- a/crates/swc/tests/tsc-references/privateStaticNameShadowing_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticNameShadowing_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; // @target: es2015 var X = function X() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateStaticNameShadowing_es5.2.minified.js b/crates/swc/tests/tsc-references/privateStaticNameShadowing_es5.2.minified.js index acada5b8f300..1657b531f10f 100644 --- a/crates/swc/tests/tsc-references/privateStaticNameShadowing_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticNameShadowing_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_static_private_method_get from "@swc/helpers/lib/_class_static_private_method_get.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _class_static_private_method_get from "@swc/helpers/src/_class_static_private_method_get.mjs"; var X = function() { "use strict"; _class_call_check(this, X), _class_static_private_method_get(X, X, m).call(X); diff --git a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2_es5.1.normal.js b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2_es5.1.normal.js index e7251b1b88f7..615e04b7a209 100644 --- a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Any attempt to access a private property member outside the class body that contains its declaration results in a compile-time error. var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2_es5.2.minified.js b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2_es5.2.minified.js index e9c5890aea5a..912bfa89e59e 100644 --- a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule_es5.1.normal.js b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule_es5.1.normal.js index d7f5fe397083..b4eaec2c5216 100644 --- a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Any attempt to access a private property member outside the class body that contains its declaration results in a compile-time error. var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule_es5.2.minified.js b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule_es5.2.minified.js index 79e3d4a8579f..ab3e79195998 100644 --- a/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateStaticNotAccessibleInClodule_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es2015.1.normal.js b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es2015.1.normal.js index 3ce02be9c34c..8b73e1b55ed6 100644 --- a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es2015.1.normal.js @@ -1,8 +1,8 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _class_private_field_destructure from "@swc/helpers/lib/_class_private_field_destructure.js"; +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 _extends from "@swc/helpers/src/_extends.mjs"; +import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; var _value = /*#__PURE__*/ new WeakMap(), _valueRest = /*#__PURE__*/ new WeakMap(), _valueOne = /*#__PURE__*/ new WeakMap(), _valueCompound = /*#__PURE__*/ new WeakMap(); // @target: es2015 class Test { diff --git a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es2015.2.minified.js b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es2015.2.minified.js index cbe81f415162..66e2eec5e548 100644 --- a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es2015.2.minified.js @@ -1,8 +1,8 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _class_private_field_destructure from "@swc/helpers/lib/_class_private_field_destructure.js"; +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 _extends from "@swc/helpers/src/_extends.mjs"; +import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; var _value = new WeakMap(), _valueRest = new WeakMap(), _valueOne = new WeakMap(), _valueCompound = new WeakMap(); new class { m() { diff --git a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es5.1.normal.js b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es5.1.normal.js index 70f9278ca032..4e419a320a1f 100644 --- a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es5.1.normal.js @@ -1,10 +1,10 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _class_private_field_destructure from "@swc/helpers/lib/_class_private_field_destructure.js"; +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 _extends from "@swc/helpers/src/_extends.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; var _value = /*#__PURE__*/ new WeakMap(), _valueRest = /*#__PURE__*/ new WeakMap(), _valueOne = /*#__PURE__*/ new WeakMap(), _valueCompound = /*#__PURE__*/ new WeakMap(); // @target: es2015 var Test = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es5.2.minified.js b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es5.2.minified.js index 523f0569fca8..dcd762024b2f 100644 --- a/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/privateWriteOnlyAccessorRead_es5.2.minified.js @@ -1,10 +1,10 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; -import _class_private_field_destructure from "@swc/helpers/lib/_class_private_field_destructure.js"; +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 _extends from "@swc/helpers/src/_extends.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; +import _class_private_field_destructure from "@swc/helpers/src/_class_private_field_destructure.mjs"; var _value = new WeakMap(), _valueRest = new WeakMap(), _valueOne = new WeakMap(), _valueCompound = new WeakMap(), Test = function() { "use strict"; function Test() { diff --git a/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions_es5.1.normal.js b/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions_es5.1.normal.js index ea3b5d523fbd..25e86a0e44e5 100644 --- a/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; // @Filename: propertiesOfGenericConstructorFunctions.js // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions_es5.2.minified.js b/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions_es5.2.minified.js index 109a7429712e..0610160a165d 100644 --- a/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertiesOfGenericConstructorFunctions_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; function Multimap(ik, iv) { this._map = {}, this._map2 = _define_property({}, ik, iv); } diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2_es5.1.normal.js index d91e5b40a3ab..6b56c2e6aad2 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // generic types should behave as if they have properties of their constraint type var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2_es5.2.minified.js index 1a5a63eb8bca..8826b4f8d591 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var i, a, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3_es5.1.normal.js index d4776c73772d..52081ac2e331 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // generic types should behave as if they have properties of their constraint type var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3_es5.2.minified.js index 16a5a4fe72ea..8ede0e1af1b0 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var i, a, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4_es5.1.normal.js index 7e315b6dfd57..8373d6f22faa 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4_es5.2.minified.js index ab1c9cf5108c..51d627f700cd 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, a, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5_es5.1.normal.js index 6ace70a4c85b..7396823fdeaf 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5_es5.2.minified.js index e207503bda05..a07a427cc1a5 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var i, a, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints_es5.1.normal.js index bf07ebcafe82..2c68e689cf24 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // generic types should behave as if they have properties of their constraint type // no errors expected var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints_es5.2.minified.js index 789ba02dc180..5ec49482f07c 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithConstraints_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, a, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints_es5.1.normal.js index 7b9a0d555ef5..416bbf483d4a 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints_es5.2.minified.js index 40b39368cb37..00251dca0f7f 100644 --- a/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccessOnTypeParameterWithoutConstraints_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, a, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAccess_es5.1.normal.js index c87caac58276..7248793bb2ce 100644 --- a/crates/swc/tests/tsc-references/propertyAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAccess_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/propertyAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAccess_es5.2.minified.js index ade3dbbdf930..758dac323a45 100644 --- a/crates/swc/tests/tsc-references/propertyAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAccess_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Compass, bothIndex, stringOrNumber, someObject, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName_es5.1.normal.js index 9699d5b64c2a..84425c2e61d9 100644 --- a/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName_es5.2.minified.js index ba669f171200..513d07016803 100644 --- a/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAndAccessorWithSameName_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName_es5.1.normal.js index e1c833546b6a..2f07c59e0cbc 100644 --- a/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName_es5.2.minified.js index 859f43a5a3b6..84fc5f704513 100644 --- a/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyAndFunctionWithSameName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation_es5.1.normal.js index e057b5f27400..3dba9a25ff51 100644 --- a/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation_es5.2.minified.js index a2774fce5bdb..b8ed34b9b18c 100644 --- a/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyNameWithoutTypeAnnotation_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var a, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNamedPrototype_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyNamedPrototype_es5.1.normal.js index 4e6fa88dcf5f..3c714993064d 100644 --- a/crates/swc/tests/tsc-references/propertyNamedPrototype_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyNamedPrototype_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNamedPrototype_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyNamedPrototype_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/propertyNamedPrototype_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyNamedPrototype_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNamesOfReservedWords_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyNamesOfReservedWords_es5.1.normal.js index 9d20351a6bbe..6799a8195ea6 100644 --- a/crates/swc/tests/tsc-references/propertyNamesOfReservedWords_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyNamesOfReservedWords_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyNamesOfReservedWords_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyNamesOfReservedWords_es5.2.minified.js index 7fe2d2342b63..9010cf464517 100644 --- a/crates/swc/tests/tsc-references/propertyNamesOfReservedWords_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyNamesOfReservedWords_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, i, a, E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors2_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors2_es5.1.normal.js index e856416c649d..cd237fe8fe84 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors2_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext // @useDefineForClassFields: true var Base = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors2_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors2_es5.2.minified.js index f2b4cc5ccf94..e78acc68bf33 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors2_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors3_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors3_es5.1.normal.js index 632b29fc2623..3684395538ec 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext // @useDefineForClassFields: true var Animal = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors3_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors3_es5.2.minified.js index 59539d9dafc8..9f1dbf27072a 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Animal = function() { "use strict"; function Animal() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors4_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors4_es5.1.normal.js index 8c6b546454fa..67db707a05d3 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Lion = /*#__PURE__*/ function(Animal) { "use strict"; _inherits(Lion, Animal); diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors4_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors4_es5.2.minified.js index 843c62d5714a..aa8d14f64aab 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Lion = function(Animal) { "use strict"; _inherits(Lion, Animal); diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors5_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors5_es5.1.normal.js index a7ee2d372c4d..f514e610dcdd 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext // @useDefineForClassFields: true var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors5_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors5_es5.2.minified.js index 3d6cb7e27701..b1e6ef924742 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors_es5.1.normal.js index 38dbcf54085c..1a8040e2139a 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: es2015 // @useDefineForClassFields: true var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesAccessors_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyOverridesAccessors_es5.2.minified.js index 9f0e2a18a118..b641ddbcb8de 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesAccessors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyOverridesAccessors_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesMethod_es5.1.normal.js b/crates/swc/tests/tsc-references/propertyOverridesMethod_es5.1.normal.js index 3f8fe0996272..75df10e5e3f7 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesMethod_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/propertyOverridesMethod_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: esnext // @useDefineForClassFields: true var A = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/propertyOverridesMethod_es5.2.minified.js b/crates/swc/tests/tsc-references/propertyOverridesMethod_es5.2.minified.js index 84838d8ce99a..2ac26f61bcdb 100644 --- a/crates/swc/tests/tsc-references/propertyOverridesMethod_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/propertyOverridesMethod_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass_es5.1.normal.js index 0c0cd55809bb..7ad03b1b1ea5 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: ES5 // no errors var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass_es5.2.minified.js index 6f119f4a1b71..c52db9713493 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinClass_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass_es5.1.normal.js index ef368156787b..710fc720b9ba 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // @target: ES5 // no errors var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass_es5.2.minified.js index 6aa467877c1e..6dc6933a765d 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedClass_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1_es5.1.normal.js index 5c4504c26234..d84f64269eea 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1_es5.2.minified.js index 1f04a70ead8d..ef5f3250bf68 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var b, d1, d2, d3, d4, Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass_es5.1.normal.js index 2956582c2142..c532bc3b943b 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: ES5 var B = function B() { "use strict"; diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass_es5.2.minified.js index 647ad42ecdac..b7d9a70a4586 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinNestedSubclass_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2_es5.1.normal.js index edd97f43be54..835b7f8171af 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2_es5.2.minified.js index ae809417577d..feec83d3e25f 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var b, d1, d2, d3, d4, Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3_es5.1.normal.js index 33170c0db628..baca3b9f0302 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3_es5.2.minified.js index e57fc63becd9..f4e6f9fde128 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass3_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass_es5.1.normal.js index 25c6fb65eb58..69408639444c 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: ES5 // no errors var B = function B() { diff --git a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass_es5.2.minified.js index 3d775878d694..8d1b18b2ce1a 100644 --- a/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedClassPropertyAccessibleWithinSubclass_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility_es5.1.normal.js index 14b41eebf009..75bb9e015640 100644 --- a/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility_es5.2.minified.js index 1da79e21d355..d00d42979e30 100644 --- a/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedInstanceMemberAccessibility_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2_es5.1.normal.js index da66f49025a0..be9e8c7eb015 100644 --- a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2_es5.2.minified.js index 5fde6d156a17..b431ca208f8e 100644 --- a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass2_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass_es5.1.normal.js index cf2e4840823e..3ebbc0863d17 100644 --- a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass_es5.2.minified.js index 6d2ac0d7c1b7..258e75395a35 100644 --- a/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedStaticClassPropertyAccessibleWithinSubclass_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule_es5.1.normal.js b/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule_es5.1.normal.js index 975980ea12a5..f027072848bd 100644 --- a/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Any attempt to access a private property member outside the class body that contains its declaration results in a compile-time error. var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule_es5.2.minified.js b/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule_es5.2.minified.js index 890110c2579d..1278995b4f6e 100644 --- a/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/protectedStaticNotAccessibleInClodule_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/quotedConstructors_es5.1.normal.js b/crates/swc/tests/tsc-references/quotedConstructors_es5.1.normal.js index 3b7df12b00ac..8c2958f681c7 100644 --- a/crates/swc/tests/tsc-references/quotedConstructors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/quotedConstructors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/quotedConstructors_es5.2.minified.js b/crates/swc/tests/tsc-references/quotedConstructors_es5.2.minified.js index d5c89803b2ea..80d3a69531ce 100644 --- a/crates/swc/tests/tsc-references/quotedConstructors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/quotedConstructors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C), console.log(this); diff --git a/crates/swc/tests/tsc-references/readonlyConstructorAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/readonlyConstructorAssignment_es5.1.normal.js index 554012066b2e..8d90a59d2efc 100644 --- a/crates/swc/tests/tsc-references/readonlyConstructorAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/readonlyConstructorAssignment_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Tests that readonly parameter properties behave like regular readonly properties var A = function A(x) { "use strict"; diff --git a/crates/swc/tests/tsc-references/readonlyConstructorAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/readonlyConstructorAssignment_es5.2.minified.js index 8b2dd19c7737..1fe31a5d2829 100644 --- a/crates/swc/tests/tsc-references/readonlyConstructorAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/readonlyConstructorAssignment_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function(x) { "use strict"; _class_call_check(this, A), this.x = x, this.x = 0; diff --git a/crates/swc/tests/tsc-references/readonlyRestParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/readonlyRestParameters_es5.1.normal.js index 167364f24949..85bf29d6cf5c 100644 --- a/crates/swc/tests/tsc-references/readonlyRestParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/readonlyRestParameters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // @strict: true // @declaration: true function f0(a, b) { diff --git a/crates/swc/tests/tsc-references/readonlyRestParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/readonlyRestParameters_es5.2.minified.js index b837aafff776..a40fc7db0675 100644 --- a/crates/swc/tests/tsc-references/readonlyRestParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/readonlyRestParameters_es5.2.minified.js @@ -1,4 +1,4 @@ -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function f0(a, b) { f0(a, b), f1(a, b), f2(a, b); } diff --git a/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint_es5.1.normal.js b/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint_es5.1.normal.js index 1124657a8230..a8248d524ade 100644 --- a/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var G = function G() { "use strict"; _class_call_check(this, G); diff --git a/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint_es5.2.minified.js b/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint_es5.2.minified.js index 10b588ff992e..851fb3c46f0b 100644 --- a/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/recursiveTypeInGenericConstraint_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var G = function() { "use strict"; _class_call_check(this, G); diff --git a/crates/swc/tests/tsc-references/recursiveTypeReferences1_es5.1.normal.js b/crates/swc/tests/tsc-references/recursiveTypeReferences1_es5.1.normal.js index dc119eee34d4..c015269fb03a 100644 --- a/crates/swc/tests/tsc-references/recursiveTypeReferences1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/recursiveTypeReferences1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var a0 = 1; var a1 = [ 1, diff --git a/crates/swc/tests/tsc-references/recursiveTypeReferences1_es5.2.minified.js b/crates/swc/tests/tsc-references/recursiveTypeReferences1_es5.2.minified.js index a786399f7a3d..27e393a96cd3 100644 --- a/crates/swc/tests/tsc-references/recursiveTypeReferences1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/recursiveTypeReferences1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; flat([ 1, [ diff --git a/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters_es5.1.normal.js index 7f2947a1f427..578fceedf1b7 100644 --- a/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var List = function List() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters_es5.2.minified.js index 7980e32e132f..1c94b2cdca1a 100644 --- a/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/recursiveTypesUsedAsFunctionParameters_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var List = function() { "use strict"; _class_call_check(this, List); diff --git a/crates/swc/tests/tsc-references/redeclaredProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/redeclaredProperty_es5.1.normal.js index 7a5e5e99c48e..504fa29fca9a 100644 --- a/crates/swc/tests/tsc-references/redeclaredProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/redeclaredProperty_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noTypesAndSymbols: true // @strictNullChecks: true // @target: esnext diff --git a/crates/swc/tests/tsc-references/redeclaredProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/redeclaredProperty_es5.2.minified.js index 5701f0308051..7ddb33fb132b 100644 --- a/crates/swc/tests/tsc-references/redeclaredProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/redeclaredProperty_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base), this.b = 1; diff --git a/crates/swc/tests/tsc-references/redefinedPararameterProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/redefinedPararameterProperty_es5.1.normal.js index 3d10b566720a..5cc7a59b58cd 100644 --- a/crates/swc/tests/tsc-references/redefinedPararameterProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/redefinedPararameterProperty_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noTypesAndSymbols: true // @strictNullChecks: true // @target: esnext diff --git a/crates/swc/tests/tsc-references/redefinedPararameterProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/redefinedPararameterProperty_es5.2.minified.js index 490f8be65574..a2e0ab471519 100644 --- a/crates/swc/tests/tsc-references/redefinedPararameterProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/redefinedPararameterProperty_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base), this.a = 1; diff --git a/crates/swc/tests/tsc-references/reexportClassDefinition_es5.1.normal.js b/crates/swc/tests/tsc-references/reexportClassDefinition_es5.1.normal.js index 773defeb3dd4..1891a0618337 100644 --- a/crates/swc/tests/tsc-references/reexportClassDefinition_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/reexportClassDefinition_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @module: commonjs // @Filename: foo1.ts var x = function x() { diff --git a/crates/swc/tests/tsc-references/reexportClassDefinition_es5.2.minified.js b/crates/swc/tests/tsc-references/reexportClassDefinition_es5.2.minified.js index 9e14014c13d4..f21dcfd58785 100644 --- a/crates/swc/tests/tsc-references/reexportClassDefinition_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/reexportClassDefinition_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var x = function() { "use strict"; _class_call_check(this, x); diff --git a/crates/swc/tests/tsc-references/renamed_es5.1.normal.js b/crates/swc/tests/tsc-references/renamed_es5.1.normal.js index e2902ff7541b..2223f6e92aaf 100644 --- a/crates/swc/tests/tsc-references/renamed_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/renamed_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strict: true // @Filename: /a.ts var A = function A() { diff --git a/crates/swc/tests/tsc-references/renamed_es5.2.minified.js b/crates/swc/tests/tsc-references/renamed_es5.2.minified.js index 27acadfb465c..592a79d4705e 100644 --- a/crates/swc/tests/tsc-references/renamed_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/renamed_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3_es5.1.normal.js b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3_es5.1.normal.js index 988df5a03b15..39284d11cf41 100644 --- a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; var a, b; var tuple = [ "", diff --git a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3_es5.2.minified.js b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3_es5.2.minified.js index f5264dd4d120..0f2d48960a48 100644 --- a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern3_es5.2.minified.js @@ -1,6 +1,6 @@ var ref; -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; (ref = _sliced_to_array(_to_array([ "", 1 diff --git a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4_es5.1.normal.js b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4_es5.1.normal.js index 80fc702e5163..2213e5bfa7f6 100644 --- a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; var a, b; var tuple = [ "", diff --git a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4_es5.2.minified.js b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4_es5.2.minified.js index e4a129096153..3b40329d792e 100644 --- a/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/restElementWithAssignmentPattern4_es5.2.minified.js @@ -1,5 +1,5 @@ var ref; -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; (ref = _to_array([ "", 1 diff --git a/crates/swc/tests/tsc-references/restElementWithNullInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/restElementWithNullInitializer_es5.1.normal.js index 6d3f15689e9f..8a9fe6689bee 100644 --- a/crates/swc/tests/tsc-references/restElementWithNullInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/restElementWithNullInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/restElementWithNullInitializer_es5.2.minified.js index cae5be84a274..a332166d0bff 100644 --- a/crates/swc/tests/tsc-references/restElementWithNullInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/restElementWithNullInitializer_es5.2.minified.js @@ -1 +1 @@ -import _to_array from "@swc/helpers/lib/_to_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/restTuplesFromContextualTypes_es5.1.normal.js b/crates/swc/tests/tsc-references/restTuplesFromContextualTypes_es5.1.normal.js index 864309e0e173..20443d500074 100644 --- a/crates/swc/tests/tsc-references/restTuplesFromContextualTypes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/restTuplesFromContextualTypes_es5.1.normal.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; (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_es5.2.minified.js b/crates/swc/tests/tsc-references/restTuplesFromContextualTypes_es5.2.minified.js index 3bc9603aeabc..21f4debe747b 100644 --- a/crates/swc/tests/tsc-references/restTuplesFromContextualTypes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/restTuplesFromContextualTypes_es5.2.minified.js @@ -1,5 +1,5 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; (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++)x[_key] = arguments[_key]; }).apply(this, _to_consumable_array(t1)), (function(a) { diff --git a/crates/swc/tests/tsc-references/returnStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/returnStatements_es5.1.normal.js index a84a334f7dd2..43130d42fbe4 100644 --- a/crates/swc/tests/tsc-references/returnStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/returnStatements_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // all the following should be valid function fn1() { return 1; diff --git a/crates/swc/tests/tsc-references/returnStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/returnStatements_es5.2.minified.js index 715d205e1e8d..b99c2d15a3b4 100644 --- a/crates/swc/tests/tsc-references/returnStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/returnStatements_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/returnTagTypeGuard_es5.1.normal.js b/crates/swc/tests/tsc-references/returnTagTypeGuard_es5.1.normal.js index 74759255d9f5..f96ce6be371f 100644 --- a/crates/swc/tests/tsc-references/returnTagTypeGuard_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/returnTagTypeGuard_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/returnTagTypeGuard_es5.2.minified.js b/crates/swc/tests/tsc-references/returnTagTypeGuard_es5.2.minified.js index bad611171d6e..d6c655efb443 100644 --- a/crates/swc/tests/tsc-references/returnTagTypeGuard_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/returnTagTypeGuard_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Entry = function() { "use strict"; function Entry() { diff --git a/crates/swc/tests/tsc-references/scannerClass2_es5.1.normal.js b/crates/swc/tests/tsc-references/scannerClass2_es5.1.normal.js index d924cf6cbd22..bf3968eb4354 100644 --- a/crates/swc/tests/tsc-references/scannerClass2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/scannerClass2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var LoggerAdapter = function LoggerAdapter(logger) { "use strict"; _class_call_check(this, LoggerAdapter); diff --git a/crates/swc/tests/tsc-references/scannerClass2_es5.2.minified.js b/crates/swc/tests/tsc-references/scannerClass2_es5.2.minified.js index 77d8cb48e731..8bdf79086c92 100644 --- a/crates/swc/tests/tsc-references/scannerClass2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/scannerClass2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var LoggerAdapter = function(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_es5.1.normal.js b/crates/swc/tests/tsc-references/scannertest1_es5.1.normal.js index 13eea40cba51..b9aa972c5e25 100644 --- a/crates/swc/tests/tsc-references/scannertest1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/scannertest1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; /// var CharacterInfo = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/scannertest1_es5.2.minified.js b/crates/swc/tests/tsc-references/scannertest1_es5.2.minified.js index 570ac979b946..6005c71d02ac 100644 --- a/crates/swc/tests/tsc-references/scannertest1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/scannertest1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var CharacterInfo = function() { "use strict"; function CharacterInfo() { diff --git a/crates/swc/tests/tsc-references/scopeResolutionIdentifiers_es5.1.normal.js b/crates/swc/tests/tsc-references/scopeResolutionIdentifiers_es5.1.normal.js index 3a4f87a8bb23..72036b998ae0 100644 --- a/crates/swc/tests/tsc-references/scopeResolutionIdentifiers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/scopeResolutionIdentifiers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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 var s; var M1; diff --git a/crates/swc/tests/tsc-references/scopeResolutionIdentifiers_es5.2.minified.js b/crates/swc/tests/tsc-references/scopeResolutionIdentifiers_es5.2.minified.js index 41cb8d36596d..67212efac062 100644 --- a/crates/swc/tests/tsc-references/scopeResolutionIdentifiers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/scopeResolutionIdentifiers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M11) { var s; M11.s = s; diff --git a/crates/swc/tests/tsc-references/shadowedInternalModule_es5.1.normal.js b/crates/swc/tests/tsc-references/shadowedInternalModule_es5.1.normal.js index a425b16d7427..c435c06e1944 100644 --- a/crates/swc/tests/tsc-references/shadowedInternalModule_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/shadowedInternalModule_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // all errors imported modules conflict with local variables var A; (function(A1) { diff --git a/crates/swc/tests/tsc-references/shadowedInternalModule_es5.2.minified.js b/crates/swc/tests/tsc-references/shadowedInternalModule_es5.2.minified.js index 641229db2f40..dbb111166e87 100644 --- a/crates/swc/tests/tsc-references/shadowedInternalModule_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/shadowedInternalModule_es5.2.minified.js @@ -1,5 +1,5 @@ var A, B, X, Z; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (A || (A = {})).Point = { x: 0, y: 0 diff --git a/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature_es5.1.normal.js index bf60d56d1d31..c3a2b1b70f90 100644 --- a/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo(x) {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature_es5.2.minified.js index 0286007893e7..d9d508cd83e0 100644 --- a/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/specializedSignatureIsNotSubtypeOfNonSpecializedSignature_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature_es5.1.normal.js index bf60d56d1d31..c3a2b1b70f90 100644 --- a/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo(x) {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature_es5.2.minified.js index 0286007893e7..d9d508cd83e0 100644 --- a/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/specializedSignatureIsSubtypeOfNonSpecializedSignature_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/spellingUncheckedJS_es5.1.normal.js b/crates/swc/tests/tsc-references/spellingUncheckedJS_es5.1.normal.js index 79fbae6e1a11..1befc127a68c 100644 --- a/crates/swc/tests/tsc-references/spellingUncheckedJS_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spellingUncheckedJS_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @allowJs: true // @filename: spellingUncheckedJS.js diff --git a/crates/swc/tests/tsc-references/spellingUncheckedJS_es5.2.minified.js b/crates/swc/tests/tsc-references/spellingUncheckedJS_es5.2.minified.js index 1c2df7e1aa40..0ae952071b79 100644 --- a/crates/swc/tests/tsc-references/spellingUncheckedJS_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spellingUncheckedJS_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var inModule = 1; inmodule.toFixed(); var Classe = function() { diff --git a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es2015.1.normal.js index 5ab309c962e8..d14cdca49e9d 100644 --- a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es2015.1.normal.js @@ -1,3 +1,3 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // [ts] Initializer provides no value for this binding element and the binding element has no default value. const { naam , age } = _object_spread({}, bob, alice); diff --git a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es2015.2.minified.js index 7ca4f51a53af..7e1fa7766dff 100644 --- a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; let { naam , age } = _object_spread({}, bob, alice); diff --git a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es5.1.normal.js index 8ba234e928ab..bd1aaa2e56ce 100644 --- a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es5.1.normal.js @@ -1,3 +1,3 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // [ts] Initializer provides no value for this binding element and the binding element has no default value. var ref = _object_spread({}, bob, alice), naam = ref.naam, age = ref.age; diff --git a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es5.2.minified.js index 08c304b79bcc..6344663cab5d 100644 --- a/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadContextualTypedBindingPattern_es5.2.minified.js @@ -1,3 +1,3 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var ref = _object_spread({}, bob, alice); ref.naam, ref.age; diff --git a/crates/swc/tests/tsc-references/spreadDuplicateExact_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadDuplicateExact_es2015.1.normal.js index 09db6dc72162..f98d21cd71ab 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicateExact_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadDuplicateExact_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; let a1 = _object_spread({ a: 123 }, a); // string (Error) diff --git a/crates/swc/tests/tsc-references/spreadDuplicateExact_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadDuplicateExact_es2015.2.minified.js index f450a10a8921..286e7517597a 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicateExact_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadDuplicateExact_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({ a: 123 }, a), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadDuplicateExact_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadDuplicateExact_es5.1.normal.js index 8bd4658093ac..eefefe85d176 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicateExact_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadDuplicateExact_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var a1 = _object_spread({ a: 123 }, a); // string (Error) diff --git a/crates/swc/tests/tsc-references/spreadDuplicateExact_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadDuplicateExact_es5.2.minified.js index f450a10a8921..286e7517597a 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicateExact_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadDuplicateExact_es5.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({ a: 123 }, a), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadDuplicate_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadDuplicate_es2015.1.normal.js index bd114138337e..dd8e87ce4855 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicate_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadDuplicate_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; let a1 = _object_spread({ a: 123 }, a); // string (Error) diff --git a/crates/swc/tests/tsc-references/spreadDuplicate_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadDuplicate_es2015.2.minified.js index f450a10a8921..286e7517597a 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicate_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadDuplicate_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({ a: 123 }, a), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadDuplicate_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadDuplicate_es5.1.normal.js index 26d6bc7d2ca1..87fed8ee6122 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicate_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadDuplicate_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var a1 = _object_spread({ a: 123 }, a); // string (Error) diff --git a/crates/swc/tests/tsc-references/spreadDuplicate_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadDuplicate_es5.2.minified.js index f450a10a8921..286e7517597a 100644 --- a/crates/swc/tests/tsc-references/spreadDuplicate_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadDuplicate_es5.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({ a: 123 }, a), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadExcessProperty_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadExcessProperty_es2015.1.normal.js index 8b224fda0fa2..fc7ae59a4157 100644 --- a/crates/swc/tests/tsc-references/spreadExcessProperty_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadExcessProperty_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; const extra1 = { a: "a", b: "b", diff --git a/crates/swc/tests/tsc-references/spreadExcessProperty_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadExcessProperty_es2015.2.minified.js index bbcea7f2b51e..c603c148fbbf 100644 --- a/crates/swc/tests/tsc-references/spreadExcessProperty_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadExcessProperty_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({}, { a: "a", b: "b", diff --git a/crates/swc/tests/tsc-references/spreadExcessProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadExcessProperty_es5.1.normal.js index 10031ec9c443..070c6716dffa 100644 --- a/crates/swc/tests/tsc-references/spreadExcessProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadExcessProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var extra1 = { a: "a", b: "b", diff --git a/crates/swc/tests/tsc-references/spreadExcessProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadExcessProperty_es5.2.minified.js index bbcea7f2b51e..c603c148fbbf 100644 --- a/crates/swc/tests/tsc-references/spreadExcessProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadExcessProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({}, { a: "a", b: "b", diff --git a/crates/swc/tests/tsc-references/spreadMethods_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadMethods_es2015.1.normal.js index b22af69b66c0..b5605a39c782 100644 --- a/crates/swc/tests/tsc-references/spreadMethods_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadMethods_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @target: esnext // @useDefineForClassFields: false class K { diff --git a/crates/swc/tests/tsc-references/spreadMethods_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadMethods_es2015.2.minified.js index 7a2b959dfd27..5186288c51c3 100644 --- a/crates/swc/tests/tsc-references/spreadMethods_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadMethods_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; let k = new class { m() {} get g() { diff --git a/crates/swc/tests/tsc-references/spreadMethods_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadMethods_es5.1.normal.js index d20c915315d1..fcdef45b23b1 100644 --- a/crates/swc/tests/tsc-references/spreadMethods_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadMethods_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @target: esnext // @useDefineForClassFields: false var K = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/spreadMethods_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadMethods_es5.2.minified.js index 766dd5d2d4c1..2837dc43ce53 100644 --- a/crates/swc/tests/tsc-references/spreadMethods_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadMethods_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var K = function() { "use strict"; function K() { diff --git a/crates/swc/tests/tsc-references/spreadNonPrimitive_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadNonPrimitive_es2015.1.normal.js index ab8c0a15d90d..412165237d8f 100644 --- a/crates/swc/tests/tsc-references/spreadNonPrimitive_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadNonPrimitive_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; const x = _object_spread_props(_object_spread({ a: 1 }, o), { diff --git a/crates/swc/tests/tsc-references/spreadNonPrimitive_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadNonPrimitive_es2015.2.minified.js index 1c970f7eecd5..c4f509afe648 100644 --- a/crates/swc/tests/tsc-references/spreadNonPrimitive_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadNonPrimitive_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread_props(_object_spread({ a: 1 }, o), { diff --git a/crates/swc/tests/tsc-references/spreadNonPrimitive_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadNonPrimitive_es5.1.normal.js index 282a84f07a81..2d1a204e1719 100644 --- a/crates/swc/tests/tsc-references/spreadNonPrimitive_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadNonPrimitive_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; var x = _object_spread_props(_object_spread({ a: 1 }, o), { diff --git a/crates/swc/tests/tsc-references/spreadNonPrimitive_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadNonPrimitive_es5.2.minified.js index 1c970f7eecd5..c4f509afe648 100644 --- a/crates/swc/tests/tsc-references/spreadNonPrimitive_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadNonPrimitive_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread_props(_object_spread({ a: 1 }, o), { diff --git a/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es2015.1.normal.js index d04b46567f23..1ec2b155fe8a 100644 --- a/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @strict: true // @declaration: true function f1(a) { diff --git a/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es2015.2.minified.js index e8b11256d939..cd13e7501216 100644 --- a/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es2015.2.minified.js @@ -1 +1 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; diff --git a/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es5.1.normal.js index 507c04fa228e..3caa8b55c775 100644 --- a/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @strict: true // @declaration: true function f1(a) { diff --git a/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es5.2.minified.js index f2fedf61cc2c..93a4a4b70815 100644 --- a/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadObjectOrFalsy_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es2015.1.normal.js index 4af2664ff69e..b195b99a27cf 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; var unused1 = _object_spread({ b: 1 }, ab) // error diff --git a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es2015.2.minified.js index 4e2aa301ff66..9e14db31aa6f 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread({ b: 1 }, ab), _object_spread({}, ab, ab), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es5.1.normal.js index d5f9add42d1d..7f42e8c84187 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; var unused1 = _object_spread({ b: 1 }, ab) // error diff --git a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es5.2.minified.js index 4e2aa301ff66..9e14db31aa6f 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesPropertyStrict_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread({ b: 1 }, ab), _object_spread({}, ab, ab), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadOverwritesProperty_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadOverwritesProperty_es2015.1.normal.js index 510885f8b86d..f7a9b025292e 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesProperty_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesProperty_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var unused1 = _object_spread({ b: 1 }, ab); diff --git a/crates/swc/tests/tsc-references/spreadOverwritesProperty_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadOverwritesProperty_es2015.2.minified.js index 9b6e3eec483b..5a1d440d0014 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesProperty_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesProperty_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({ b: 1 }, ab), _object_spread({}, ab, ab), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadOverwritesProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadOverwritesProperty_es5.1.normal.js index 510885f8b86d..f7a9b025292e 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var unused1 = _object_spread({ b: 1 }, ab); diff --git a/crates/swc/tests/tsc-references/spreadOverwritesProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadOverwritesProperty_es5.2.minified.js index 9b6e3eec483b..5a1d440d0014 100644 --- a/crates/swc/tests/tsc-references/spreadOverwritesProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadOverwritesProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({ b: 1 }, ab), _object_spread({}, ab, ab), _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadTypeVariable_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadTypeVariable_es2015.1.normal.js index 6b9782b55841..58291588cbd2 100644 --- a/crates/swc/tests/tsc-references/spreadTypeVariable_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadTypeVariable_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; function f1(arg) { return _object_spread({}, arg); } diff --git a/crates/swc/tests/tsc-references/spreadTypeVariable_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadTypeVariable_es2015.2.minified.js index e8b11256d939..cd13e7501216 100644 --- a/crates/swc/tests/tsc-references/spreadTypeVariable_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadTypeVariable_es2015.2.minified.js @@ -1 +1 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; diff --git a/crates/swc/tests/tsc-references/spreadTypeVariable_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadTypeVariable_es5.1.normal.js index 6b9782b55841..58291588cbd2 100644 --- a/crates/swc/tests/tsc-references/spreadTypeVariable_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadTypeVariable_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; function f1(arg) { return _object_spread({}, arg); } diff --git a/crates/swc/tests/tsc-references/spreadTypeVariable_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadTypeVariable_es5.2.minified.js index e8b11256d939..cd13e7501216 100644 --- a/crates/swc/tests/tsc-references/spreadTypeVariable_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadTypeVariable_es5.2.minified.js @@ -1 +1 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; diff --git a/crates/swc/tests/tsc-references/spreadUnion2_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion2_es2015.1.normal.js index 2d904f44e403..8d362461f42f 100644 --- a/crates/swc/tests/tsc-references/spreadUnion2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var o1; var o1 = _object_spread({}, undefinedUnion); var o2; diff --git a/crates/swc/tests/tsc-references/spreadUnion2_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion2_es2015.2.minified.js index 227f8c54ceeb..ad95898e208d 100644 --- a/crates/swc/tests/tsc-references/spreadUnion2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion2_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _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/spreadUnion2_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion2_es5.1.normal.js index 2d904f44e403..8d362461f42f 100644 --- a/crates/swc/tests/tsc-references/spreadUnion2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var o1; var o1 = _object_spread({}, undefinedUnion); var o2; diff --git a/crates/swc/tests/tsc-references/spreadUnion2_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion2_es5.2.minified.js index 227f8c54ceeb..ad95898e208d 100644 --- a/crates/swc/tests/tsc-references/spreadUnion2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion2_es5.2.minified.js @@ -1,2 +1,2 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _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_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion3_es2015.1.normal.js index 8fdbee75b41e..9af49e5645a3 100644 --- a/crates/swc/tests/tsc-references/spreadUnion3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @strictNullChecks: true function f(x1) { return _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadUnion3_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion3_es2015.2.minified.js index 217fd3769f90..8abc2ba0d7d6 100644 --- a/crates/swc/tests/tsc-references/spreadUnion3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; function g(t) { _object_spread({}, t).a; } diff --git a/crates/swc/tests/tsc-references/spreadUnion3_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion3_es5.1.normal.js index 72113f7429b8..973e99c16007 100644 --- a/crates/swc/tests/tsc-references/spreadUnion3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // @strictNullChecks: true function f(x1) { return _object_spread({ diff --git a/crates/swc/tests/tsc-references/spreadUnion3_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion3_es5.2.minified.js index 217fd3769f90..8abc2ba0d7d6 100644 --- a/crates/swc/tests/tsc-references/spreadUnion3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; function g(t) { _object_spread({}, t).a; } diff --git a/crates/swc/tests/tsc-references/spreadUnion4_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion4_es2015.1.normal.js index efe92bcab54c..84dcc6aec185 100644 --- a/crates/swc/tests/tsc-references/spreadUnion4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion4_es2015.1.normal.js @@ -1,2 +1,2 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; const c = _object_spread({}, a, b); diff --git a/crates/swc/tests/tsc-references/spreadUnion4_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion4_es2015.2.minified.js index dde6ac247e6a..fce152303775 100644 --- a/crates/swc/tests/tsc-references/spreadUnion4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion4_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({}, a, b); diff --git a/crates/swc/tests/tsc-references/spreadUnion4_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion4_es5.1.normal.js index 472f717416be..5152610fafc1 100644 --- a/crates/swc/tests/tsc-references/spreadUnion4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion4_es5.1.normal.js @@ -1,2 +1,2 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; var c = _object_spread({}, a, b); diff --git a/crates/swc/tests/tsc-references/spreadUnion4_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion4_es5.2.minified.js index dde6ac247e6a..fce152303775 100644 --- a/crates/swc/tests/tsc-references/spreadUnion4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion4_es5.2.minified.js @@ -1,2 +1,2 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; _object_spread({}, a, b); diff --git a/crates/swc/tests/tsc-references/spreadUnion_es2015.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion_es2015.1.normal.js index 5ed68b3a549f..f3f00ab318c7 100644 --- a/crates/swc/tests/tsc-references/spreadUnion_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; var union; var o3; var o3 = _object_spread({}, union); diff --git a/crates/swc/tests/tsc-references/spreadUnion_es2015.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion_es2015.2.minified.js index 1d0eb47f3114..ec3df431d9a0 100644 --- a/crates/swc/tests/tsc-references/spreadUnion_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion_es2015.2.minified.js @@ -1,6 +1,6 @@ var union; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread({}, union), _object_spread_props(_object_spread({}, union), { a: !1 }), _object_spread({}, union, union); diff --git a/crates/swc/tests/tsc-references/spreadUnion_es5.1.normal.js b/crates/swc/tests/tsc-references/spreadUnion_es5.1.normal.js index 5ed68b3a549f..f3f00ab318c7 100644 --- a/crates/swc/tests/tsc-references/spreadUnion_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/spreadUnion_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; var union; var o3; var o3 = _object_spread({}, union); diff --git a/crates/swc/tests/tsc-references/spreadUnion_es5.2.minified.js b/crates/swc/tests/tsc-references/spreadUnion_es5.2.minified.js index 1d0eb47f3114..ec3df431d9a0 100644 --- a/crates/swc/tests/tsc-references/spreadUnion_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/spreadUnion_es5.2.minified.js @@ -1,6 +1,6 @@ var union; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _object_spread_props from "@swc/helpers/lib/_object_spread_props.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs"; _object_spread({}, union), _object_spread_props(_object_spread({}, union), { a: !1 }), _object_spread({}, union, union); diff --git a/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName_es5.1.normal.js index 5e1978fe7b5d..879049e2d4e0 100644 --- a/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName_es5.2.minified.js index 2be4262e005a..11779beecd00 100644 --- a/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticAndNonStaticPropertiesSameName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/staticFactory1_es5.1.normal.js b/crates/swc/tests/tsc-references/staticFactory1_es5.1.normal.js index cc3bdde45d4d..d222e05cd980 100644 --- a/crates/swc/tests/tsc-references/staticFactory1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticFactory1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = /*#__PURE__*/ function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/staticFactory1_es5.2.minified.js b/crates/swc/tests/tsc-references/staticFactory1_es5.2.minified.js index e78fb23e2b43..a193b2e85a82 100644 --- a/crates/swc/tests/tsc-references/staticFactory1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticFactory1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; function Base() { diff --git a/crates/swc/tests/tsc-references/staticIndexSignature1_es5.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature1_es5.1.normal.js index b1be195c0a24..b78349af8333 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature1_es5.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature1_es5.2.minified.js index c1bdf21bf7b1..841c811d2b1b 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature2_es5.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature2_es5.1.normal.js index b1be195c0a24..b78349af8333 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature2_es5.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature2_es5.2.minified.js index c1bdf21bf7b1..841c811d2b1b 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature3_es5.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature3_es5.1.normal.js index 0c9f720be333..006bde05079e 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @strict: true var B = function B() { "use strict"; diff --git a/crates/swc/tests/tsc-references/staticIndexSignature3_es5.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature3_es5.2.minified.js index 0558c47787b1..077dc2877edb 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/staticIndexSignature6_es5.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature6_es5.1.normal.js index 6d759aa3a62a..5bb016d29444 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strict: true function foo() { return /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/staticIndexSignature6_es5.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature6_es5.2.minified.js index b95e5a7fe8f7..c55036e06151 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function _class() { diff --git a/crates/swc/tests/tsc-references/staticIndexSignature7_es5.1.normal.js b/crates/swc/tests/tsc-references/staticIndexSignature7_es5.1.normal.js index f37d363a79c4..8f3b53ed29e8 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strict: true var X = function X() { "use strict"; diff --git a/crates/swc/tests/tsc-references/staticIndexSignature7_es5.2.minified.js b/crates/swc/tests/tsc-references/staticIndexSignature7_es5.2.minified.js index 956520b3625d..556c2a019113 100644 --- a/crates/swc/tests/tsc-references/staticIndexSignature7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexSignature7_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var X = function() { "use strict"; _class_call_check(this, X); diff --git a/crates/swc/tests/tsc-references/staticIndexers_es5.1.normal.js b/crates/swc/tests/tsc-references/staticIndexers_es5.1.normal.js index e4b18b2ff6b3..42241ee2cb9c 100644 --- a/crates/swc/tests/tsc-references/staticIndexers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticIndexers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // static indexers not allowed var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/staticIndexers_es5.2.minified.js b/crates/swc/tests/tsc-references/staticIndexers_es5.2.minified.js index d028328f42ef..930e456871b7 100644 --- a/crates/swc/tests/tsc-references/staticIndexers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticIndexers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers_es5.1.normal.js index 796116071c5d..aed715677f26 100644 --- a/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers_es5.2.minified.js index 1905c1991474..59db8308fa8b 100644 --- a/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticMemberAssignsToConstructorFunctionMembers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/staticMemberInitialization_es5.1.normal.js b/crates/swc/tests/tsc-references/staticMemberInitialization_es5.1.normal.js index 6c7f9d9f442e..ac73a57cf2a3 100644 --- a/crates/swc/tests/tsc-references/staticMemberInitialization_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticMemberInitialization_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticMemberInitialization_es5.2.minified.js b/crates/swc/tests/tsc-references/staticMemberInitialization_es5.2.minified.js index fdff68a37811..54063791c39c 100644 --- a/crates/swc/tests/tsc-references/staticMemberInitialization_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticMemberInitialization_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter_es5.1.normal.js b/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter_es5.1.normal.js index c1cc8501ad74..653bbb1c9480 100644 --- a/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // BUG 745747 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter_es5.2.minified.js b/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter_es5.2.minified.js index e448675952db..d6eefdb12c87 100644 --- a/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticMembersUsingClassTypeParameter_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName_es5.1.normal.js b/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName_es5.1.normal.js index d500593874e8..c68c8d6330f9 100644 --- a/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName_es5.2.minified.js b/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName_es5.2.minified.js index 410b0dafcd8f..db72ab33f982 100644 --- a/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticPropertyAndFunctionWithSameName_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/staticPropertyNotInClassType_es5.1.normal.js b/crates/swc/tests/tsc-references/staticPropertyNotInClassType_es5.1.normal.js index eef0b506d6d9..d716e86b5f27 100644 --- a/crates/swc/tests/tsc-references/staticPropertyNotInClassType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/staticPropertyNotInClassType_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var NonGeneric; (function(NonGeneric) { var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/staticPropertyNotInClassType_es5.2.minified.js b/crates/swc/tests/tsc-references/staticPropertyNotInClassType_es5.2.minified.js index 26fddd7ea392..63236c2195ee 100644 --- a/crates/swc/tests/tsc-references/staticPropertyNotInClassType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/staticPropertyNotInClassType_es5.2.minified.js @@ -1,6 +1,6 @@ var NonGeneric, Generic; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; !function(NonGeneric) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/strictBindCallApply1_es5.1.normal.js b/crates/swc/tests/tsc-references/strictBindCallApply1_es5.1.normal.js index f1ed8a898945..7f60c6242cdb 100644 --- a/crates/swc/tests/tsc-references/strictBindCallApply1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/strictBindCallApply1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/strictBindCallApply1_es5.2.minified.js index c499c45119a6..a30b14877b23 100644 --- a/crates/swc/tests/tsc-references/strictBindCallApply1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/strictBindCallApply1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; 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_es2015.1.normal.js b/crates/swc/tests/tsc-references/strictPropertyInitialization_es2015.1.normal.js index 939fb26a206b..0ab06b546f57 100644 --- a/crates/swc/tests/tsc-references/strictPropertyInitialization_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/strictPropertyInitialization_es2015.1.normal.js @@ -1,6 +1,6 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _f = /*#__PURE__*/ new WeakMap(), _g = /*#__PURE__*/ new WeakMap(), _h = /*#__PURE__*/ new WeakMap(), _i = /*#__PURE__*/ new WeakMap(); // @strict: true // @target:es2015 diff --git a/crates/swc/tests/tsc-references/strictPropertyInitialization_es2015.2.minified.js b/crates/swc/tests/tsc-references/strictPropertyInitialization_es2015.2.minified.js index 4dd6709316ab..b74178b18fea 100644 --- a/crates/swc/tests/tsc-references/strictPropertyInitialization_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/strictPropertyInitialization_es2015.2.minified.js @@ -1,3 +1,3 @@ -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; diff --git a/crates/swc/tests/tsc-references/strictPropertyInitialization_es5.1.normal.js b/crates/swc/tests/tsc-references/strictPropertyInitialization_es5.1.normal.js index be255d573839..e108d044a8a8 100644 --- a/crates/swc/tests/tsc-references/strictPropertyInitialization_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/strictPropertyInitialization_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _f = /*#__PURE__*/ new WeakMap(), _g = /*#__PURE__*/ new WeakMap(), _h = /*#__PURE__*/ new WeakMap(), _i = /*#__PURE__*/ new WeakMap(); // @strict: true // @target:es2015 diff --git a/crates/swc/tests/tsc-references/strictPropertyInitialization_es5.2.minified.js b/crates/swc/tests/tsc-references/strictPropertyInitialization_es5.2.minified.js index 0c671598b701..e67147b03e41 100644 --- a/crates/swc/tests/tsc-references/strictPropertyInitialization_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/strictPropertyInitialization_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _class_private_field_get from "@swc/helpers/lib/_class_private_field_get.js"; -import _class_private_field_init from "@swc/helpers/lib/_class_private_field_init.js"; -import _class_private_field_set from "@swc/helpers/lib/_class_private_field_set.js"; +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"; var _f = new WeakMap(), _g = new WeakMap(), _h = new WeakMap(), _i = new WeakMap(), C1 = function() { "use strict"; _class_call_check(this, C1), _class_private_field_init(this, _f, { diff --git a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2_es5.1.normal.js b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2_es5.1.normal.js index daf33af6a5fe..bc9e65989a98 100644 --- a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // String indexer providing a constraint of a user defined type var A = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2_es5.2.minified.js b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2_es5.2.minified.js index 7da92a5fc921..1b2ebe825ec2 100644 --- a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations_es5.1.normal.js b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations_es5.1.normal.js index 06e10549e2c3..a0147cdc5163 100644 --- a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations_es5.2.minified.js b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations_es5.2.minified.js index 007306ad4fda..a1ed5bf03c78 100644 --- a/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/stringIndexerConstrainsPropertyDeclarations_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/stringIndexingResults_es5.1.normal.js b/crates/swc/tests/tsc-references/stringIndexingResults_es5.1.normal.js index 084a7c02b1a6..762a0b670e04 100644 --- a/crates/swc/tests/tsc-references/stringIndexingResults_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/stringIndexingResults_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/stringIndexingResults_es5.2.minified.js b/crates/swc/tests/tsc-references/stringIndexingResults_es5.2.minified.js index fa68039acb88..c663d75906bd 100644 --- a/crates/swc/tests/tsc-references/stringIndexingResults_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/stringIndexingResults_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var c, i, a, C = function() { "use strict"; _class_call_check(this, C), this.y = ""; diff --git a/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString_es5.1.normal.js b/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString_es5.1.normal.js index 5adf8b20d7fc..bddd6e6db4f1 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function f1(x) {} function f2(x) {} function f3(x) {} diff --git a/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString_es5.2.minified.js b/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString_es5.2.minified.js index 2b49db7427b7..74b82e3f1adc 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypeIsSubtypeOfString_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2_es5.1.normal.js b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2_es5.1.normal.js index 91c250a40b48..e7af0b99b918 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; function foo(x) {} var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2_es5.2.minified.js b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2_es5.2.minified.js index e0ac6ba9896c..7b9e8b26df50 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures_es5.1.normal.js b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures_es5.1.normal.js index c722ac7fca06..eb4edfc27f13 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // String literal types are only valid in overload signatures function foo(x) {} var f = function foo(x) {}; diff --git a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures_es5.2.minified.js b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures_es5.2.minified.js index 7605ecbd6fd4..f37180e70b56 100644 --- a/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/stringLiteralTypesInImplementationSignatures_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/stringNamedPropertyAccess_es5.1.normal.js b/crates/swc/tests/tsc-references/stringNamedPropertyAccess_es5.1.normal.js index fff6fe131d71..ed6121d969f3 100644 --- a/crates/swc/tests/tsc-references/stringNamedPropertyAccess_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/stringNamedPropertyAccess_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/stringNamedPropertyAccess_es5.2.minified.js b/crates/swc/tests/tsc-references/stringNamedPropertyAccess_es5.2.minified.js index 50e99f123561..797e1baee3b9 100644 --- a/crates/swc/tests/tsc-references/stringNamedPropertyAccess_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/stringNamedPropertyAccess_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, a, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/subtypesOfAny_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfAny_es5.1.normal.js index 696c9b20a983..fbf6057462c6 100644 --- a/crates/swc/tests/tsc-references/subtypesOfAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypesOfAny_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfAny_es5.2.minified.js index 828aa3fecff3..25f75d1a9316 100644 --- a/crates/swc/tests/tsc-references/subtypesOfAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfAny_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2_es5.1.normal.js index 47b670cec118..7ba457895998 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // checking whether other types are subtypes of type parameters with constraints function f1(x, y) { var r = true ? x : y; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2_es5.2.minified.js index 2e80a176d3bf..284f08bf9dac 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4_es5.1.normal.js index a1cabad6e7b4..02a4f11d5f7b 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking whether other types are subtypes of type parameters with constraints var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4_es5.2.minified.js index 601e0f3518a4..60adf231c6f4 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints_es5.1.normal.js index b2e20013e92d..e7c8e7e7efb5 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking whether other types are subtypes of type parameters with constraints var C3 = function C3() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints_es5.2.minified.js index 5fb78ef2fc64..6a787d6e69d7 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithConstraints_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C3 = function() { "use strict"; _class_call_check(this, C3); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints_es5.1.normal.js index 8d259e7e65d6..2d1cce7b8cb7 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking whether other types are subtypes of type parameters with constraints var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints_es5.2.minified.js index 75caaaed2fdb..bd464e524ae6 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameterWithRecursiveConstraints_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var M1, M2, Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameter_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameter_es5.1.normal.js index 6ebd51faf98a..c1982839305a 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameter_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameter_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking whether other types are subtypes of type parameters var C3 = function C3() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypesOfTypeParameter_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfTypeParameter_es5.2.minified.js index e2fc3796ee4f..a294c8245919 100644 --- a/crates/swc/tests/tsc-references/subtypesOfTypeParameter_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfTypeParameter_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var E, C3 = function() { "use strict"; _class_call_check(this, C3); diff --git a/crates/swc/tests/tsc-references/subtypesOfUnion_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypesOfUnion_es5.1.normal.js index 73446559231d..f11da26b74df 100644 --- a/crates/swc/tests/tsc-references/subtypesOfUnion_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypesOfUnion_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E; (function(E) { E[E["e1"] = 0] = "e1"; diff --git a/crates/swc/tests/tsc-references/subtypesOfUnion_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypesOfUnion_es5.2.minified.js index a0f26b03f533..8fb2a080d5a5 100644 --- a/crates/swc/tests/tsc-references/subtypesOfUnion_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypesOfUnion_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.e1 = 0] = "e1", E[E.e2 = 1] = "e2"; }(E || (E = {})); diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures2_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures2_es5.1.normal.js index ccf986feafae..a981107d7bc0 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures2_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures2_es5.2.minified.js index 8af5be8ef56f..d472389d0f06 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures3_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures3_es5.1.normal.js index 3e09155111ca..d7e8cfdf175d 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation // error cases, so function calls will all result in 'any' var Errors; diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures3_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures3_es5.2.minified.js index 71d401ee87bf..fecccd8e337f 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures3_es5.2.minified.js @@ -1,7 +1,7 @@ var Errors, WithGenericSignaturesInBaseType; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(Errors) { var Base1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures4_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures4_es5.1.normal.js index 9ec7e42e6687..132cf9f2c99b 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithCallSignatures4_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithCallSignatures4_es5.2.minified.js index 59f6dd45ffb3..f585305eb105 100644 --- a/crates/swc/tests/tsc-references/subtypingWithCallSignatures4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithCallSignatures4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2_es5.1.normal.js index bf7f78825d19..414c67e537b5 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2_es5.2.minified.js index 260e03706d36..b57c081203a6 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var r1arg1, r2arg1, r3arg1, r4arg1, r5arg1, r6arg1, r7arg1, r8arg1, r9arg1, r10arg1, r11arg1, r12arg1, r13arg1, r14arg1, r15arg1, r16arg1, r17arg1, r18arg1, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3_es5.1.normal.js index 954e7a33961a..fa4d2b833ccf 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation // error cases, so function calls will all result in 'any' var Errors; diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3_es5.2.minified.js index 7cb0592d570f..ce9631f5556d 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures3_es5.2.minified.js @@ -1,7 +1,7 @@ var Errors, WithGenericSignaturesInBaseType; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; !function(Errors) { var r1arg1, r2arg1, r3arg1, r4arg1, r5arg1, r6arg1, r7arg1, r7arg3, r8arg, r9arg, Base1 = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4_es5.1.normal.js index 0edd036553ea..0b8c6ad56a1a 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // checking subtype relations for function types as it relates to contextual signature instantiation var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4_es5.2.minified.js index caf69e50274d..452825f2ca9e 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var r1arg, r2arg, r3arg, r4arg, r5arg, r6arg, r11arg, r15arg, r16arg, r17arg, r18arg, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5_es5.1.normal.js index 1cf6ef6fd5ee..f3e3768a9bfd 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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 var Base = function Base() { diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6_es5.1.normal.js index 3d16cc5324ed..382e5dd86e89 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // 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 diff --git a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6_es5.2.minified.js index fe0c848595bf..ac5df8ed64c6 100644 --- a/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithConstructSignatures6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3_es5.1.normal.js index 2c072a20c2ee..25aa948ff83c 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3_es5.2.minified.js index d692e588c28b..2ab9a85dcc13 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4_es5.1.normal.js index 7e4d2074632d..24972812732b 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4_es5.2.minified.js index bd38779955db..91f6928b244d 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5_es5.1.normal.js index cb2c3ed378ae..3f2b53b417cd 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var B = function B() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5_es5.2.minified.js index 3eed6f4cbfce..08e0fb99cb28 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Generics, B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer_es5.1.normal.js index 9b97f328a708..eefaa5d03f12 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer_es5.2.minified.js index 3f0e34a9115d..c6c5226e34b7 100644 --- a/crates/swc/tests/tsc-references/subtypingWithNumericIndexer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithNumericIndexer_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers4_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers4_es5.1.normal.js index 83b138acd2f7..94b4050f3fcb 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // subtyping when property names do not match var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers4_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers4_es5.2.minified.js index 9263c9ef3828..288a6ea09d35 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers5_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers5_es5.1.normal.js index bd4c8d2a61ef..581fcbf7cdde 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers5_es5.2.minified.js index 84d8407d63d7..b119fdadabe4 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers5_es5.2.minified.js @@ -1,5 +1,5 @@ var NotOptional, Optional; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(NotOptional) { var B = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2_es5.1.normal.js index 16f76005f541..ee913d8a0a63 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Derived member is private, base member is not causes errors var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2_es5.2.minified.js index 1cade84e82c1..731ccd5f4fbb 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var ExplicitPublic, ImplicitPublic, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility_es5.1.normal.js index 9cd100027c30..c140033f033d 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // Derived member is private, base member is not causes errors var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility_es5.2.minified.js index 9263c9ef3828..288a6ea09d35 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembersAccessibility_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers_es5.1.normal.js index 665c54f26ab6..6b89cf4463db 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithObjectMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithObjectMembers_es5.2.minified.js index 8256ead66fd4..7402993819cc 100644 --- a/crates/swc/tests/tsc-references/subtypingWithObjectMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithObjectMembers_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var TwoLevels, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer3_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer3_es5.1.normal.js index 2c072a20c2ee..25aa948ff83c 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer3_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer3_es5.2.minified.js index d692e588c28b..2ab9a85dcc13 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer4_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer4_es5.1.normal.js index 7e4d2074632d..24972812732b 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer4_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer4_es5.2.minified.js index bd38779955db..91f6928b244d 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer_es5.1.normal.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer_es5.1.normal.js index 9b97f328a708..eefaa5d03f12 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/subtypingWithStringIndexer_es5.2.minified.js b/crates/swc/tests/tsc-references/subtypingWithStringIndexer_es5.2.minified.js index 3f0e34a9115d..c6c5226e34b7 100644 --- a/crates/swc/tests/tsc-references/subtypingWithStringIndexer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/subtypingWithStringIndexer_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Generics, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1_es5.1.normal.js index 2f486700258b..2d76383b9056 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1_es5.2.minified.js index 9ae656007ec9..f10e6b76b043 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2_es5.1.normal.js index cd0f104370d4..a4cebf7f2ea6 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2_es5.2.minified.js index fd74216da6bd..f9ac7d602746 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5_es5.1.normal.js index 7032df38b446..928da89c2a96 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var D = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(D, _superClass); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5_es5.2.minified.js index c30395459cab..d4151fc27c10 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var D = function(_superClass) { "use strict"; function D() { diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8_es5.1.normal.js index 4238c1f51a70..00c2ca07391a 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function Base(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8_es5.2.minified.js index ff165a9f5066..0463594a807a 100644 --- a/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallBeforeThisAccessing8_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _possible_constructor_return from "@swc/helpers/lib/_possible_constructor_return.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var Base = function(c) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface_es5.1.normal.js index 72bad9f1f81f..117e8a327aff 100644 --- a/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface_es5.2.minified.js index 2771b89882b9..2d8ed556f343 100644 --- a/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallFromClassThatHasNoBaseTypeButWithSameSymbolInterface_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo), super(); diff --git a/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType_es5.1.normal.js index 3260c73c8c33..6146e997ce5e 100644 --- a/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType_es5.2.minified.js index 93fe914a8773..1a1aa7adf633 100644 --- a/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallInConstructorWithNoBaseType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C), super(); diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping1_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping1_es5.1.normal.js index 10a5f221c899..aac031918267 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A(map) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping1_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping1_es5.2.minified.js index 672ed839a143..188f60a800f8 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function(map) { "use strict"; _class_call_check(this, A), this.map = map; diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping2_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping2_es5.1.normal.js index 27384e3de027..97e9b65d3c75 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A(map) { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping2_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping2_es5.2.minified.js index 51970cf3a33d..b64fd46a8085 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function(map) { "use strict"; _class_call_check(this, A), this.map = map; diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping3_es5.1.normal.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping3_es5.1.normal.js index d66783d6f889..aa9503831f6c 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping3_es5.1.normal.js @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var CBase = /*#__PURE__*/ function() { "use strict"; function CBase(param) { diff --git a/crates/swc/tests/tsc-references/superCallParameterContextualTyping3_es5.2.minified.js b/crates/swc/tests/tsc-references/superCallParameterContextualTyping3_es5.2.minified.js index 8c112ccd8270..dfa1cb832f92 100644 --- a/crates/swc/tests/tsc-references/superCallParameterContextualTyping3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCallParameterContextualTyping3_es5.2.minified.js @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var CBase = function() { "use strict"; function CBase(param) { diff --git a/crates/swc/tests/tsc-references/superCalls_es5.1.normal.js b/crates/swc/tests/tsc-references/superCalls_es5.1.normal.js index fa25e4f3f7f6..83ccfdb52049 100644 --- a/crates/swc/tests/tsc-references/superCalls_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superCalls_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function Base(n) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/superCalls_es5.2.minified.js b/crates/swc/tests/tsc-references/superCalls_es5.2.minified.js index adfa6aa5206f..4ed559b4059a 100644 --- a/crates/swc/tests/tsc-references/superCalls_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superCalls_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Base = function(n) { "use strict"; _class_call_check(this, Base), this.x = 43; diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1_es2015.1.normal.js b/crates/swc/tests/tsc-references/superInStaticMembers1_es2015.1.normal.js index 82ac0b934693..0ea62dd24043 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; var _Reflect, __, _Reflect1, __1; class Reflect1 { } diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1_es2015.2.minified.js b/crates/swc/tests/tsc-references/superInStaticMembers1_es2015.2.minified.js index c78ffc02c528..05c3b61b491e 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; export class Reflect { } export var Baz; diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1_es5.1.normal.js b/crates/swc/tests/tsc-references/superInStaticMembers1_es5.1.normal.js index ec28c0d0ec21..af91469683ad 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _this = this, _superprop_get_w = ()=>super.w; var _Reflect, __, _Reflect1, __1; // @target: es5, es2015, es2021, es2022, esnext diff --git a/crates/swc/tests/tsc-references/superInStaticMembers1_es5.2.minified.js b/crates/swc/tests/tsc-references/superInStaticMembers1_es5.2.minified.js index ce3668a2afec..e1ba436a5c73 100644 --- a/crates/swc/tests/tsc-references/superInStaticMembers1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superInStaticMembers1_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _this = this, _superprop_get_w = ()=>super.w; export var Reflect = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/superMethodCall_es2015.1.normal.js b/crates/swc/tests/tsc-references/superMethodCall_es2015.1.normal.js index ef11185ec521..fd3ac9f6e8f2 100644 --- a/crates/swc/tests/tsc-references/superMethodCall_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/superMethodCall_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; // @strict: true // @target: ES6 class Base { diff --git a/crates/swc/tests/tsc-references/superMethodCall_es2015.2.minified.js b/crates/swc/tests/tsc-references/superMethodCall_es2015.2.minified.js index 58049767209c..20a0f20505c9 100644 --- a/crates/swc/tests/tsc-references/superMethodCall_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/superMethodCall_es2015.2.minified.js @@ -1 +1 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/superMethodCall_es5.1.normal.js b/crates/swc/tests/tsc-references/superMethodCall_es5.1.normal.js index 93167cdb30a8..f4eeacfa050f 100644 --- a/crates/swc/tests/tsc-references/superMethodCall_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superMethodCall_es5.1.normal.js @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; // @strict: true // @target: ES6 diff --git a/crates/swc/tests/tsc-references/superMethodCall_es5.2.minified.js b/crates/swc/tests/tsc-references/superMethodCall_es5.2.minified.js index 4ad2081fc6f4..8905bb1dd893 100644 --- a/crates/swc/tests/tsc-references/superMethodCall_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superMethodCall_es5.2.minified.js @@ -1,9 +1,9 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _create_super from "@swc/helpers/src/_create_super.mjs"; import regeneratorRuntime from "regenerator-runtime"; var Base = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/superPropertyAccessNoError_es5.1.normal.js b/crates/swc/tests/tsc-references/superPropertyAccessNoError_es5.1.normal.js index 00cbda485d41..676f12254f68 100644 --- a/crates/swc/tests/tsc-references/superPropertyAccessNoError_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superPropertyAccessNoError_es5.1.normal.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @target: es5 //super.publicInstanceMemberFunction in constructor of derived class //super.publicInstanceMemberFunction in instance member function of derived class diff --git a/crates/swc/tests/tsc-references/superPropertyAccessNoError_es5.2.minified.js b/crates/swc/tests/tsc-references/superPropertyAccessNoError_es5.2.minified.js index 9130270a1a98..57a71f700e64 100644 --- a/crates/swc/tests/tsc-references/superPropertyAccessNoError_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superPropertyAccessNoError_es5.2.minified.js @@ -1,10 +1,10 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var SomeBaseClass = function() { "use strict"; function SomeBaseClass() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess1_es5.1.normal.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess1_es5.1.normal.js index f095f83f4977..8fafd1034036 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess1_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var symbol = Symbol.for("myThing"); var Foo = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess1_es5.2.minified.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess1_es5.2.minified.js index 9924745cb240..bfada449c37b 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess1_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var symbol = Symbol.for("myThing"), Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess2_es5.1.normal.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess2_es5.1.normal.js index 9784029f093b..6091df11fb9c 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess2_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var Foo = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess2_es5.2.minified.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess2_es5.2.minified.js index e06cf2d0aa93..b608505487c1 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess2_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess3_es5.1.normal.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess3_es5.1.normal.js index 9f31273b8ffb..9b633db67b8c 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess3_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var symbol = Symbol.for("myThing"); var Foo = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess3_es5.2.minified.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess3_es5.2.minified.js index 63933c2ab1ef..97145af20bed 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess3_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var symbol = Symbol.for("myThing"), Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess4_es5.1.normal.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess4_es5.1.normal.js index 24fa578bc074..c94058421b63 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.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"; //@target: ES6 var symbol = Symbol.for("myThing"); var Bar = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess4_es5.2.minified.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess4_es5.2.minified.js index da23c20297cc..d60bb590717a 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.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"; var symbol = Symbol.for("myThing"), Bar = function() { "use strict"; function Bar() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess5_es5.1.normal.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess5_es5.1.normal.js index 5d13546b31e1..581afdc92792 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess5_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES5 var symbol; var Foo = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess5_es5.2.minified.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess5_es5.2.minified.js index 3515aa4ac32f..9bf878571587 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess5_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var symbol, Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess6_es5.1.normal.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess6_es5.1.normal.js index 3df3b3071ec8..c2c6fd9ba496 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess6_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES5 var symbol; var Foo = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/superSymbolIndexedAccess6_es5.2.minified.js b/crates/swc/tests/tsc-references/superSymbolIndexedAccess6_es5.2.minified.js index 60cbd878fa1b..fd0e5702107f 100644 --- a/crates/swc/tests/tsc-references/superSymbolIndexedAccess6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/superSymbolIndexedAccess6_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var symbol, Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/switchStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/switchStatements_es5.1.normal.js index bf21b9e593f0..683e12cba823 100644 --- a/crates/swc/tests/tsc-references/switchStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/switchStatements_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var M; (function(M1) { var fn = function fn(x) { diff --git a/crates/swc/tests/tsc-references/switchStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/switchStatements_es5.2.minified.js index 05b6a3b3e338..8da719490f2f 100644 --- a/crates/swc/tests/tsc-references/switchStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/switchStatements_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; (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/symbolDeclarationEmit10_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit10_es5.1.normal.js index cf8c095127f7..3ef3d08fd411 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit10_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; //@target: ES6 //@declaration: true diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit10_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit10_es5.2.minified.js index 24d772629747..b0e315c0bf20 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit10_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; var _obj, _mutatorMap = {}; _obj = {}, _mutatorMap[Symbol.isConcatSpreadable] = _mutatorMap[Symbol.isConcatSpreadable] || {}, _mutatorMap[Symbol.isConcatSpreadable].get = function() { return ""; diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit11_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit11_es5.1.normal.js index 1e226d09cd4a..618755785220 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit11_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var _iterator = Symbol.iterator, _isConcatSpreadable = Symbol.isConcatSpreadable, _toPrimitive = Symbol.toPrimitive, _toPrimitive1 = Symbol.toPrimitive; //@target: ES6 //@declaration: true diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit11_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit11_es5.2.minified.js index d8de30c6b073..b465581069cf 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit11_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var _iterator = Symbol.iterator, _isConcatSpreadable = Symbol.isConcatSpreadable, _toPrimitive = Symbol.toPrimitive, _toPrimitive1 = Symbol.toPrimitive, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit12_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit12_es5.1.normal.js index 6230e029b813..7e40bb42bea4 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit12_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 //@declaration: true var M; diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit12_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit12_es5.2.minified.js index adaa6cd5e0ff..1070c586e0cb 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit12_es5.2.minified.js @@ -1,6 +1,6 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; !function(M1) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit13_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit13_es5.1.normal.js index a0446e93bdd9..5813e272de4a 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit13_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 //@declaration: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit13_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit13_es5.2.minified.js index 1e4a18a1ffff..838b31ff2cce 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit13_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit14_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit14_es5.1.normal.js index e0e8ab7b24e2..fef28412e8d1 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit14_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 //@declaration: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit14_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit14_es5.2.minified.js index d01060ee5a23..1c0bac56c9e3 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit14_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit1_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit1_es5.1.normal.js index 826e48a2014c..8613f2bbd22e 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 //@declaration: true var C = function C() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit1_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit1_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit2_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit2_es5.1.normal.js index b96784f47b50..8a506e88e1c5 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _toPrimitive = Symbol.toPrimitive; //@target: ES6 //@declaration: true diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit2_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit2_es5.2.minified.js index ac910adb5990..e4903dd23a59 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _toPrimitive = Symbol.toPrimitive, C = function() { "use strict"; _class_call_check(this, C), this[_toPrimitive] = ""; diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit3_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit3_es5.1.normal.js index fcfcf3cb4367..9e96fa5b06d8 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 //@declaration: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit3_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit3_es5.2.minified.js index 8d49da7e9dc0..e6f336f3b59e 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit4_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit4_es5.1.normal.js index b5f61b28c70f..7f75afd34288 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 //@declaration: true var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit4_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit4_es5.2.minified.js index 03d035fcda14..f5fba00a5a34 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit8_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit8_es5.1.normal.js index d0f0d50e25fb..1549be8a2181 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit8_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 //@declaration: true var obj = _define_property({}, Symbol.isConcatSpreadable, 0); diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit8_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit8_es5.2.minified.js index 5ce54a9edab1..7a533c57a46f 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit8_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.isConcatSpreadable, 0); diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit9_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit9_es5.1.normal.js index 672b7a339f20..15d619db7e2d 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit9_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 //@declaration: true var obj = _define_property({}, Symbol.isConcatSpreadable, function() {}); diff --git a/crates/swc/tests/tsc-references/symbolDeclarationEmit9_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolDeclarationEmit9_es5.2.minified.js index 366d8f546676..ec07c2990095 100644 --- a/crates/swc/tests/tsc-references/symbolDeclarationEmit9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolDeclarationEmit9_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.isConcatSpreadable, function() {}); diff --git a/crates/swc/tests/tsc-references/symbolProperty10_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty10_es5.1.normal.js index 9b23f9d80c0b..0b111150edda 100644 --- a/crates/swc/tests/tsc-references/symbolProperty10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty10_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty10_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty10_es5.2.minified.js index efa4ee413b08..a315d0dca1e8 100644 --- a/crates/swc/tests/tsc-references/symbolProperty10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty10_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolProperty11_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty11_es5.1.normal.js index 9b23f9d80c0b..0b111150edda 100644 --- a/crates/swc/tests/tsc-references/symbolProperty11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty11_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty11_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty11_es5.2.minified.js index efa4ee413b08..a315d0dca1e8 100644 --- a/crates/swc/tests/tsc-references/symbolProperty11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty11_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolProperty12_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty12_es5.1.normal.js index 9b23f9d80c0b..0b111150edda 100644 --- a/crates/swc/tests/tsc-references/symbolProperty12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty12_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty12_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty12_es5.2.minified.js index efa4ee413b08..a315d0dca1e8 100644 --- a/crates/swc/tests/tsc-references/symbolProperty12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty12_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolProperty13_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty13_es5.1.normal.js index 01fa854f0c49..4d2156af89ed 100644 --- a/crates/swc/tests/tsc-references/symbolProperty13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty13_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty13_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty13_es5.2.minified.js index 3d702fff128d..67485ccbc7eb 100644 --- a/crates/swc/tests/tsc-references/symbolProperty13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty13_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolProperty14_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty14_es5.1.normal.js index 01fa854f0c49..4d2156af89ed 100644 --- a/crates/swc/tests/tsc-references/symbolProperty14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty14_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty14_es5.2.minified.js index 3d702fff128d..67485ccbc7eb 100644 --- a/crates/swc/tests/tsc-references/symbolProperty14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty14_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolProperty15_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty15_es5.1.normal.js index 01fa854f0c49..4d2156af89ed 100644 --- a/crates/swc/tests/tsc-references/symbolProperty15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty15_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty15_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty15_es5.2.minified.js index 3d702fff128d..67485ccbc7eb 100644 --- a/crates/swc/tests/tsc-references/symbolProperty15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty15_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolProperty16_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty16_es5.1.normal.js index 01fa854f0c49..4d2156af89ed 100644 --- a/crates/swc/tests/tsc-references/symbolProperty16_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty16_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty16_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty16_es5.2.minified.js index 3d702fff128d..67485ccbc7eb 100644 --- a/crates/swc/tests/tsc-references/symbolProperty16_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty16_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var i, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolProperty18_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty18_es5.1.normal.js index 17b556833000..fadcf75703b9 100644 --- a/crates/swc/tests/tsc-references/symbolProperty18_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty18_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; //@target: ES6 var i = (_obj = {}, _define_property(_obj, Symbol.iterator, 0), _define_property(_obj, Symbol.toStringTag, function() { diff --git a/crates/swc/tests/tsc-references/symbolProperty18_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty18_es5.2.minified.js index a063139e7a52..975ee36a0637 100644 --- a/crates/swc/tests/tsc-references/symbolProperty18_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty18_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}, i = (_define_property(_obj = {}, Symbol.iterator, 0), _define_property(_obj, Symbol.toStringTag, function() { return ""; }), _mutatorMap[Symbol.toPrimitive] = _mutatorMap[Symbol.toPrimitive] || {}, _mutatorMap[Symbol.toPrimitive].set = function(p) {}, _define_enumerable_properties(_obj, _mutatorMap), _obj); diff --git a/crates/swc/tests/tsc-references/symbolProperty19_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty19_es5.1.normal.js index ca8c52c141f5..4fd89037a0cf 100644 --- a/crates/swc/tests/tsc-references/symbolProperty19_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty19_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; //@target: ES6 var i = (_obj = {}, _define_property(_obj, Symbol.iterator, { diff --git a/crates/swc/tests/tsc-references/symbolProperty19_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty19_es5.2.minified.js index e2a660a7dc72..5d5b018a09d1 100644 --- a/crates/swc/tests/tsc-references/symbolProperty19_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty19_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, i = (_define_property(_obj = {}, Symbol.iterator, { p: null }), _define_property(_obj, Symbol.toStringTag, function() { diff --git a/crates/swc/tests/tsc-references/symbolProperty1_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty1_es5.1.normal.js index 3738e943bfcf..c5eef0eebcdf 100644 --- a/crates/swc/tests/tsc-references/symbolProperty1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var s; var _obj, _mutatorMap = {}; diff --git a/crates/swc/tests/tsc-references/symbolProperty1_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty1_es5.2.minified.js index aaae7f462d79..232787390b23 100644 --- a/crates/swc/tests/tsc-references/symbolProperty1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var s, _obj, _mutatorMap = {}; _define_property(_obj = {}, s, 0), _define_property(_obj, s, function() {}), _mutatorMap[s] = _mutatorMap[s] || {}, _mutatorMap[s].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/symbolProperty20_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty20_es5.1.normal.js index 0a0a0b10f1ac..f7d7fd6920f3 100644 --- a/crates/swc/tests/tsc-references/symbolProperty20_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty20_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; var i = (_obj = {}, _define_property(_obj, Symbol.iterator, function(s) { return s; diff --git a/crates/swc/tests/tsc-references/symbolProperty20_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty20_es5.2.minified.js index 7becc668055d..5ca25da3c5eb 100644 --- a/crates/swc/tests/tsc-references/symbolProperty20_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty20_es5.2.minified.js @@ -1,5 +1,5 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, Symbol.iterator, function(s) { return s; }), _define_property(_obj, Symbol.toStringTag, function(n) { diff --git a/crates/swc/tests/tsc-references/symbolProperty21_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty21_es5.1.normal.js index 901593a0097e..d2525cdd9f50 100644 --- a/crates/swc/tests/tsc-references/symbolProperty21_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty21_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; foo((_obj = {}, _define_property(_obj, Symbol.isConcatSpreadable, ""), _define_property(_obj, Symbol.toPrimitive, 0), _define_property(_obj, Symbol.unscopables, true), _obj)); diff --git a/crates/swc/tests/tsc-references/symbolProperty21_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty21_es5.2.minified.js index 6c6e0406a43f..61d8d90e0341 100644 --- a/crates/swc/tests/tsc-references/symbolProperty21_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty21_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; foo((_define_property(_obj = {}, Symbol.isConcatSpreadable, ""), _define_property(_obj, Symbol.toPrimitive, 0), _define_property(_obj, Symbol.unscopables, !0), _obj)); diff --git a/crates/swc/tests/tsc-references/symbolProperty22_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty22_es5.1.normal.js index 1a0005f5f16d..0150a12a38e8 100644 --- a/crates/swc/tests/tsc-references/symbolProperty22_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty22_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; foo("", _define_property({}, Symbol.unscopables, function(s) { return s.length; })); diff --git a/crates/swc/tests/tsc-references/symbolProperty22_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty22_es5.2.minified.js index 1a0005f5f16d..0150a12a38e8 100644 --- a/crates/swc/tests/tsc-references/symbolProperty22_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty22_es5.2.minified.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; foo("", _define_property({}, Symbol.unscopables, function(s) { return s.length; })); diff --git a/crates/swc/tests/tsc-references/symbolProperty23_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty23_es5.1.normal.js index c6748cc1e1f4..b0aa95d360c5 100644 --- a/crates/swc/tests/tsc-references/symbolProperty23_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty23_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty23_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty23_es5.2.minified.js index 703da0e42896..f55a746215c9 100644 --- a/crates/swc/tests/tsc-references/symbolProperty23_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty23_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty24_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty24_es5.1.normal.js index 54a25a60ce86..671b01fe3b45 100644 --- a/crates/swc/tests/tsc-references/symbolProperty24_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty24_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty24_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty24_es5.2.minified.js index 7721a952d7b9..997a58693bc0 100644 --- a/crates/swc/tests/tsc-references/symbolProperty24_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty24_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty25_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty25_es5.1.normal.js index 256428a776c9..dd7e204004f1 100644 --- a/crates/swc/tests/tsc-references/symbolProperty25_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty25_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty25_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty25_es5.2.minified.js index a987326f10cd..4fbc878a4dc7 100644 --- a/crates/swc/tests/tsc-references/symbolProperty25_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty25_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty26_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty26_es5.1.normal.js index 165c131a5b0b..989eee8c4135 100644 --- a/crates/swc/tests/tsc-references/symbolProperty26_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty26_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var C1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty26_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty26_es5.2.minified.js index ec03325b8c0d..2fd2c2461604 100644 --- a/crates/swc/tests/tsc-references/symbolProperty26_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty26_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/symbolProperty27_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty27_es5.1.normal.js index 476260ac6e21..13076aa68eaf 100644 --- a/crates/swc/tests/tsc-references/symbolProperty27_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty27_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var C1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty27_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty27_es5.2.minified.js index e6222fa5b6d9..997074e94642 100644 --- a/crates/swc/tests/tsc-references/symbolProperty27_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty27_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/symbolProperty28_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty28_es5.1.normal.js index 810d3752ddc3..4ec19881d88c 100644 --- a/crates/swc/tests/tsc-references/symbolProperty28_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty28_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var C1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty28_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty28_es5.2.minified.js index a5739ed2dd47..803935d70a81 100644 --- a/crates/swc/tests/tsc-references/symbolProperty28_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty28_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var c, C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/symbolProperty29_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty29_es5.1.normal.js index 17f29607d55e..fcb12085ef74 100644 --- a/crates/swc/tests/tsc-references/symbolProperty29_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty29_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty29_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty29_es5.2.minified.js index abbea846e88a..2fe8105b5b2f 100644 --- a/crates/swc/tests/tsc-references/symbolProperty29_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty29_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/symbolProperty2_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty2_es5.1.normal.js index 7a797ddd38bd..dd3f94d42e11 100644 --- a/crates/swc/tests/tsc-references/symbolProperty2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var s = Symbol(); var _obj, _mutatorMap = {}; diff --git a/crates/swc/tests/tsc-references/symbolProperty2_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty2_es5.2.minified.js index c6f36fcdc78f..7bf4a720f5b7 100644 --- a/crates/swc/tests/tsc-references/symbolProperty2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, s = Symbol(), _mutatorMap = {}; _define_property(_obj = {}, s, 0), _define_property(_obj, s, function() {}), _mutatorMap[s] = _mutatorMap[s] || {}, _mutatorMap[s].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/symbolProperty30_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty30_es5.1.normal.js index 17f29607d55e..fcb12085ef74 100644 --- a/crates/swc/tests/tsc-references/symbolProperty30_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty30_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty30_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty30_es5.2.minified.js index abbea846e88a..2fe8105b5b2f 100644 --- a/crates/swc/tests/tsc-references/symbolProperty30_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty30_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/symbolProperty31_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty31_es5.1.normal.js index 1b0395412b1f..42b25febe317 100644 --- a/crates/swc/tests/tsc-references/symbolProperty31_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty31_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var C1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty31_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty31_es5.2.minified.js index 4c42a5c8066f..035e7340a26e 100644 --- a/crates/swc/tests/tsc-references/symbolProperty31_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty31_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/symbolProperty32_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty32_es5.1.normal.js index 1b0395412b1f..42b25febe317 100644 --- a/crates/swc/tests/tsc-references/symbolProperty32_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty32_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var C1 = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty32_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty32_es5.2.minified.js index 4c42a5c8066f..035e7340a26e 100644 --- a/crates/swc/tests/tsc-references/symbolProperty32_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty32_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/symbolProperty33_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty33_es5.1.normal.js index f60ac74423cd..0e3392fbcf70 100644 --- a/crates/swc/tests/tsc-references/symbolProperty33_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty33_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var C1 = /*#__PURE__*/ function(C21) { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty33_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty33_es5.2.minified.js index edb0a852a7f1..f16b907c8918 100644 --- a/crates/swc/tests/tsc-references/symbolProperty33_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty33_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function(C21) { "use strict"; _inherits(C1, C21); diff --git a/crates/swc/tests/tsc-references/symbolProperty34_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty34_es5.1.normal.js index f60ac74423cd..0e3392fbcf70 100644 --- a/crates/swc/tests/tsc-references/symbolProperty34_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty34_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@target: ES6 var C1 = /*#__PURE__*/ function(C21) { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty34_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty34_es5.2.minified.js index edb0a852a7f1..f16b907c8918 100644 --- a/crates/swc/tests/tsc-references/symbolProperty34_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty34_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function(C21) { "use strict"; _inherits(C1, C21); diff --git a/crates/swc/tests/tsc-references/symbolProperty36_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty36_es5.1.normal.js index c5796616fef3..8ac45bea43f2 100644 --- a/crates/swc/tests/tsc-references/symbolProperty36_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty36_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj; //@target: ES6 var x = (_obj = {}, _define_property(_obj, Symbol.isConcatSpreadable, 0), _define_property(_obj, Symbol.isConcatSpreadable, 1), _obj); diff --git a/crates/swc/tests/tsc-references/symbolProperty36_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty36_es5.2.minified.js index 1c43b37e8fdd..b439992aa584 100644 --- a/crates/swc/tests/tsc-references/symbolProperty36_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty36_es5.2.minified.js @@ -1,3 +1,3 @@ var _obj; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property(_obj = {}, Symbol.isConcatSpreadable, 0), _define_property(_obj, Symbol.isConcatSpreadable, 1); diff --git a/crates/swc/tests/tsc-references/symbolProperty39_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty39_es5.1.normal.js index 1fc049bf766f..3b6ba2c52b24 100644 --- a/crates/swc/tests/tsc-references/symbolProperty39_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty39_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty39_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty39_es5.2.minified.js index 3629bf587c3c..534cc43a12f0 100644 --- a/crates/swc/tests/tsc-references/symbolProperty39_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty39_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty3_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty3_es5.1.normal.js index 05400e319282..db50985d42b4 100644 --- a/crates/swc/tests/tsc-references/symbolProperty3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty3_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var s = Symbol; var _obj, _mutatorMap = {}; diff --git a/crates/swc/tests/tsc-references/symbolProperty3_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty3_es5.2.minified.js index 1df42804fc22..744fbcd6d68c 100644 --- a/crates/swc/tests/tsc-references/symbolProperty3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty3_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, s = Symbol, _mutatorMap = {}; _define_property(_obj = {}, s, 0), _define_property(_obj, s, function() {}), _mutatorMap[s] = _mutatorMap[s] || {}, _mutatorMap[s].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/symbolProperty40_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty40_es5.1.normal.js index c8c757454f64..76bc1321c701 100644 --- a/crates/swc/tests/tsc-references/symbolProperty40_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty40_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty40_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty40_es5.2.minified.js index 5d36925f85b6..45006d6a81ad 100644 --- a/crates/swc/tests/tsc-references/symbolProperty40_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty40_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty41_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty41_es5.1.normal.js index 58a7f86191ef..5f8b06754304 100644 --- a/crates/swc/tests/tsc-references/symbolProperty41_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty41_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty41_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty41_es5.2.minified.js index 98463967ee0a..dfa12a641ae7 100644 --- a/crates/swc/tests/tsc-references/symbolProperty41_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty41_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty42_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty42_es5.1.normal.js index 8b4363125cca..872c4c1e6430 100644 --- a/crates/swc/tests/tsc-references/symbolProperty42_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty42_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty42_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty42_es5.2.minified.js index 6d6c422461cb..787b76695959 100644 --- a/crates/swc/tests/tsc-references/symbolProperty42_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty42_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty43_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty43_es5.1.normal.js index fa9a0bea7d21..d58dff38ca61 100644 --- a/crates/swc/tests/tsc-references/symbolProperty43_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty43_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty43_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty43_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/symbolProperty43_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty43_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolProperty44_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty44_es5.1.normal.js index 41d7a5623a0e..93e4ee4bb43e 100644 --- a/crates/swc/tests/tsc-references/symbolProperty44_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty44_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty44_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty44_es5.2.minified.js index b0e11b5559f1..91b0c7cb7768 100644 --- a/crates/swc/tests/tsc-references/symbolProperty44_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty44_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty45_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty45_es5.1.normal.js index 5ab0f44e1ea2..6d2fbd0f1d87 100644 --- a/crates/swc/tests/tsc-references/symbolProperty45_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty45_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty45_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty45_es5.2.minified.js index c92661617828..14239e515f4a 100644 --- a/crates/swc/tests/tsc-references/symbolProperty45_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty45_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty46_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty46_es5.1.normal.js index 818e6a0a8da2..80491ebdb22b 100644 --- a/crates/swc/tests/tsc-references/symbolProperty46_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty46_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty46_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty46_es5.2.minified.js index aeca893c15f5..86b83e79f1d5 100644 --- a/crates/swc/tests/tsc-references/symbolProperty46_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty46_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty47_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty47_es5.1.normal.js index 818e6a0a8da2..80491ebdb22b 100644 --- a/crates/swc/tests/tsc-references/symbolProperty47_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty47_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: ES6 var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty47_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty47_es5.2.minified.js index aeca893c15f5..86b83e79f1d5 100644 --- a/crates/swc/tests/tsc-references/symbolProperty47_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty47_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty48_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty48_es5.1.normal.js index 65193886ec29..596142dd1211 100644 --- a/crates/swc/tests/tsc-references/symbolProperty48_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty48_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var M; (function(M) { diff --git a/crates/swc/tests/tsc-references/symbolProperty48_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty48_es5.2.minified.js index 8a50ec14b184..7a85ec89fb5c 100644 --- a/crates/swc/tests/tsc-references/symbolProperty48_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty48_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M) { var Symbol, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty49_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty49_es5.1.normal.js index f1ccaceb082f..1975ff32cf27 100644 --- a/crates/swc/tests/tsc-references/symbolProperty49_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty49_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var M; (function(M1) { diff --git a/crates/swc/tests/tsc-references/symbolProperty49_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty49_es5.2.minified.js index 2e0dffb2f50e..d7b2298745e9 100644 --- a/crates/swc/tests/tsc-references/symbolProperty49_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty49_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M1) { var Symbol, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty4_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty4_es5.1.normal.js index d64b66cc0fd8..3115be9d1359 100644 --- a/crates/swc/tests/tsc-references/symbolProperty4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty4_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; //@target: ES6 var x = (_obj = {}, _define_property(_obj, Symbol(), 0), _define_property(_obj, Symbol(), function() {}), _mutatorMap[Symbol()] = _mutatorMap[Symbol()] || {}, _mutatorMap[Symbol()].get = function() { diff --git a/crates/swc/tests/tsc-references/symbolProperty4_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty4_es5.2.minified.js index a37cb180d83a..384b2394d6f1 100644 --- a/crates/swc/tests/tsc-references/symbolProperty4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty4_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; _define_property(_obj = {}, Symbol(), 0), _define_property(_obj, Symbol(), function() {}), _mutatorMap[Symbol()] = _mutatorMap[Symbol()] || {}, _mutatorMap[Symbol()].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/symbolProperty50_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty50_es5.1.normal.js index 838670581c1b..46723e292a3e 100644 --- a/crates/swc/tests/tsc-references/symbolProperty50_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty50_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var M; (function(M) { diff --git a/crates/swc/tests/tsc-references/symbolProperty50_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty50_es5.2.minified.js index 9955623ceccf..56e17f407c4c 100644 --- a/crates/swc/tests/tsc-references/symbolProperty50_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty50_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty51_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty51_es5.1.normal.js index 838670581c1b..46723e292a3e 100644 --- a/crates/swc/tests/tsc-references/symbolProperty51_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty51_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var M; (function(M) { diff --git a/crates/swc/tests/tsc-references/symbolProperty51_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty51_es5.2.minified.js index 9955623ceccf..56e17f407c4c 100644 --- a/crates/swc/tests/tsc-references/symbolProperty51_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty51_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty52_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty52_es5.1.normal.js index 6597edba5780..8651469fc726 100644 --- a/crates/swc/tests/tsc-references/symbolProperty52_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty52_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var obj = _define_property({}, Symbol.nonsense, 0); obj = {}; diff --git a/crates/swc/tests/tsc-references/symbolProperty52_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty52_es5.2.minified.js index aef49eb607b5..f737158a9a94 100644 --- a/crates/swc/tests/tsc-references/symbolProperty52_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty52_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.nonsense, 0); diff --git a/crates/swc/tests/tsc-references/symbolProperty53_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty53_es5.1.normal.js index 634c8bb73799..ab1af391b646 100644 --- a/crates/swc/tests/tsc-references/symbolProperty53_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty53_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var obj = _define_property({}, Symbol.for, 0); obj[Symbol.for]; diff --git a/crates/swc/tests/tsc-references/symbolProperty53_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty53_es5.2.minified.js index 4375c577ac9b..94189d3d1865 100644 --- a/crates/swc/tests/tsc-references/symbolProperty53_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty53_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.for, 0)[Symbol.for]; diff --git a/crates/swc/tests/tsc-references/symbolProperty54_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty54_es5.1.normal.js index 8b4c580a8497..754f50083def 100644 --- a/crates/swc/tests/tsc-references/symbolProperty54_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty54_es5.1.normal.js @@ -1,3 +1,3 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var obj = _define_property({}, Symbol.prototype, 0); diff --git a/crates/swc/tests/tsc-references/symbolProperty54_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty54_es5.2.minified.js index a44b92db6eb7..64299a49dfcc 100644 --- a/crates/swc/tests/tsc-references/symbolProperty54_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty54_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.prototype, 0); diff --git a/crates/swc/tests/tsc-references/symbolProperty55_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty55_es5.1.normal.js index 180fcf1930ca..50f817c633b8 100644 --- a/crates/swc/tests/tsc-references/symbolProperty55_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty55_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var obj = _define_property({}, Symbol.iterator, 0); var M; diff --git a/crates/swc/tests/tsc-references/symbolProperty55_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty55_es5.2.minified.js index fc1e19761389..69a45712dc74 100644 --- a/crates/swc/tests/tsc-references/symbolProperty55_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty55_es5.2.minified.js @@ -1,3 +1,3 @@ var M; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; M || (M = {}), _define_property({}, Symbol.iterator, 0)[(void 0).iterator]; diff --git a/crates/swc/tests/tsc-references/symbolProperty56_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty56_es5.1.normal.js index 05dacb1e96ea..0153c0a4db73 100644 --- a/crates/swc/tests/tsc-references/symbolProperty56_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty56_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var obj = _define_property({}, Symbol.iterator, 0); var M; diff --git a/crates/swc/tests/tsc-references/symbolProperty56_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty56_es5.2.minified.js index fc1e19761389..69a45712dc74 100644 --- a/crates/swc/tests/tsc-references/symbolProperty56_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty56_es5.2.minified.js @@ -1,3 +1,3 @@ var M; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; M || (M = {}), _define_property({}, Symbol.iterator, 0)[(void 0).iterator]; diff --git a/crates/swc/tests/tsc-references/symbolProperty57_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty57_es5.1.normal.js index 9cd730f40185..1c83c8c9abe3 100644 --- a/crates/swc/tests/tsc-references/symbolProperty57_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty57_es5.1.normal.js @@ -1,4 +1,4 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; //@target: ES6 var obj = _define_property({}, Symbol.iterator, 0); // Should give type 'any'. diff --git a/crates/swc/tests/tsc-references/symbolProperty57_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty57_es5.2.minified.js index 187b73e2f6e4..1faf726b67c2 100644 --- a/crates/swc/tests/tsc-references/symbolProperty57_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty57_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.iterator, 0)[Symbol.nonsense]; diff --git a/crates/swc/tests/tsc-references/symbolProperty58_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty58_es5.1.normal.js index ce482270b011..7d9e000b13e5 100644 --- a/crates/swc/tests/tsc-references/symbolProperty58_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty58_es5.1.normal.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var obj = _define_property({}, Symbol.foo, 0); diff --git a/crates/swc/tests/tsc-references/symbolProperty58_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty58_es5.2.minified.js index ec00eee58929..6aec3570ce44 100644 --- a/crates/swc/tests/tsc-references/symbolProperty58_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty58_es5.2.minified.js @@ -1,2 +1,2 @@ -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; _define_property({}, Symbol.foo, 0); diff --git a/crates/swc/tests/tsc-references/symbolProperty5_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty5_es5.1.normal.js index 0ff1d1c4b1a8..38db7d3b9746 100644 --- a/crates/swc/tests/tsc-references/symbolProperty5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty5_es5.1.normal.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; //@target: ES6 var x = (_obj = {}, _define_property(_obj, Symbol.iterator, 0), _define_property(_obj, Symbol.toPrimitive, function() {}), _mutatorMap[Symbol.toStringTag] = _mutatorMap[Symbol.toStringTag] || {}, _mutatorMap[Symbol.toStringTag].get = function() { diff --git a/crates/swc/tests/tsc-references/symbolProperty5_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty5_es5.2.minified.js index 4ea6bfacd817..844f6bb656c5 100644 --- a/crates/swc/tests/tsc-references/symbolProperty5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty5_es5.2.minified.js @@ -1,5 +1,5 @@ -import _define_enumerable_properties from "@swc/helpers/lib/_define_enumerable_properties.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; +import _define_enumerable_properties from "@swc/helpers/src/_define_enumerable_properties.mjs"; +import _define_property from "@swc/helpers/src/_define_property.mjs"; var _obj, _mutatorMap = {}; _define_property(_obj = {}, Symbol.iterator, 0), _define_property(_obj, Symbol.toPrimitive, function() {}), _mutatorMap[Symbol.toStringTag] = _mutatorMap[Symbol.toStringTag] || {}, _mutatorMap[Symbol.toStringTag].get = function() { return 0; diff --git a/crates/swc/tests/tsc-references/symbolProperty6_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty6_es5.1.normal.js index e47c4597a3c5..f03bbe648556 100644 --- a/crates/swc/tests/tsc-references/symbolProperty6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty6_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var _iterator = Symbol.iterator, _toPrimitive = Symbol.toPrimitive, _toStringTag = Symbol.toStringTag; //@target: ES6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/symbolProperty6_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty6_es5.2.minified.js index f686e6c08b0f..0f9c38a73a66 100644 --- a/crates/swc/tests/tsc-references/symbolProperty6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty6_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var _iterator = Symbol.iterator, _toPrimitive = Symbol.toPrimitive, _toStringTag = Symbol.toStringTag, C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/symbolProperty9_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolProperty9_es5.1.normal.js index 9b23f9d80c0b..0b111150edda 100644 --- a/crates/swc/tests/tsc-references/symbolProperty9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolProperty9_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@target: ES6 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/symbolProperty9_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolProperty9_es5.2.minified.js index efa4ee413b08..a315d0dca1e8 100644 --- a/crates/swc/tests/tsc-references/symbolProperty9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolProperty9_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/symbolType17_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolType17_es5.1.normal.js index e697aedbf9ff..31481240463f 100644 --- a/crates/swc/tests/tsc-references/symbolType17_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolType17_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var x; x; if ((typeof x === "undefined" ? "undefined" : _type_of(x)) === "symbol") { diff --git a/crates/swc/tests/tsc-references/symbolType17_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolType17_es5.2.minified.js index 56de735ae01d..0f0655567645 100644 --- a/crates/swc/tests/tsc-references/symbolType17_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolType17_es5.2.minified.js @@ -1,3 +1,3 @@ var x; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; void 0 === x || _type_of(x); diff --git a/crates/swc/tests/tsc-references/symbolType1_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolType1_es5.1.normal.js index 1671371241ce..92f830b9f640 100644 --- a/crates/swc/tests/tsc-references/symbolType1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolType1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; //@target: ES6 _instanceof(Symbol(), Symbol); _instanceof(Symbol, Symbol()); diff --git a/crates/swc/tests/tsc-references/symbolType1_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolType1_es5.2.minified.js index 268a2b2c8709..9cd37d0b0f34 100644 --- a/crates/swc/tests/tsc-references/symbolType1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolType1_es5.2.minified.js @@ -1,2 +1,2 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _instanceof(Symbol(), Symbol), _instanceof(Symbol, Symbol()), _instanceof(Symbol() || {}, Object), _instanceof(Symbol, Symbol() || {}); diff --git a/crates/swc/tests/tsc-references/symbolType3_es5.1.normal.js b/crates/swc/tests/tsc-references/symbolType3_es5.1.normal.js index ce66ea30b739..d58b484c57c4 100644 --- a/crates/swc/tests/tsc-references/symbolType3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/symbolType3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; //@target: ES6 var s = Symbol(); delete Symbol.iterator; diff --git a/crates/swc/tests/tsc-references/symbolType3_es5.2.minified.js b/crates/swc/tests/tsc-references/symbolType3_es5.2.minified.js index 7e3d4776cbba..8cf6614344b4 100644 --- a/crates/swc/tests/tsc-references/symbolType3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/symbolType3_es5.2.minified.js @@ -1,3 +1,3 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var s = Symbol(); delete Symbol.iterator, _type_of(Symbol.toStringTag), ++s, --s, Symbol(), Symbol(), Symbol(), Symbol(), Symbol(); diff --git a/crates/swc/tests/tsc-references/taggedTemplateContextualTyping1_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateContextualTyping1_es5.1.normal.js index d31b028f7949..406ccbba20a2 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateContextualTyping1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateContextualTyping1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateContextualTyping1_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateContextualTyping1_es5.2.minified.js index be5495854b53..907af7ddceb4 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateContextualTyping1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateContextualTyping1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateContextualTyping2_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateContextualTyping2_es5.1.normal.js index 46569c8e5c57..acd1d8a11356 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateContextualTyping2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateContextualTyping2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateContextualTyping2_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateContextualTyping2_es5.2.minified.js index d63459d8130b..52fe08e12807 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateContextualTyping2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateContextualTyping2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6_es5.1.normal.js index 183dac56ee39..62932ec9a233 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; 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_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6_es5.2.minified.js index b3dbc26698f3..7943bfa4a989 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_es5.1.normal.js index 8cfe8cbf8054..c952057cabc7 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_es5.2.minified.js index b3dbc26698f3..7943bfa4a989 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; 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/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6_es5.1.normal.js index 2eab878d2235..e942730fa7db 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "0", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6_es5.2.minified.js index f0acf96a1808..064640c2fe2b 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "0", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInferenceES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInferenceES6_es5.1.normal.js index 3aa3146140f1..b0e16b5948bf 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInferenceES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInferenceES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInferenceES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInferenceES6_es5.2.minified.js index e70e023c0385..d3ec403b0ea7 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInferenceES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInferenceES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference_es5.1.normal.js index 25973c386c6c..1631c3b3d330 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference_es5.2.minified.js index e70e023c0385..d3ec403b0ea7 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsTypeArgumentInference_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTagsES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTagsES6_es5.1.normal.js index 65d562918c61..68f8d7297c82 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTagsES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTagsES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTagsES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTagsES6_es5.2.minified.js index b10900dad2b9..10ddc7e94a95 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTagsES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTagsES6_es5.2.minified.js @@ -1,5 +1,5 @@ var f; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags_es5.1.normal.js index 65d562918c61..68f8d7297c82 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags_es5.2.minified.js index b10900dad2b9..10ddc7e94a95 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithIncompatibleTypedTags_es5.2.minified.js @@ -1,5 +1,5 @@ var f; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressionsES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressionsES6_es5.1.normal.js index a6d536ebeadc..840593a53317 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressionsES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressionsES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressionsES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressionsES6_es5.2.minified.js index 770aff00705f..079386098c72 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressionsES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressionsES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions_es5.1.normal.js index a6d536ebeadc..840593a53317 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions_es5.2.minified.js index 770aff00705f..079386098c72 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithManyCallAndMemberExpressions_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_ES6_es5.1.normal.js index 443fcb63e84f..b78e2a07fcbb 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_ES6_es5.2.minified.js index 9eb1de4b10d3..8d725ac9a875 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_es5.1.normal.js index 443fcb63e84f..b78e2a07fcbb 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_es5.2.minified.js index 9eb1de4b10d3..8d725ac9a875 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_ES6_es5.1.normal.js index d360c9b2bf05..8de4dcf7a93f 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_ES6_es5.2.minified.js index b6422081ad11..c7642c637d08 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_es5.1.normal.js index d360c9b2bf05..8de4dcf7a93f 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_es5.2.minified.js index b6422081ad11..c7642c637d08 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_ES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_ES6_es5.1.normal.js index 5bab588ed96a..82476b170ba5 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_ES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_ES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_ES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_ES6_es5.2.minified.js index 2ab10544c9f9..2c5ad486409e 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_ES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_ES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_es5.1.normal.js index 5bab588ed96a..82476b170ba5 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_es5.2.minified.js index 2ab10544c9f9..2c5ad486409e 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithOverloadResolution3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclareES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclareES6_es5.1.normal.js index c1b2a7fb0cc3..e80a18bed046 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclareES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclareES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclareES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclareES6_es5.2.minified.js index d891676c0403..4c6b5927f185 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclareES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclareES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare_es5.1.normal.js index 9dfc5ba5cee7..318cdcc93dd5 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare_es5.2.minified.js index d891676c0403..4c6b5927f185 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagNamedDeclare_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello ", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAnyES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAnyES6_es5.1.normal.js index 5ba8fb64da44..e4331765f281 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAnyES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAnyES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAnyES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAnyES6_es5.2.minified.js index e8bf15cb3235..92dd7021c814 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAnyES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAnyES6_es5.2.minified.js @@ -1,5 +1,5 @@ var f; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny_es5.1.normal.js index 28354561e066..c8c4b9b2c1e5 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny_es5.2.minified.js index e8bf15cb3235..92dd7021c814 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTagsTypedAsAny_es5.2.minified.js @@ -1,5 +1,5 @@ var f; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6_es5.1.normal.js index 99bad763972b..8f2f5216cf23 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6_es5.2.minified.js index a997eb507287..ea239f281017 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression_es5.1.normal.js index f46c12875da8..fac1beb71082 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression_es5.2.minified.js index a997eb507287..ea239f281017 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "", diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTagsES6_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTagsES6_es5.1.normal.js index 8505f6db6670..d07c8a208ea5 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTagsES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTagsES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTagsES6_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTagsES6_es5.2.minified.js index 8fb744d6720d..2d8b3bd930c7 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTagsES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTagsES6_es5.2.minified.js @@ -1,5 +1,5 @@ var f; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags_es5.1.normal.js index 8505f6db6670..d07c8a208ea5 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags_es5.2.minified.js index 8fb744d6720d..2d8b3bd930c7 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateStringsWithTypedTags_es5.2.minified.js @@ -1,5 +1,5 @@ var f; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "abc" diff --git a/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01_es5.1.normal.js index 73372f36c850..4d5befe2a9bf 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01_es5.2.minified.js index ad596d24dd3e..00ef98081806 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateUntypedTagCall01_es5.2.minified.js @@ -1,5 +1,5 @@ var tag; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01_es5.1.normal.js index 2a737f12a3bd..f05ed52adbd4 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01_es5.2.minified.js index 583c1d5b986d..8f7750d3a7a1 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag01_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02_es5.1.normal.js index 73372f36c850..4d5befe2a9bf 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02_es5.2.minified.js index ad596d24dd3e..00ef98081806 100644 --- a/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplateWithConstructableTag02_es5.2.minified.js @@ -1,5 +1,5 @@ var tag; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "Hello world!" diff --git a/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es2015.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es2015.1.normal.js index 4cdb118be485..c259fec1fe2e 100644 --- a/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; export const a = f` hello ${(stuff)=>stuff.x} diff --git a/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es2015.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es2015.2.minified.js index 59a5f2af57b3..bf97d7b8e6b3 100644 --- a/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; export const a = f` hello ${(stuff)=>stuff.x} diff --git a/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es5.1.normal.js b/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es5.1.normal.js index b10561a0ab8f..9224708eb343 100644 --- a/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "\n hello\n ", diff --git a/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es5.2.minified.js b/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es5.2.minified.js index 3148d192a838..afcbff64723a 100644 --- a/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/taggedTemplatesWithTypeArguments1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _object_spread from "@swc/helpers/lib/_object_spread.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "\n hello\n ", diff --git a/crates/swc/tests/tsc-references/templateLiteralTypesPatterns_es5.1.normal.js b/crates/swc/tests/tsc-references/templateLiteralTypesPatterns_es5.1.normal.js index fd18e76368e3..a7e4b7ed0693 100644 --- a/crates/swc/tests/tsc-references/templateLiteralTypesPatterns_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateLiteralTypesPatterns_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // ok var a = "/bin"; // not ok diff --git a/crates/swc/tests/tsc-references/templateLiteralTypesPatterns_es5.2.minified.js b/crates/swc/tests/tsc-references/templateLiteralTypesPatterns_es5.2.minified.js index f66379b66c2b..6c066e0a043b 100644 --- a/crates/swc/tests/tsc-references/templateLiteralTypesPatterns_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateLiteralTypesPatterns_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function download(hostSpec) {} download("http://example.com/protocol"), download("example.com/noprotocol"), download("gopher://example.com/protocol"), 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"), anyish = "bno", str = anyish = str = num = str, anyish = num, num = anyish, anyish = "aok"; export var AA = function() { diff --git a/crates/swc/tests/tsc-references/templateStringInInstanceOfES6_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringInInstanceOfES6_es5.1.normal.js index f83565ec7db9..5ceb7e92a7dd 100644 --- a/crates/swc/tests/tsc-references/templateStringInInstanceOfES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInInstanceOfES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @target: ES6 var x = _instanceof("abc".concat(0, "def"), String); diff --git a/crates/swc/tests/tsc-references/templateStringInInstanceOfES6_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringInInstanceOfES6_es5.2.minified.js index eeda62d007f3..b082899cbe84 100644 --- a/crates/swc/tests/tsc-references/templateStringInInstanceOfES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInInstanceOfES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _instanceof("abc".concat(0, "def"), String); diff --git a/crates/swc/tests/tsc-references/templateStringInInstanceOf_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringInInstanceOf_es5.1.normal.js index f445cd6a6c6f..3497a6d4f085 100644 --- a/crates/swc/tests/tsc-references/templateStringInInstanceOf_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInInstanceOf_es5.1.normal.js @@ -1,2 +1,2 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var x = _instanceof("abc".concat(0, "def"), String); diff --git a/crates/swc/tests/tsc-references/templateStringInInstanceOf_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringInInstanceOf_es5.2.minified.js index eeda62d007f3..b082899cbe84 100644 --- a/crates/swc/tests/tsc-references/templateStringInInstanceOf_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInInstanceOf_es5.2.minified.js @@ -1,2 +1,2 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _instanceof("abc".concat(0, "def"), String); diff --git a/crates/swc/tests/tsc-references/templateStringInTaggedTemplateES6_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringInTaggedTemplateES6_es5.1.normal.js index c7f1f655df6d..f3c6c9265c68 100644 --- a/crates/swc/tests/tsc-references/templateStringInTaggedTemplateES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInTaggedTemplateES6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "I ", diff --git a/crates/swc/tests/tsc-references/templateStringInTaggedTemplateES6_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringInTaggedTemplateES6_es5.2.minified.js index eff8d5dfd44d..64639f9663f6 100644 --- a/crates/swc/tests/tsc-references/templateStringInTaggedTemplateES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInTaggedTemplateES6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "I ", diff --git a/crates/swc/tests/tsc-references/templateStringInTaggedTemplate_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringInTaggedTemplate_es5.1.normal.js index 87ba5778a66c..7784f78f7eef 100644 --- a/crates/swc/tests/tsc-references/templateStringInTaggedTemplate_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInTaggedTemplate_es5.1.normal.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "I ", diff --git a/crates/swc/tests/tsc-references/templateStringInTaggedTemplate_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringInTaggedTemplate_es5.2.minified.js index eff8d5dfd44d..64639f9663f6 100644 --- a/crates/swc/tests/tsc-references/templateStringInTaggedTemplate_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInTaggedTemplate_es5.2.minified.js @@ -1,4 +1,4 @@ -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "I ", diff --git a/crates/swc/tests/tsc-references/templateStringInTypeOfES6_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringInTypeOfES6_es5.1.normal.js index 74011cab412e..42c9c7a7e63f 100644 --- a/crates/swc/tests/tsc-references/templateStringInTypeOfES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInTypeOfES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: ES6 var x = _type_of("abc".concat(123, "def")); diff --git a/crates/swc/tests/tsc-references/templateStringInTypeOfES6_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringInTypeOfES6_es5.2.minified.js index e0e954f94d50..e83b499cf301 100644 --- a/crates/swc/tests/tsc-references/templateStringInTypeOfES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInTypeOfES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; _type_of("abc".concat(123, "def")); diff --git a/crates/swc/tests/tsc-references/templateStringInTypeOf_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringInTypeOf_es5.1.normal.js index 8411a2c5c973..412622dcbc24 100644 --- a/crates/swc/tests/tsc-references/templateStringInTypeOf_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringInTypeOf_es5.1.normal.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var x = _type_of("abc".concat(123, "def")); diff --git a/crates/swc/tests/tsc-references/templateStringInTypeOf_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringInTypeOf_es5.2.minified.js index e0e954f94d50..e83b499cf301 100644 --- a/crates/swc/tests/tsc-references/templateStringInTypeOf_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringInTypeOf_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; _type_of("abc".concat(123, "def")); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOfES6_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOfES6_es5.1.normal.js index 981e01df7fb9..6b6f7bee1ac6 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOfES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOfES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @target: ES6 var x = "abc".concat(_instanceof("hello", String), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOfES6_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOfES6_es5.2.minified.js index 9772956c89c5..75e736537f8a 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOfES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOfES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; "abc".concat(_instanceof("hello", String), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf_es5.1.normal.js index 6eee3503c6bc..c1c0932a5b0f 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf_es5.1.normal.js @@ -1,2 +1,2 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var x = "abc".concat(_instanceof("hello", String), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf_es5.2.minified.js index 9772956c89c5..75e736537f8a 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedInstanceOf_es5.2.minified.js @@ -1,2 +1,2 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; "abc".concat(_instanceof("hello", String), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperatorES6_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperatorES6_es5.1.normal.js index 834db9524a10..50b7a3bce80e 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperatorES6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperatorES6_es5.1.normal.js @@ -1,3 +1,3 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @target: ES6 var x = "abc".concat(_type_of("hi"), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperatorES6_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperatorES6_es5.2.minified.js index 76496ac1546e..4eebe3be9aa8 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperatorES6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperatorES6_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; "abc".concat(_type_of("hi"), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator_es5.1.normal.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator_es5.1.normal.js index 94041fd6cd61..da8013ccfc11 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator_es5.1.normal.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var x = "abc".concat(_type_of("hi"), "def"); diff --git a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator_es5.2.minified.js b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator_es5.2.minified.js index 76496ac1546e..4eebe3be9aa8 100644 --- a/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/templateStringWithEmbeddedTypeOfOperator_es5.2.minified.js @@ -1,2 +1,2 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; "abc".concat(_type_of("hi"), "def"); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es2015.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es2015.1.normal.js index e27dae420549..2c01fb927d03 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _set from "@swc/helpers/lib/_set.js"; +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 _set from "@swc/helpers/src/_set.mjs"; var _ref, _super_a; class C extends B { constructor(...args){ diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es2015.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es2015.2.minified.js index 2eb14de4a700..e0c6e06d31c7 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es2015.2.minified.js @@ -1,8 +1,8 @@ var _ref, _super_a, _tmp; -import _extends from "@swc/helpers/lib/_extends.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _set from "@swc/helpers/lib/_set.js"; +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 _set from "@swc/helpers/src/_set.mjs"; 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/thisAndSuperInStaticMembers1_es5.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es5.1.normal.js index e401efaa7e29..2ccd8abb2ee8 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es5.1.normal.js @@ -1,12 +1,12 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _set from "@swc/helpers/src/_set.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es5.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es5.2.minified.js index f42d459bc67e..5a2c8076ae73 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers1_es5.2.minified.js @@ -1,12 +1,12 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _set from "@swc/helpers/src/_set.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es2015.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es2015.1.normal.js index e27dae420549..2c01fb927d03 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _set from "@swc/helpers/lib/_set.js"; +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 _set from "@swc/helpers/src/_set.mjs"; var _ref, _super_a; class C extends B { constructor(...args){ diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es2015.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es2015.2.minified.js index 2eb14de4a700..e0c6e06d31c7 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es2015.2.minified.js @@ -1,8 +1,8 @@ var _ref, _super_a, _tmp; -import _extends from "@swc/helpers/lib/_extends.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _set from "@swc/helpers/lib/_set.js"; +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 _set from "@swc/helpers/src/_set.mjs"; 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/thisAndSuperInStaticMembers2_es5.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es5.1.normal.js index e401efaa7e29..2ccd8abb2ee8 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es5.1.normal.js @@ -1,12 +1,12 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _set from "@swc/helpers/src/_set.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es5.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es5.2.minified.js index f42d459bc67e..5a2c8076ae73 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers2_es5.2.minified.js @@ -1,12 +1,12 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _set from "@swc/helpers/lib/_set.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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 _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 _inherits from "@swc/helpers/src/_inherits.mjs"; +import _set from "@swc/helpers/src/_set.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; function _templateObject() { var data = _tagged_template_literal([ "" diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es2015.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es2015.1.normal.js index e2e7f1c30a41..f615fc9aff4f 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; class C extends B { constructor(...args){ super(...args); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es2015.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es2015.2.minified.js index 7a007485d651..e32817017bc5 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es5.1.normal.js index 903337facc02..f3242e4019e0 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es5.1.normal.js @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var C = /*#__PURE__*/ function(B) { "use strict"; _inherits(C, B); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es5.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es5.2.minified.js index ecbf69d98987..5e67a68b1e56 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers3_es5.2.minified.js @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var C = function(B) { "use strict"; _inherits(C, B); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es2015.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es2015.1.normal.js index e2e7f1c30a41..f615fc9aff4f 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; class C extends B { constructor(...args){ super(...args); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es2015.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es2015.2.minified.js index 7a007485d651..e32817017bc5 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; 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/thisAndSuperInStaticMembers4_es5.1.normal.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es5.1.normal.js index 903337facc02..f3242e4019e0 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es5.1.normal.js @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var C = /*#__PURE__*/ function(B) { "use strict"; _inherits(C, B); diff --git a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es5.2.minified.js b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es5.2.minified.js index ecbf69d98987..5e67a68b1e56 100644 --- a/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisAndSuperInStaticMembers4_es5.2.minified.js @@ -1,9 +1,9 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var C = function(B) { "use strict"; _inherits(C, B); diff --git a/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer_es5.1.normal.js b/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer_es5.1.normal.js index 11b27ba0c13d..a4eaa3b6848c 100644 --- a/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer_es5.2.minified.js b/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer_es5.2.minified.js index 9c5c66b02f72..92cb2338fab3 100644 --- a/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisInInstanceMemberInitializer_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C), this.x = this; diff --git a/crates/swc/tests/tsc-references/thisInObjectLiterals_es5.1.normal.js b/crates/swc/tests/tsc-references/thisInObjectLiterals_es5.1.normal.js index 24e7f7a2e53c..b69208f0b183 100644 --- a/crates/swc/tests/tsc-references/thisInObjectLiterals_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisInObjectLiterals_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noImplicitAny: true // @noImplicitThis: true var MyClass = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/thisInObjectLiterals_es5.2.minified.js b/crates/swc/tests/tsc-references/thisInObjectLiterals_es5.2.minified.js index 58b274d4591b..137502c26e3e 100644 --- a/crates/swc/tests/tsc-references/thisInObjectLiterals_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisInObjectLiterals_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var MyClass = function() { "use strict"; function MyClass() { diff --git a/crates/swc/tests/tsc-references/thisMethodCall_es5.1.normal.js b/crates/swc/tests/tsc-references/thisMethodCall_es5.1.normal.js index 05d0301082ed..f8309c84f9d9 100644 --- a/crates/swc/tests/tsc-references/thisMethodCall_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisMethodCall_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @strict: true // @target: es6 var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/thisMethodCall_es5.2.minified.js b/crates/swc/tests/tsc-references/thisMethodCall_es5.2.minified.js index 40e7a735f40e..4c5735a21131 100644 --- a/crates/swc/tests/tsc-references/thisMethodCall_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisMethodCall_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular_es5.1.normal.js b/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular_es5.1.normal.js index dc45618f1b26..979647533251 100644 --- a/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @declaration: true diff --git a/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular_es5.2.minified.js b/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular_es5.2.minified.js index d507d51f68ab..fd4d661bce5b 100644 --- a/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisPropertyAssignmentCircular_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/thisPropertyOverridesAccessors_es5.1.normal.js b/crates/swc/tests/tsc-references/thisPropertyOverridesAccessors_es5.1.normal.js index 5bd3be9221cc..5272a44f624a 100644 --- a/crates/swc/tests/tsc-references/thisPropertyOverridesAccessors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisPropertyOverridesAccessors_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; // @target: esnext // @allowjs: true // @noemit: true diff --git a/crates/swc/tests/tsc-references/thisPropertyOverridesAccessors_es5.2.minified.js b/crates/swc/tests/tsc-references/thisPropertyOverridesAccessors_es5.2.minified.js index 6f0c5be31c88..cb9751f13800 100644 --- a/crates/swc/tests/tsc-references/thisPropertyOverridesAccessors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisPropertyOverridesAccessors_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 _create_super from "@swc/helpers/src/_create_super.mjs"; var Foo = function() { "use strict"; function Foo() { diff --git a/crates/swc/tests/tsc-references/thisTypeAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeAccessibility_es5.1.normal.js index 7689d73c9605..2b08719a5dcd 100644 --- a/crates/swc/tests/tsc-references/thisTypeAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeAccessibility_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var MyClass = function MyClass() { "use strict"; _class_call_check(this, MyClass); diff --git a/crates/swc/tests/tsc-references/thisTypeAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeAccessibility_es5.2.minified.js index 98c1eb1360e9..1df9c9f8415f 100644 --- a/crates/swc/tests/tsc-references/thisTypeAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeAccessibility_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var MyClass = function() { "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_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeAndConstraints_es5.1.normal.js index 7c384fd0560d..8e6bff225e67 100644 --- a/crates/swc/tests/tsc-references/thisTypeAndConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeAndConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = /*#__PURE__*/ function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/thisTypeAndConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeAndConstraints_es5.2.minified.js index c50ec22b46a6..209e8240a7c9 100644 --- a/crates/swc/tests/tsc-references/thisTypeAndConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeAndConstraints_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/thisTypeErrors2_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeErrors2_es5.1.normal.js index 61eb9055fdd5..efa5a88a57b2 100644 --- a/crates/swc/tests/tsc-references/thisTypeErrors2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeErrors2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = function Base(a) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/thisTypeErrors2_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeErrors2_es5.2.minified.js index 08c03bfd1d95..3a0f6148e11c 100644 --- a/crates/swc/tests/tsc-references/thisTypeErrors2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeErrors2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Base = function(a) { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/thisTypeErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeErrors_es5.1.normal.js index b2a0a61a06fd..4a7c464a1a25 100644 --- a/crates/swc/tests/tsc-references/thisTypeErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeErrors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x1; var x2; var x3; diff --git a/crates/swc/tests/tsc-references/thisTypeErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeErrors_es5.2.minified.js index 6936aaad3602..a8ccf7a66998 100644 --- a/crates/swc/tests/tsc-references/thisTypeErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeErrors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var N1, C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/thisTypeInAccessors_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInAccessors_es5.1.normal.js index ee1a4aae8e13..47ff2a6b6cfb 100644 --- a/crates/swc/tests/tsc-references/thisTypeInAccessors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInAccessors_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var explicit = { n: 12, get x () { diff --git a/crates/swc/tests/tsc-references/thisTypeInAccessors_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInAccessors_es5.2.minified.js index a6f964ee5c62..91f23ebe7e89 100644 --- a/crates/swc/tests/tsc-references/thisTypeInAccessors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInAccessors_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var Explicit = function() { "use strict"; function Explicit() { diff --git a/crates/swc/tests/tsc-references/thisTypeInClasses_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInClasses_es5.1.normal.js index f377c3c30bb4..9a851bfd92c8 100644 --- a/crates/swc/tests/tsc-references/thisTypeInClasses_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInClasses_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C1 = /*#__PURE__*/ function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/thisTypeInClasses_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInClasses_es5.2.minified.js index 97ec0aa83d4f..68d74431fb7f 100644 --- a/crates/swc/tests/tsc-references/thisTypeInClasses_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInClasses_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/thisTypeInFunctions3_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInFunctions3_es5.1.normal.js index cfc51a2bd7b0..9126a9b74139 100644 --- a/crates/swc/tests/tsc-references/thisTypeInFunctions3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInFunctions3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Test = /*#__PURE__*/ function(Base) { "use strict"; _inherits(Test, Base); diff --git a/crates/swc/tests/tsc-references/thisTypeInFunctions3_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInFunctions3_es5.2.minified.js index 82f28b74993d..793353a3af56 100644 --- a/crates/swc/tests/tsc-references/thisTypeInFunctions3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInFunctions3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Test = function(Base) { "use strict"; _inherits(Test, Base); diff --git a/crates/swc/tests/tsc-references/thisTypeInFunctions_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInFunctions_es5.1.normal.js index def59fc7064d..773791a68693 100644 --- a/crates/swc/tests/tsc-references/thisTypeInFunctions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInFunctions_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _this = this; // body checking var B = function B() { diff --git a/crates/swc/tests/tsc-references/thisTypeInFunctions_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInFunctions_es5.2.minified.js index 1406cf6663c8..65c82355307c 100644 --- a/crates/swc/tests/tsc-references/thisTypeInFunctions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInFunctions_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var explicitCFunction, explicitPropertyFunction, _this = this, B = function() { "use strict"; _class_call_check(this, B); diff --git a/crates/swc/tests/tsc-references/thisTypeInTaggedTemplateCall_es5.1.normal.js b/crates/swc/tests/tsc-references/thisTypeInTaggedTemplateCall_es5.1.normal.js index 56d6a182b369..860fc8875c09 100644 --- a/crates/swc/tests/tsc-references/thisTypeInTaggedTemplateCall_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/thisTypeInTaggedTemplateCall_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "test" diff --git a/crates/swc/tests/tsc-references/thisTypeInTaggedTemplateCall_es5.2.minified.js b/crates/swc/tests/tsc-references/thisTypeInTaggedTemplateCall_es5.2.minified.js index ee463296b2f2..5e277f9aff69 100644 --- a/crates/swc/tests/tsc-references/thisTypeInTaggedTemplateCall_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/thisTypeInTaggedTemplateCall_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _tagged_template_literal from "@swc/helpers/lib/_tagged_template_literal.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _tagged_template_literal from "@swc/helpers/src/_tagged_template_literal.mjs"; function _templateObject() { var data = _tagged_template_literal([ "test" diff --git a/crates/swc/tests/tsc-references/throwInEnclosingStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/throwInEnclosingStatements_es5.1.normal.js index b920a3f170bd..4765d2766168 100644 --- a/crates/swc/tests/tsc-references/throwInEnclosingStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/throwInEnclosingStatements_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowUnreachableCode: true function fn(x) { throw x; diff --git a/crates/swc/tests/tsc-references/throwInEnclosingStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/throwInEnclosingStatements_es5.2.minified.js index 324b5b1419e2..d20d3012375b 100644 --- a/crates/swc/tests/tsc-references/throwInEnclosingStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/throwInEnclosingStatements_es5.2.minified.js @@ -1,3 +1,3 @@ var y; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; throw y; diff --git a/crates/swc/tests/tsc-references/throwStatements_es5.1.normal.js b/crates/swc/tests/tsc-references/throwStatements_es5.1.normal.js index 69de91e57a9d..7e5c80e8cf40 100644 --- a/crates/swc/tests/tsc-references/throwStatements_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/throwStatements_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/throwStatements_es5.2.minified.js b/crates/swc/tests/tsc-references/throwStatements_es5.2.minified.js index cecd06f11522..a2f08085fefc 100644 --- a/crates/swc/tests/tsc-references/throwStatements_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/throwStatements_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/tsNoCheckForTypescript_es5.1.normal.js b/crates/swc/tests/tsc-references/tsNoCheckForTypescript_es5.1.normal.js index 4e09bb1e5c91..18394ca698ee 100644 --- a/crates/swc/tests/tsc-references/tsNoCheckForTypescript_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsNoCheckForTypescript_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true // @filename: file.ts // @ts-nocheck diff --git a/crates/swc/tests/tsc-references/tsNoCheckForTypescript_es5.2.minified.js b/crates/swc/tests/tsc-references/tsNoCheckForTypescript_es5.2.minified.js index cab22e921f78..fd9f800ff84b 100644 --- a/crates/swc/tests/tsc-references/tsNoCheckForTypescript_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsNoCheckForTypescript_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var a = 1 + {}; export var Bet = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxAttributeErrors_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeErrors_es2015.1.normal.js index a6e7168f949c..255ff91e06d2 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeErrors_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeErrors_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // Error, number is not assignable to string /*#__PURE__*/ React.createElement("div", { text: 42 diff --git a/crates/swc/tests/tsc-references/tsxAttributeErrors_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeErrors_es2015.2.minified.js index 4befadbc6f52..852fdee14b89 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeErrors_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeErrors_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, { text: 100 }); diff --git a/crates/swc/tests/tsc-references/tsxAttributeErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeErrors_es5.1.normal.js index ca55cd8c5a77..e2a4624f85b2 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeErrors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // Error, number is not assignable to string /*#__PURE__*/ React.createElement("div", { text: 42 diff --git a/crates/swc/tests/tsc-references/tsxAttributeErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeErrors_es5.2.minified.js index 4befadbc6f52..852fdee14b89 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeErrors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, { text: 100 }); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution10_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution10_es5.1.normal.js index 6cd800076dac..c4fa66393163 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution10_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@filename: file.tsx export var MyComponent = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution10_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution10_es5.2.minified.js index 015c97d34e09..79e5f0f7429f 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution10_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var MyComponent = function() { "use strict"; function MyComponent() { diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution11_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution11_es5.1.normal.js index 068511efed95..b355d6faf006 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution11_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@filename: file.tsx var MyComponent = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution11_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution11_es5.2.minified.js index 86b8f4851ccf..2b34fda6cae9 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution11_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var MyComponent = function() { "use strict"; function MyComponent() { diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution15_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution15_es5.1.normal.js index d8a912ebbd4c..6a7808cbb48d 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution15_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _this = this; // @filename: file.tsx // @jsx: preserve diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution15_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution15_es5.2.minified.js index 5f76bc98b220..53c997ab4b85 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution15_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), BigGreeter = function(_Component) { "use strict"; _inherits(BigGreeter, _Component); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution16_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution16_es5.1.normal.js index c3942d84aab0..335d31ce4541 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution16_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution16_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution16_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution16_es5.2.minified.js index bd92a7ca805a..7be0d99e0124 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution16_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution16_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"); export var AddressComp = function(_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution3_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution3_es2015.1.normal.js index 96b81a74f3b5..b41f2b302d58 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // OK var obj1 = { x: 'foo' diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution3_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution3_es2015.2.minified.js index d87d948923ce..8065cd6f7523 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, { x: 'foo' }), _extends({}, { diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution3_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution3_es5.1.normal.js index 8b319ecb09b3..88692648abc8 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // OK var obj1 = { x: "foo" diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution3_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution3_es5.2.minified.js index 7f5b20425d05..6e7899565979 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, { x: "foo" }), _extends({}, { diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution4_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution4_es2015.1.normal.js index 1f213df97618..b66d32cd4e6e 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // OK /*#__PURE__*/ React.createElement("test1", _extends({}, { x: (n)=>0 diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution4_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution4_es2015.2.minified.js index c9900939b457..54be9922636a 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, { x: (n)=>0 }), _extends({}, { diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution4_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution4_es5.1.normal.js index 12c47bed0452..5ac871759ac0 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // OK /*#__PURE__*/ React.createElement("test1", _extends({}, { x: function(n) { diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution4_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution4_es5.2.minified.js index dc9bd09ae82e..1950d19f16de 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, { x: function(n) { return 0; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution5_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution5_es2015.1.normal.js index f25f9b2e76c6..729485365765 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; function make1(obj) { return /*#__PURE__*/ React.createElement("test1", _extends({}, obj)); // OK } diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution5_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution5_es2015.2.minified.js index 9ecd00d9e18a..e01485bfd254 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution5_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, {}), _extends({}, {}); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution5_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution5_es5.1.normal.js index f25f9b2e76c6..729485365765 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; function make1(obj) { return /*#__PURE__*/ React.createElement("test1", _extends({}, obj)); // OK } diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution5_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution5_es5.2.minified.js index 9ecd00d9e18a..e01485bfd254 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, {}), _extends({}, {}); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution8_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution8_es2015.1.normal.js index b7f256d2a24b..85f91b9802c3 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution8_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution8_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var x; // Should be OK /*#__PURE__*/ React.createElement("test1", _extends({}, x)); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution8_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution8_es2015.2.minified.js index 953e2dba2a64..65b51afa4ce2 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution8_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution8_es2015.2.minified.js @@ -1,3 +1,3 @@ var x; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, x); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution8_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution8_es5.1.normal.js index b7f256d2a24b..85f91b9802c3 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution8_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var x; // Should be OK /*#__PURE__*/ React.createElement("test1", _extends({}, x)); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution8_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution8_es5.2.minified.js index 953e2dba2a64..65b51afa4ce2 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution8_es5.2.minified.js @@ -1,3 +1,3 @@ var x; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, x); diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution9_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxAttributeResolution9_es5.1.normal.js index 2f9719cf4d57..6c145503bbc4 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution9_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@filename: file.tsx export var MyComponent = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxAttributeResolution9_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxAttributeResolution9_es5.2.minified.js index 015c97d34e09..79e5f0f7429f 100644 --- a/crates/swc/tests/tsc-references/tsxAttributeResolution9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxAttributeResolution9_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var MyComponent = function() { "use strict"; function MyComponent() { diff --git a/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1_es5.1.normal.js index 49a8e3e2fff3..72f04a27530c 100644 --- a/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var ShortDetails = /*#__PURE__*/ function(_Component) { "use strict"; _inherits(ShortDetails, _Component); diff --git a/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1_es5.2.minified.js index f3b0d67a5cf5..5c70f50e1efd 100644 --- a/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxCorrectlyParseLessThanComparison1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; export var ShortDetails = function(_Component) { "use strict"; _inherits(ShortDetails, _Component); diff --git a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution1_es5.1.normal.js index 01336155b0d2..8af4dcdd341f 100644 --- a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution1_es5.2.minified.js index 9bcd24b5a2e0..db9cdccea06b 100644 --- a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), Poisoned = function(_Component) { "use strict"; _inherits(Poisoned, _Component); diff --git a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution2_es5.1.normal.js index 01336155b0d2..8af4dcdd341f 100644 --- a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution2_es5.2.minified.js index 9bcd24b5a2e0..db9cdccea06b 100644 --- a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), Poisoned = function(_Component) { "use strict"; _inherits(Poisoned, _Component); diff --git a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution3_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution3_es5.1.normal.js index 26fe37cf4a2d..9d4e336e52bf 100644 --- a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution3_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution3_es5.2.minified.js index 9bcd24b5a2e0..db9cdccea06b 100644 --- a/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDefaultAttributesResolution3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), Poisoned = function(_Component) { "use strict"; _inherits(Poisoned, _Component); diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName5_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxDynamicTagName5_es5.1.normal.js index 3738672c1479..e96f32767967 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName5_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@filename: app.tsx import * as React from "react"; export var Text = /*#__PURE__*/ function(_Component) { diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName5_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxDynamicTagName5_es5.2.minified.js index 13a2d997912f..3151a40622b3 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName5_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 React from "react"; export var Text = function(_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName7_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxDynamicTagName7_es5.1.normal.js index f6811de817db..925ba641459a 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName7_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@filename: app.tsx import * as React from "react"; export var Text = /*#__PURE__*/ function(_Component) { diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName7_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxDynamicTagName7_es5.2.minified.js index e03172cd5bbe..52205e96a45a 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName7_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 React from "react"; export var Text = function(_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName8_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxDynamicTagName8_es5.1.normal.js index b83ad5764ac4..ed86c3a6bb71 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName8_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@filename: app.tsx import * as React from "react"; export var Text = /*#__PURE__*/ function(_Component) { diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName8_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxDynamicTagName8_es5.2.minified.js index 7aefc1ba586e..46af544479ff 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName8_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 React from "react"; export var Text = function(_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName9_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxDynamicTagName9_es5.1.normal.js index b83ad5764ac4..ed86c3a6bb71 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName9_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@filename: app.tsx import * as React from "react"; export var Text = /*#__PURE__*/ function(_Component) { diff --git a/crates/swc/tests/tsc-references/tsxDynamicTagName9_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxDynamicTagName9_es5.2.minified.js index 7aefc1ba586e..46af544479ff 100644 --- a/crates/swc/tests/tsc-references/tsxDynamicTagName9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxDynamicTagName9_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 React from "react"; export var Text = function(_Component) { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxElementResolution12_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxElementResolution12_es2015.1.normal.js index 76d5cef1d73f..efc4ead4c246 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution12_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution12_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var Obj1; /*#__PURE__*/ React.createElement(Obj1, { x: 10 diff --git a/crates/swc/tests/tsc-references/tsxElementResolution12_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxElementResolution12_es2015.2.minified.js index d627acfbf06e..60de0b14a650 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution12_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution12_es2015.2.minified.js @@ -1,3 +1,3 @@ var attributes; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, attributes), _extends({}, {}); diff --git a/crates/swc/tests/tsc-references/tsxElementResolution12_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxElementResolution12_es5.1.normal.js index 34205e7c9b3a..3007f2f38a3d 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution12_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var Obj1; /*#__PURE__*/ React.createElement(Obj1, { x: 10 diff --git a/crates/swc/tests/tsc-references/tsxElementResolution12_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxElementResolution12_es5.2.minified.js index d627acfbf06e..60de0b14a650 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution12_es5.2.minified.js @@ -1,3 +1,3 @@ var attributes; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, attributes), _extends({}, {}); diff --git a/crates/swc/tests/tsc-references/tsxElementResolution19_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxElementResolution19_es5.1.normal.js index 9c8ea5ef416d..dd9f29af6a07 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution19_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution19_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@filename: file2.tsx // Should not elide React import import * as React from "react"; diff --git a/crates/swc/tests/tsc-references/tsxElementResolution19_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxElementResolution19_es5.2.minified.js index db12670a52e4..78497fe70656 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution19_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution19_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import * as React from "react"; export var MyClass = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxElementResolution_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxElementResolution_es5.1.normal.js index 7e077c360fd1..28faf96c55ad 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var foundFirst = function foundFirst() { "use strict"; _class_call_check(this, foundFirst); diff --git a/crates/swc/tests/tsc-references/tsxElementResolution_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxElementResolution_es5.2.minified.js index 497c6bed0ec0..f85f880ee921 100644 --- a/crates/swc/tests/tsc-references/tsxElementResolution_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxElementResolution_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Dotted, foundFirst = function() { "use strict"; _class_call_check(this, foundFirst); diff --git a/crates/swc/tests/tsc-references/tsxEmit1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxEmit1_es5.1.normal.js index 10d8a027782d..dd4bccd455cb 100644 --- a/crates/swc/tests/tsc-references/tsxEmit1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxEmit1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var p; var selfClosed1 = /*#__PURE__*/ React.createElement("div", null); var selfClosed2 = /*#__PURE__*/ React.createElement("div", { diff --git a/crates/swc/tests/tsc-references/tsxEmit1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxEmit1_es5.2.minified.js index 6eedb0ce1295..45e4d7b9147f 100644 --- a/crates/swc/tests/tsc-references/tsxEmit1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxEmit1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var p, SomeClass = function() { "use strict"; function SomeClass() { diff --git a/crates/swc/tests/tsc-references/tsxEmit2_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxEmit2_es2015.1.normal.js index ec9c9fa685bc..192ab26168e7 100644 --- a/crates/swc/tests/tsc-references/tsxEmit2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxEmit2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var p1, p2, p3; var spreads1 = /*#__PURE__*/ React.createElement("div", _extends({}, p1), p2); var spreads2 = /*#__PURE__*/ React.createElement("div", _extends({}, p1), p2); diff --git a/crates/swc/tests/tsc-references/tsxEmit2_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxEmit2_es2015.2.minified.js index 69182dbf32ee..1a524ef20def 100644 --- a/crates/swc/tests/tsc-references/tsxEmit2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxEmit2_es2015.2.minified.js @@ -1,5 +1,5 @@ var p1, p2, p3; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, p1), _extends({}, p1), _extends({ x: p3 }, p1), _extends({}, p1, { diff --git a/crates/swc/tests/tsc-references/tsxEmit2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxEmit2_es5.1.normal.js index ec9c9fa685bc..192ab26168e7 100644 --- a/crates/swc/tests/tsc-references/tsxEmit2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxEmit2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var p1, p2, p3; var spreads1 = /*#__PURE__*/ React.createElement("div", _extends({}, p1), p2); var spreads2 = /*#__PURE__*/ React.createElement("div", _extends({}, p1), p2); diff --git a/crates/swc/tests/tsc-references/tsxEmit2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxEmit2_es5.2.minified.js index 69182dbf32ee..1a524ef20def 100644 --- a/crates/swc/tests/tsc-references/tsxEmit2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxEmit2_es5.2.minified.js @@ -1,5 +1,5 @@ var p1, p2, p3; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, p1), _extends({}, p1), _extends({ x: p3 }, p1), _extends({}, p1, { diff --git a/crates/swc/tests/tsc-references/tsxEmit3_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxEmit3_es5.1.normal.js index bdbf2d069273..4f36cf1afe71 100644 --- a/crates/swc/tests/tsc-references/tsxEmit3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxEmit3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M; (function(M1) { var Foo = function Foo() { diff --git a/crates/swc/tests/tsc-references/tsxEmit3_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxEmit3_es5.2.minified.js index 9545f6d01f40..a3c65b8ffd81 100644 --- a/crates/swc/tests/tsc-references/tsxEmit3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxEmit3_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M1) { var S, Bar, Foo = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit1_es5.1.normal.js index ed50333a143d..c72a11d82cc9 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; //@filename: app.tsx import * as React from "react"; //@filename: button.tsx diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit1_es5.2.minified.js index 0e49d8049be0..af46aa6c7e5e 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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 React from "react"; import * as React from "react"; export var App = function(_Component) { diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es2015.1.normal.js index a0cdb48c54fd..f3b011a5b962 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; //@filename: app.tsx import Main from 'mod'; // Should see mod_1['default'] in emit here diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es2015.2.minified.js index 67bc77809282..74ba6d04c8f1 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es2015.2.minified.js @@ -1,3 +1,3 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import Main from 'mod'; _extends({}, Main); diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es5.1.normal.js index c881ec95808a..acf24d162a31 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; //@filename: app.tsx import Main from "mod"; // Should see mod_1['default'] in emit here diff --git a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es5.2.minified.js index 74ec8a8817e8..2e5c77c32e7e 100644 --- a/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxExternalModuleEmit2_es5.2.minified.js @@ -1,3 +1,3 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import Main from "mod"; _extends({}, Main); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es2015.1.normal.js index c1930247e1eb..63e80c23a829 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es5.1.normal.js index 93f3e13abdc8..8e6cff522329 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType1_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es2015.1.normal.js index 0b2916a778f6..bc9639555d16 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es5.1.normal.js index 2ac4e58accf8..22c87d673a7d 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType2_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es2015.1.normal.js index 5db77a837214..8c53d8df0627 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es2015.2.minified.js index f18f971e340f..e609c609deab 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class B1 extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es5.1.normal.js index dcd72c3644bb..7d8228d9df24 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es5.2.minified.js index 7bd57dced924..7680ca8e2c5e 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), B1 = function(_Component) { "use strict"; _inherits(B1, _Component); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es2015.1.normal.js index 5db77a837214..8c53d8df0627 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es2015.2.minified.js index f18f971e340f..e609c609deab 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class B1 extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es5.1.normal.js index dcd72c3644bb..7d8228d9df24 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es5.2.minified.js index 7bd57dced924..7680ca8e2c5e 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType4_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), B1 = function(_Component) { "use strict"; _inherits(B1, _Component); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es2015.1.normal.js index 5db77a837214..8c53d8df0627 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es2015.2.minified.js index f18f971e340f..e609c609deab 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class B1 extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es5.1.normal.js index dcd72c3644bb..7d8228d9df24 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es5.2.minified.js index 7bd57dced924..7680ca8e2c5e 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), B1 = function(_Component) { "use strict"; _inherits(B1, _Component); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es2015.1.normal.js index 5db77a837214..8c53d8df0627 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es2015.2.minified.js index f18f971e340f..e609c609deab 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class B1 extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es5.1.normal.js index dcd72c3644bb..7d8228d9df24 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es5.2.minified.js index 7bd57dced924..7680ca8e2c5e 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType6_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), B1 = function(_Component) { "use strict"; _inherits(B1, _Component); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es2015.1.normal.js index f9074cbc4495..b4779862a311 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es5.1.normal.js index 9bf69a68d5ec..5eb27165cc8d 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType7_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es2015.1.normal.js index cafc1ed3692e..43cbcb8683e1 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es5.1.normal.js index 148bc3d7018d..6176c25221e4 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType8_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es2015.1.normal.js index d85c21eef6bb..ccf7fe444418 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es2015.2.minified.js index 6c365b448e78..673930f72fcc 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); export function makeP(Ctor) { return class extends React.PureComponent { diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es5.1.normal.js index 1cc3983a9bd4..1b6a407d74de 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es5.2.minified.js index 81c0a36dce7a..8f34f5782e93 100644 --- a/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxGenericAttributesType9_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"); export function makeP(Ctor) { return function(_PureComponent) { diff --git a/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes_es5.1.normal.js index 60b3fc4b2e8a..561f6635ffff 100644 --- a/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Component = /*#__PURE__*/ function(ReactComponent) { "use strict"; _inherits(Component, ReactComponent); diff --git a/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes_es5.2.minified.js index e765d62c8942..fdaff6f5dd46 100644 --- a/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxLibraryManagedAttributes_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Component = function(ReactComponent) { "use strict"; _inherits(Component, ReactComponent); diff --git a/crates/swc/tests/tsc-references/tsxReactEmit1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit1_es5.1.normal.js index 579cffac110c..e72c20a36a36 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var p; var selfClosed1 = /*#__PURE__*/ React.createElement("div", null); var selfClosed2 = /*#__PURE__*/ React.createElement("div", { diff --git a/crates/swc/tests/tsc-references/tsxReactEmit1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit1_es5.2.minified.js index 6eedb0ce1295..45e4d7b9147f 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; var p, SomeClass = function() { "use strict"; function SomeClass() { diff --git a/crates/swc/tests/tsc-references/tsxReactEmit2_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit2_es2015.1.normal.js index ec9c9fa685bc..192ab26168e7 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var p1, p2, p3; var spreads1 = /*#__PURE__*/ React.createElement("div", _extends({}, p1), p2); var spreads2 = /*#__PURE__*/ React.createElement("div", _extends({}, p1), p2); diff --git a/crates/swc/tests/tsc-references/tsxReactEmit2_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit2_es2015.2.minified.js index 69182dbf32ee..1a524ef20def 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit2_es2015.2.minified.js @@ -1,5 +1,5 @@ var p1, p2, p3; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, p1), _extends({}, p1), _extends({ x: p3 }, p1), _extends({}, p1, { diff --git a/crates/swc/tests/tsc-references/tsxReactEmit2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit2_es5.1.normal.js index ec9c9fa685bc..192ab26168e7 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var p1, p2, p3; var spreads1 = /*#__PURE__*/ React.createElement("div", _extends({}, p1), p2); var spreads2 = /*#__PURE__*/ React.createElement("div", _extends({}, p1), p2); diff --git a/crates/swc/tests/tsc-references/tsxReactEmit2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit2_es5.2.minified.js index 69182dbf32ee..1a524ef20def 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit2_es5.2.minified.js @@ -1,5 +1,5 @@ var p1, p2, p3; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, p1), _extends({}, p1), _extends({ x: p3 }, p1), _extends({}, p1, { diff --git a/crates/swc/tests/tsc-references/tsxReactEmit4_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit4_es2015.1.normal.js index 765c0bd9b544..da9b34677d58 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; 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_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit4_es2015.2.minified.js index 6357843c1017..c88ae17488fc 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit4_es2015.2.minified.js @@ -1,5 +1,5 @@ var p; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; blah, _extends({}, p, { x: 0 }); diff --git a/crates/swc/tests/tsc-references/tsxReactEmit4_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit4_es5.1.normal.js index 765c0bd9b544..da9b34677d58 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit4_es5.2.minified.js index 6357843c1017..c88ae17488fc 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit4_es5.2.minified.js @@ -1,5 +1,5 @@ var p; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; blah, _extends({}, p, { x: 0 }); diff --git a/crates/swc/tests/tsc-references/tsxReactEmit5_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit5_es2015.1.normal.js index f868f6da3831..b4befc78b527 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; //@filename: react-consumer.tsx import { React } from "./test"; //@filename: test.d.ts diff --git a/crates/swc/tests/tsc-references/tsxReactEmit5_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit5_es2015.2.minified.js index 9167a8f87288..3f843f91ce83 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit5_es2015.2.minified.js @@ -1,5 +1,5 @@ var foo; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import { React } from "./test"; export var React; _extends({ diff --git a/crates/swc/tests/tsc-references/tsxReactEmit5_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit5_es5.1.normal.js index f868f6da3831..b4befc78b527 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; //@filename: react-consumer.tsx import { React } from "./test"; //@filename: test.d.ts diff --git a/crates/swc/tests/tsc-references/tsxReactEmit5_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit5_es5.2.minified.js index 9167a8f87288..3f843f91ce83 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit5_es5.2.minified.js @@ -1,5 +1,5 @@ var foo; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; import { React } from "./test"; export var React; _extends({ diff --git a/crates/swc/tests/tsc-references/tsxReactEmit6_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit6_es2015.1.normal.js index 12d8264eb504..226ecd1cd515 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; //@filename: react-consumer.tsx var M; (function(M1) { diff --git a/crates/swc/tests/tsc-references/tsxReactEmit6_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit6_es2015.2.minified.js index c2eee51133dd..58812a1a463f 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit6_es2015.2.minified.js @@ -1,5 +1,5 @@ var M; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; !function(M1) { var React; M1.React = React; diff --git a/crates/swc/tests/tsc-references/tsxReactEmit6_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxReactEmit6_es5.1.normal.js index 12d8264eb504..226ecd1cd515 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; //@filename: react-consumer.tsx var M; (function(M1) { diff --git a/crates/swc/tests/tsc-references/tsxReactEmit6_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxReactEmit6_es5.2.minified.js index c2eee51133dd..58812a1a463f 100644 --- a/crates/swc/tests/tsc-references/tsxReactEmit6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxReactEmit6_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; !function(M1) { var React; M1.React = React; diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es2015.1.normal.js index 9979944c01ba..38c3fd7bfa85 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es2015.2.minified.js index 0647f6d85c8e..749d3a93dd1f 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Opt extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es5.1.normal.js index 0b01adac67f0..bd0575437ad3 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es5.2.minified.js index 39ac6a1cf617..bc14e126c8c1 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution10_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), Opt = function(_Component) { "use strict"; _inherits(Opt, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es2015.1.normal.js index efd756140efc..928fdfbe6b32 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es2015.2.minified.js index 042a1fa1f82c..092be0626f46 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'), obj1 = { x: 2 }; diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es5.1.normal.js index 6e72c8b0e374..09785aae9b23 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es5.2.minified.js index 605499201fac..12d2688315ae 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution11_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var anyobj, React = require("react"), obj1 = { x: 2 }, OverWriteAttr = function(_Component) { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es2015.1.normal.js index ced9b1045123..77ff4151bb9d 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es2015.2.minified.js index ad111d27808d..953b52ae9690 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'), obj1 = { x: 2 }; diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es5.1.normal.js index 3e46e764ad6c..ed176892965f 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es5.2.minified.js index 49ed155c1e8e..6566a5e66653 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution12_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var anyobj, React = require("react"), obj1 = { x: 2 }, OverWriteAttr = function(_Component) { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es2015.1.normal.js index 2759b9721bf2..4cb030c9f06b 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es2015.2.minified.js index bd4f765af6ef..c7dd9e0fabc6 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); export default function Component(props) { return React.createElement(ChildComponent, _extends({}, props, { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es5.1.normal.js index a978b6d15e53..32b2382ba620 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es5.2.minified.js index 62ee9094f0f6..3e99fb069f12 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution13_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var React = require("react"); export default function Component(props) { return React.createElement(ChildComponent, _extends({}, props, { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es2015.1.normal.js index 861e4ba7c386..4248e3894cfd 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es2015.2.minified.js index dfd0049134bf..7c76150b74d0 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); export default function Component(props) { return React.createElement(AnotherComponent, _extends({}, props, { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es5.1.normal.js index cc4fdb3c0dfd..c12a18b59555 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es5.2.minified.js index 5f99b9637977..e82fea9dbf2c 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution14_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var React = require("react"); export default function Component(props) { return React.createElement(AnotherComponent, _extends({}, props, { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es2015.1.normal.js index 9303b661c552..ca6dc76e35ae 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es2015.2.minified.js index afe87ab9ef34..8d19a0b518b6 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); export default function Component(props) { return React.createElement(AnotherComponent, _extends({}, props, { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es5.1.normal.js index 2396696b80ca..314dd9fafe00 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es5.2.minified.js index 56adfb5dd1dd..63fe305a7975 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution15_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var React = require("react"); export default function Component(props) { return React.createElement(AnotherComponent, _extends({}, props, { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es2015.1.normal.js index 7c5e34c86f0a..359db3f1bf70 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es2015.2.minified.js index f76bc362062c..7af0eeb6296d 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); export default function Component(props) { return React.createElement(AnotherComponent, _extends({}, props)); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es5.1.normal.js index 112297acf6cf..b505bca4dfc7 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es5.2.minified.js index 8eb8d1ef052b..ba85a5d7b947 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution16_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var React = require("react"); export default function Component(props) { return React.createElement(AnotherComponent, _extends({}, props)); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es2015.1.normal.js index 00dd9f2b4e3d..bdaa3ee0ef8b 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; export class Empty extends React.Component { render() { return /*#__PURE__*/ React.createElement("div", null, "Hello"); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es2015.2.minified.js index 968922be3bc4..571ac104863f 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; export class Empty extends React.Component { render() { return React.createElement("div", null, "Hello"); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es5.1.normal.js index 96ec02607aae..5b080d5ce36d 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; export var Empty = /*#__PURE__*/ function(_Component) { "use strict"; _inherits(Empty, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es5.2.minified.js index 973d02695018..e8492d0e09ab 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution17_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; export var Empty = function(_Component) { "use strict"; _inherits(Empty, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es2015.1.normal.js index 857f41ff4c01..620d00b7df4e 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es2015.2.minified.js index 4e9622216fac..b8cbe1e72c0a 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Poisoned extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es5.1.normal.js index 024f638b66d9..a00780974142 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es5.2.minified.js index 1c4305420959..547ed0988b20 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution1_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), Poisoned = function(_Component) { "use strict"; _inherits(Poisoned, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es2015.1.normal.js index b5a0100c6392..0102068c711b 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es2015.2.minified.js index c4e4ce2d14a8..51b4e533ba2b 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Poisoned extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es5.1.normal.js index 15bfd949a765..50a2ba359eb8 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es5.2.minified.js index 53a375c8b26e..08a569837616 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution2_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), Poisoned = function(_Component) { "use strict"; _inherits(Poisoned, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es2015.1.normal.js index 65e057972e0c..29bd2b777225 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es2015.2.minified.js index 789e3386941d..04f9a4299960 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Poisoned extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es5.1.normal.js index 7b9deedde589..053cdc3a1df9 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es5.2.minified.js index 242bab593ac4..27d72b827612 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution3_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), Poisoned = function(_Component) { "use strict"; _inherits(Poisoned, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es2015.1.normal.js index 394e1016d1d1..8c8d04a30c74 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es2015.2.minified.js index b84f8c8cd242..ef635b0f73fb 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Poisoned extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es5.1.normal.js index 49e254a267b2..e06ea1903d2c 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var _this = this; // @filename: file.tsx // @jsx: preserve diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es5.2.minified.js index ed9757150f64..739698830d8d 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution4_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var j, _this = this, React = require("react"), Poisoned = function(_Component) { "use strict"; _inherits(Poisoned, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es2015.1.normal.js index c737483ea4be..464f4090bb18 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es2015.2.minified.js index 5784b28a4110..bc9441ca6e6a 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Poisoned extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es5.1.normal.js index 67969e95ca5b..406e55e6f543 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es5.2.minified.js index 66ecb091f95c..7407a1c10b3f 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution5_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), Poisoned = function(_Component) { "use strict"; _inherits(Poisoned, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution6_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution6_es5.1.normal.js index 9b9ff73f75f3..1fed2fd33ef6 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution6_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution6_es5.2.minified.js index 838e2a933684..500abeda22f1 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), TextComponent = function(_Component) { "use strict"; _inherits(TextComponent, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es2015.1.normal.js index 0711a957f85c..85666d4cd52c 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es2015.2.minified.js index a9d6c973d761..02d5383ff906 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class TextComponent extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es5.1.normal.js index b3e60b46c399..8fc33c9eeee3 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es5.2.minified.js index b00d9f4887c8..dea13b8c071e 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution7_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), TextComponent = function(_Component) { "use strict"; _inherits(TextComponent, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es2015.1.normal.js index b2ff1ea2abce..d5b1623215a4 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es2015.2.minified.js index 2361c777b73c..8f8d1ecbc583 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'), obj1 = { x: 2 }; diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es5.1.normal.js index 225acc3ed2ab..f27cde16a513 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es5.2.minified.js index 5d5c2dc63bc4..f3bac10442eb 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution8_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), obj1 = { x: 2 }, OverWriteAttr = function(_Component) { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es2015.1.normal.js index 96a3e35cfd00..ecbf9c4306e5 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es2015.2.minified.js index 33055c3de511..099b033f2828 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let React = require('react'); class Opt extends React.Component { render() { diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es5.1.normal.js index 307ab72fc1a7..cd5f0c23bf8c 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es5.2.minified.js index 139a3059e0ab..17505fcb46cb 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadAttributesResolution9_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _inherits from "@swc/helpers/src/_inherits.mjs"; +import _create_super from "@swc/helpers/src/_create_super.mjs"; var React = require("react"), Opt = function(_Component) { "use strict"; _inherits(Opt, _Component); diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es2015.1.normal.js index 8eddcc5359fb..5e211ffd361b 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; function Todo(prop) { return /*#__PURE__*/ React.createElement("div", null, prop.key.toString() + prop.todo); } diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es2015.2.minified.js index 71199647f954..bfe2ed9d4834 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, void 0); diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es5.1.normal.js index 50fa6428daa5..8451ce30da75 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; function Todo(prop) { return /*#__PURE__*/ React.createElement("div", null, prop.key.toString() + prop.todo); } diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es5.2.minified.js index 953e2dba2a64..65b51afa4ce2 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildrenInvalidType_es5.2.minified.js @@ -1,3 +1,3 @@ var x; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, x); diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildren_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadChildren_es2015.1.normal.js index 51be213b8d7e..d2ca609f625b 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildren_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildren_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; function Todo(prop) { return /*#__PURE__*/ React.createElement("div", null, prop.key.toString() + prop.todo); } diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildren_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadChildren_es2015.2.minified.js index 71199647f954..bfe2ed9d4834 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildren_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildren_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, void 0); diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildren_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxSpreadChildren_es5.1.normal.js index b42da7228d1f..ba7527a0d01b 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildren_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildren_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; function Todo(prop) { return /*#__PURE__*/ React.createElement("div", null, prop.key.toString() + prop.todo); } diff --git a/crates/swc/tests/tsc-references/tsxSpreadChildren_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxSpreadChildren_es5.2.minified.js index 953e2dba2a64..65b51afa4ce2 100644 --- a/crates/swc/tests/tsc-references/tsxSpreadChildren_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxSpreadChildren_es5.2.minified.js @@ -1,3 +1,3 @@ var x; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, x); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es2015.1.normal.js index be8037477b49..55c677180915 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es2015.2.minified.js index de54c3b9ea2f..ec40e826fb0d 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); let obj = { yy: 10, diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es5.1.normal.js index 0b79e4c2161a..17a89c42fef8 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es5.2.minified.js index 25dfed58425e..474e69891aa2 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); var defaultObj, obj = { yy: 10, diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es2015.1.normal.js index 3d46be056032..5480a949809e 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let obj2; // OK const two1 = /*#__PURE__*/ React.createElement(ZeroThingOrTwoThing, null); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es2015.2.minified.js index 13773b4a7bd0..b4939c5fe3d6 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; let obj2; _extends({}, obj2), _extends({ yy: 1000 diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es5.1.normal.js index c35510903183..e25e86a754aa 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; var obj2; // OK var two1 = /*#__PURE__*/ React.createElement(ZeroThingOrTwoThing, null); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es5.2.minified.js index 45d9716e42af..9209119effc3 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload3_es5.2.minified.js @@ -1,5 +1,5 @@ var obj2; -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; _extends({}, obj2), _extends({ yy: 1000 }, obj2), _extends({}, obj2, { diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es2015.1.normal.js index 6160ba36b268..5cd83a687e54 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es2015.2.minified.js index b26bf3deda3f..a0b7f18b6050 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); let obj = { yy: 10, diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es5.1.normal.js index 6051307ba2bf..5143e3efb6fd 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es5.2.minified.js index 889c16c2f63f..87a4a1069391 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); var obj2, obj = { yy: 10, diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es2015.1.normal.js index 589cac6d9558..d237596da29d 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es2015.2.minified.js index d39c38297449..099a00432d4a 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); let obj0 = { to: "world" diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es5.1.normal.js index 3bebb3d02341..0eed97763391 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es5.2.minified.js index c37f5ddc3f1f..b18b9920f5a2 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); var obj3, obj0 = { to: "world" diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es2015.1.normal.js index 4bd1590153e4..62d15145301d 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es2015.2.minified.js index 27d796e10ca8..8bb692e22e60 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); let obj = { children: "hi", diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es5.1.normal.js index 5bf3b6844593..1f1b017bfe7c 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es5.2.minified.js index c5a6c2727dbe..fcd6af0c75c1 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentOverload6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); var obj1, obj = { children: "hi", diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponents2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponents2_es5.1.normal.js index 52e91d199f42..4cbf4455aac8 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponents2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponents2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: preserve // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponents2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponents2_es5.2.minified.js index b1923b99cfb1..d150cc337a15 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponents2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponents2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), BigGreeter = function(_Component) { "use strict"; _inherits(BigGreeter, _Component); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es2015.1.normal.js index b5168192199d..3ad780ea42ec 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es5.1.normal.js index 0821584c3544..29fa6fbaf97d 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments1_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es2015.1.normal.js index d4ccdece2a76..0dc7f69ff9ef 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es5.1.normal.js index 9712cb8fd337..d41b78867e80 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments2_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es2015.1.normal.js index ff383adb88fc..5638e1846df1 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es5.1.normal.js index 9a025bcf9643..7274b4a20186 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments3_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es2015.1.normal.js index d1c8f4c33ce6..42e0f10c82df 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es5.1.normal.js index 2b49f721d2ad..2c2646a2f676 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments4_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es2015.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es2015.1.normal.js index 86cf9521aad1..1f6d178c0d27 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es2015.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es2015.2.minified.js index 9cc5b10e579e..c6e6e138b910 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require('react'); diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es5.1.normal.js index 6fc4f9f9b8c4..ae1b30208c5a 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; // @filename: file.tsx // @jsx: preserve // @module: amd diff --git a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es5.2.minified.js index 6dfad7107d89..8fb731be7104 100644 --- a/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxStatelessFunctionComponentsWithTypeArguments5_es5.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; require("react"); diff --git a/crates/swc/tests/tsc-references/tsxTypeErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxTypeErrors_es5.1.normal.js index 69ffd912df8f..333ff617da10 100644 --- a/crates/swc/tests/tsc-references/tsxTypeErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxTypeErrors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //@jsx: preserve // A built-in element (OK) var a1 = /*#__PURE__*/ React.createElement("div", { diff --git a/crates/swc/tests/tsc-references/tsxTypeErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxTypeErrors_es5.2.minified.js index 855a862882a1..98732b65cb47 100644 --- a/crates/swc/tests/tsc-references/tsxTypeErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxTypeErrors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var MyClass = function() { "use strict"; _class_call_check(this, MyClass); diff --git a/crates/swc/tests/tsc-references/tsxUnionElementType3_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxUnionElementType3_es5.1.normal.js index 4bc6960de354..f882cea0c6b2 100644 --- a/crates/swc/tests/tsc-references/tsxUnionElementType3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxUnionElementType3_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: react // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxUnionElementType3_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxUnionElementType3_es5.2.minified.js index 3dd7db6eea61..6d0d9f3f283e 100644 --- a/crates/swc/tests/tsc-references/tsxUnionElementType3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxUnionElementType3_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), RC1 = function(_Component) { "use strict"; _inherits(RC1, _Component); diff --git a/crates/swc/tests/tsc-references/tsxUnionElementType4_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxUnionElementType4_es5.1.normal.js index b827abf28fe2..732e2b1a3cc7 100644 --- a/crates/swc/tests/tsc-references/tsxUnionElementType4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxUnionElementType4_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: react // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxUnionElementType4_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxUnionElementType4_es5.2.minified.js index 3dd7db6eea61..6d0d9f3f283e 100644 --- a/crates/swc/tests/tsc-references/tsxUnionElementType4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxUnionElementType4_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), RC1 = function(_Component) { "use strict"; _inherits(RC1, _Component); diff --git a/crates/swc/tests/tsc-references/tsxUnionTypeComponent1_es5.1.normal.js b/crates/swc/tests/tsc-references/tsxUnionTypeComponent1_es5.1.normal.js index 7778b667cc69..955c3013b4e6 100644 --- a/crates/swc/tests/tsc-references/tsxUnionTypeComponent1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxUnionTypeComponent1_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @filename: file.tsx // @jsx: react // @noLib: true diff --git a/crates/swc/tests/tsc-references/tsxUnionTypeComponent1_es5.2.minified.js b/crates/swc/tests/tsc-references/tsxUnionTypeComponent1_es5.2.minified.js index e676c20f0dec..6d958ef05258 100644 --- a/crates/swc/tests/tsc-references/tsxUnionTypeComponent1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxUnionTypeComponent1_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var React = require("react"), MyComponent = function(_Component) { "use strict"; _inherits(MyComponent, _Component); diff --git a/crates/swc/tests/tsc-references/tupleElementTypes2_es5.1.normal.js b/crates/swc/tests/tsc-references/tupleElementTypes2_es5.1.normal.js index ab093909ee7e..688637d98fcc 100644 --- a/crates/swc/tests/tsc-references/tupleElementTypes2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tupleElementTypes2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/tupleElementTypes2_es5.2.minified.js index d4a961f015ab..7d190f4b61c0 100644 --- a/crates/swc/tests/tsc-references/tupleElementTypes2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tupleElementTypes2_es5.2.minified.js @@ -1 +1 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/tupleElementTypes4_es5.1.normal.js b/crates/swc/tests/tsc-references/tupleElementTypes4_es5.1.normal.js index b7a7740e9e01..9f627db06173 100644 --- a/crates/swc/tests/tsc-references/tupleElementTypes4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/tupleElementTypes4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; 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_es5.2.minified.js b/crates/swc/tests/tsc-references/tupleElementTypes4_es5.2.minified.js index d4a961f015ab..7d190f4b61c0 100644 --- a/crates/swc/tests/tsc-references/tupleElementTypes4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/tupleElementTypes4_es5.2.minified.js @@ -1 +1 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; diff --git a/crates/swc/tests/tsc-references/twoAccessorsWithSameName2_es5.1.normal.js b/crates/swc/tests/tsc-references/twoAccessorsWithSameName2_es5.1.normal.js index ed1859e0ecc5..7e5f1f8b6930 100644 --- a/crates/swc/tests/tsc-references/twoAccessorsWithSameName2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/twoAccessorsWithSameName2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/twoAccessorsWithSameName2_es5.2.minified.js b/crates/swc/tests/tsc-references/twoAccessorsWithSameName2_es5.2.minified.js index 4e0c5132a7d3..9ac2d613083b 100644 --- a/crates/swc/tests/tsc-references/twoAccessorsWithSameName2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/twoAccessorsWithSameName2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeAliasesForObjectTypes_es5.1.normal.js b/crates/swc/tests/tsc-references/typeAliasesForObjectTypes_es5.1.normal.js index ed5e671d9586..37b2a388fa0c 100644 --- a/crates/swc/tests/tsc-references/typeAliasesForObjectTypes_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeAliasesForObjectTypes_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C1 = function C1() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeAliasesForObjectTypes_es5.2.minified.js b/crates/swc/tests/tsc-references/typeAliasesForObjectTypes_es5.2.minified.js index 7ee484a5be4c..1c614b39c2d9 100644 --- a/crates/swc/tests/tsc-references/typeAliasesForObjectTypes_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeAliasesForObjectTypes_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeAliases_es5.1.normal.js b/crates/swc/tests/tsc-references/typeAliases_es5.1.normal.js index c50e6d66ea7d..cc5c092d108e 100644 --- a/crates/swc/tests/tsc-references/typeAliases_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeAliases_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x1; var x1; var x2; diff --git a/crates/swc/tests/tsc-references/typeAliases_es5.2.minified.js b/crates/swc/tests/tsc-references/typeAliases_es5.2.minified.js index 44bcf1507e74..bd2c1f4ed7be 100644 --- a/crates/swc/tests/tsc-references/typeAliases_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeAliases_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x13_1, x13_2, E, x, C7 = function() { "use strict"; _class_call_check(this, C7); diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1_es5.1.normal.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1_es5.1.normal.js index 767d2469d81c..320ee8134701 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _class; function foo() { var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function _class1() { diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1_es5.2.minified.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1_es5.2.minified.js index 844723daeeff..1d8caecace42 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression1_es5.2.minified.js @@ -1,5 +1,5 @@ var _class; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (function() { arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; })(((_class = function _class1() { diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2_es5.1.normal.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2_es5.1.normal.js index c33b2c03451a..de13470af8ad 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _class; function foo() { var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function _class1() { diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2_es5.2.minified.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2_es5.2.minified.js index 844723daeeff..1d8caecace42 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression2_es5.2.minified.js @@ -1,5 +1,5 @@ var _class; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (function() { arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; })(((_class = function _class1() { diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3_es5.1.normal.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3_es5.1.normal.js index 379b2ddf9cb7..8629ccf85eac 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo() { var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3_es5.2.minified.js b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3_es5.2.minified.js index 8360afe46ea5..927e9cea7143 100644 --- a/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeArgumentInferenceWithClassExpression3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (function() { arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; })(function _class() { diff --git a/crates/swc/tests/tsc-references/typeFromParamTagForFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromParamTagForFunction_es5.1.normal.js index 556822b3184d..e4b50afdf203 100644 --- a/crates/swc/tests/tsc-references/typeFromParamTagForFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromParamTagForFunction_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @filename: a-ext.js exports.A = function() { this.x = 1; diff --git a/crates/swc/tests/tsc-references/typeFromParamTagForFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromParamTagForFunction_es5.2.minified.js index 30b971d2f46a..d27b6b9232ba 100644 --- a/crates/swc/tests/tsc-references/typeFromParamTagForFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromParamTagForFunction_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; exports.A = function() { this.x = 1; }, require("./a-ext").A, exports.B = function _class() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_1_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_1_es5.1.normal.js index ad30c3f2bf43..2c1915c3d146 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_1_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_1_es5.2.minified.js index b72f9ddb1a4a..153635f72657 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _app, x, Outer = null != Outer ? Outer : {}; Outer.app = null !== (_app = Outer.app) && void 0 !== _app ? _app : {}, Outer.app.SomeView = function() {}, Outer.app.Inner = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_es5.1.normal.js index e8e7ad7fcefe..a1a8b02d6c03 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_es5.2.minified.js index 8b45840b05e9..8b2dae07406d 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment10_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x, Outer = Outer || {}; Outer.app = Outer.app || {}, Outer.app.SomeView = function() {}, Outer.app.Inner = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment15_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment15_es5.1.normal.js index e3ebd7d3ca36..3cdbd49afe49 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment15_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment15_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment15_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment15_es5.2.minified.js index b2af1ec478d7..4dda69654d9b 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment15_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment15_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var inner, Outer = {}; Outer.Inner = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment23_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment23_es5.1.normal.js index aa8e62e61801..9237e0eae493 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment23_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment23_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _this = this; // @noEmit: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment23_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment23_es5.2.minified.js index 5fec16500982..5fd008881f5b 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment23_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment23_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var _this = this, B = function() { "use strict"; function B() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment24_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment24_es5.1.normal.js index 63c3722438e4..08baab2364b7 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment24_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment24_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @checkJs: true // @allowJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment24_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment24_es5.2.minified.js index 20490dfa3c96..5c0b30731ab7 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment24_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment24_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; Outer.Inner.Message = function() {}, new Outer.Inner().name, x.name; var x, Outer = {}; Outer.Inner = function() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment25_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment25_es5.1.normal.js index 092b56a43807..bcdb98d30186 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment25_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment25_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @checkJs: true // @allowJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment25_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment25_es5.2.minified.js index 68f6bc754cd0..338119b7d331 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment25_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment25_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var Common = {}; Common.I = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment26_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment26_es5.1.normal.js index 03244c91499b..06093231549a 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment26_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment26_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @noImplicitAny: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment26_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment26_es5.2.minified.js index e3d71d5149e0..cafb0ec4e610 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment26_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment26_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var UI = {}; UI.TreeElement = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment28_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment28_es5.1.normal.js index 9180f23b3c80..c2270dcedf47 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment28_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment28_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment28_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment28_es5.2.minified.js index fc21e65a9d16..363315627bd6 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment28_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment28_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C), this.p = 1; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.1.normal.js index 2f9ccd781938..23d322f73684 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true function ExpandoDecl(n1) { return n1.toString(); diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.2.minified.js index 6cc4efcf9b40..3bc16045a16c 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment29_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function ExpandoDecl(n) { return n.toString(); } diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment2_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment2_es5.1.normal.js index fed039a458f8..38bc39adcad9 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment2_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment2_es5.2.minified.js index b08dd9a9c291..d32616569a04 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment2_es5.2.minified.js @@ -1,5 +1,5 @@ var ok, oc; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (function() { this.y = 2; }).Inner = function I() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment35_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment35_es5.1.normal.js index c718ea3c8b21..c01a23e206b1 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment35_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment35_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment35_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment35_es5.2.minified.js index 300357764cc3..b2790c599b11 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment35_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment35_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; Emu.D = function _class() { "use strict"; _class_call_check(this, _class), this._model = 1; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment3_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment3_es5.1.normal.js index b41f3e4e32e9..35a4c826ce86 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment3_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment3_es5.2.minified.js index 4ffa8c1cf1ce..5e273aa6ca6e 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment3_es5.2.minified.js @@ -1,5 +1,5 @@ var ja, da; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (function() { this.y = 2; }).Inner = function I() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment4_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment4_es5.1.normal.js index 881f5ac520c1..c4048cc35bb6 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment4_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment4_es5.2.minified.js index e9e4709746aa..ee4a5240d5f3 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var local, x, Outer = {}; Outer.Inner = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment5_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment5_es5.1.normal.js index ce244161879a..79352575d4ad 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: b.js import MC from "./a"; // @noEmit: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment5_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment5_es5.2.minified.js index 1f019134048a..e610cf8d3ffb 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; import MC from "./a"; export default function MyClass() {}; MyClass.bar = function C() { diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment6_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment6_es5.1.normal.js index b22484bbbb22..2f55efd1b2fb 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment6_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment6_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment6_es5.2.minified.js index b9c815e85dfd..93368d3cff97 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment6_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Outer = function() { "use strict"; _class_call_check(this, Outer); diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_1_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_1_es5.1.normal.js index 1ca6516861a7..f99962955529 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_1_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_1_es5.2.minified.js index 706f4ff183ff..24bb8b15ac8a 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var _predicate, _sort, _min, _nest, _other, _property, my = null != my ? my : {}; my.method = function(n) { return n + 1; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_es5.1.normal.js index 4b9223bace0f..088d54fe021b 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_es5.2.minified.js index 346a77c81aa0..56e0de90a60e 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment9_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var my = my || {}; my.method = function(n) { return n + 1; diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder_es5.1.normal.js index 69a922c33ec2..0b2e105ba193 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder_es5.2.minified.js index 13ec4d86adae..6a5f33d8b63b 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignmentOutOfOrder_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; First.Item = function I() { "use strict"; _class_call_check(this, I); diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment_es5.1.normal.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment_es5.1.normal.js index 9a5e1d5635b3..2781ba11acdc 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typeFromPropertyAssignment_es5.2.minified.js b/crates/swc/tests/tsc-references/typeFromPropertyAssignment_es5.2.minified.js index 63d75464240d..daa12a9a081b 100644 --- a/crates/swc/tests/tsc-references/typeFromPropertyAssignment_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeFromPropertyAssignment_es5.2.minified.js @@ -1,5 +1,5 @@ var si, oi; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; (function() { "use strict"; function O() { diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionGenerics_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardFunctionGenerics_es5.1.normal.js index 30a654f36c65..d55f92372e8a 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionGenerics_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionGenerics_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionGenerics_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardFunctionGenerics_es5.2.minified.js index 7dd0b57f08e5..9692c3c26c73 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionGenerics_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionGenerics_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var a, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors_es5.1.normal.js index a13544e59d5a..71b53fc863cd 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @declaration: true var RoyalGuard = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors_es5.2.minified.js index 7027d2b79621..8ab5c4198b05 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThisErrors_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var c, RoyalGuard = function() { "use strict"; function RoyalGuard() { diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis_es5.1.normal.js index 45a8d2442818..4e867617e3bd 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // @declaration: true var RoyalGuard = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis_es5.2.minified.js index 5f00d9244f58..2d52ef263b70 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardFunctionOfFormThis_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var b, crate, RoyalGuard = function() { "use strict"; function RoyalGuard() { diff --git a/crates/swc/tests/tsc-references/typeGuardFunction_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardFunction_es5.1.normal.js index 00229b8f823d..778354146843 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunction_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardFunction_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardFunction_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardFunction_es5.2.minified.js index 3bdc432d8608..835e4dff3f24 100644 --- a/crates/swc/tests/tsc-references/typeGuardFunction_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardFunction_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var a, subType, union, union2, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardInClass_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardInClass_es5.1.normal.js index ed410750a163..3355d1c85e11 100644 --- a/crates/swc/tests/tsc-references/typeGuardInClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardInClass_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x; if (typeof x === "string") { var n = function _class() { diff --git a/crates/swc/tests/tsc-references/typeGuardInClass_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardInClass_es5.2.minified.js index 8be9ecff44f2..241b7917bbb7 100644 --- a/crates/swc/tests/tsc-references/typeGuardInClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardInClass_es5.2.minified.js @@ -1,2 +1,2 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; if ("string" == typeof x) var x; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2_es5.1.normal.js index e3c406a00ab9..08eff85c23ce 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var str; var bool; var num; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2_es5.2.minified.js index 8df06a56e3a3..66d07e54dd88 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1AndExpr2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var strOrNumOrBool, numOrBool, strOrNumOrBoolOrC, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2_es5.1.normal.js index 6b3f294a202e..23b857eb889c 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var str; var bool; var num; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2_es5.2.minified.js index 9b706841521e..9b5b507c5d33 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormExpr1OrExpr2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var strOrNumOrBool, numOrBool, strOrNumOrBoolOrC, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface_es5.1.normal.js index 07cbb64f56f8..a51f3cb050dc 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var str; var num; var strOrNum; diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface_es5.2.minified.js index 146c9e0d3681..d7832b6415f9 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOfOnInterface_es5.2.minified.js @@ -1,3 +1,3 @@ var c1, c2, d1, c1Orc2, c2Ord1; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _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/typeGuardOfFormInstanceOf_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf_es5.1.normal.js index 443009584a46..7dddba38ac90 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; // A type guard of the form x instanceof C, where C is of a subtype of the global type 'Function' // and C has a property named 'prototype' // - when true, narrows the type of x to the type of the 'prototype' property in C provided diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf_es5.2.minified.js index c80e42550e53..ef1c36369b48 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormInstanceOf_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var ctor1, ctor2, ctor3, ctor4, ctor5, ctor6, C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormIsType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormIsType_es5.1.normal.js index 505874ebd265..b6fc29779ead 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormIsType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormIsType_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C1 = function C1() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormIsType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormIsType_es5.2.minified.js index fe2116f7a25d..be41009394de 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormIsType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormIsType_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var c1Orc2, c2Ord1, C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean_es5.1.normal.js index ad893e1b4dbe..e40cf21d3f3b 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfBoolean_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect_es5.1.normal.js index 966834fca949..33c61bf858ea 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect_es5.2.minified.js index d52a5b707882..b5ef8063788a 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfEqualEqualHasNoEffect_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var strOrC, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect_es5.1.normal.js index 18cc01ab9733..dc1a19ffc9a4 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect_es5.2.minified.js index d52a5b707882..b5ef8063788a 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNotEqualHasNoEffect_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var strOrC, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber_es5.1.normal.js index 627ee556f5d6..b922a1f68ffa 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfNumber_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther_es5.1.normal.js index d5d8d98fb22f..03c9a4164123 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther_es5.2.minified.js index de6229e440c2..cc68ad689232 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfOther_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var strOrNumOrBool, strOrC, numOrC, boolOrC, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString_es5.1.normal.js index b4d16b66f159..6c6ca2ce17e7 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFormTypeOfString_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType_es5.1.normal.js index 18c353125f64..f6e5b5dfbefa 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var A = function A() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType_es5.2.minified.js index d95712ffed9b..9d1c1502c93f 100644 --- a/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardOfFromPropNameInUnionType_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeGuardsInClassAccessors_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsInClassAccessors_es5.1.normal.js index 94946821d1da..554675a03194 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInClassAccessors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsInClassAccessors_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: es5 // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. diff --git a/crates/swc/tests/tsc-references/typeGuardsInClassAccessors_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsInClassAccessors_es5.2.minified.js index a641339eec95..5fc7997acc82 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInClassAccessors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsInClassAccessors_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var num, strOrNum, var1, ClassWithAccessors = function() { "use strict"; function ClassWithAccessors() { diff --git a/crates/swc/tests/tsc-references/typeGuardsInClassMethods_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsInClassMethods_es5.1.normal.js index 54b9457cdf0d..c00ec00a470a 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInClassMethods_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsInClassMethods_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // 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 diff --git a/crates/swc/tests/tsc-references/typeGuardsInClassMethods_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsInClassMethods_es5.2.minified.js index eb98e05a7d2e..3be21b24f8ce 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInClassMethods_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsInClassMethods_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var num, var1, C1 = function() { "use strict"; function C1(param) { diff --git a/crates/swc/tests/tsc-references/typeGuardsInProperties_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsInProperties_es5.1.normal.js index 89626efa984a..e2479feb8cd1 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInProperties_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsInProperties_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; //@target: es5 // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. diff --git a/crates/swc/tests/tsc-references/typeGuardsInProperties_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsInProperties_es5.2.minified.js index dd935ff9462b..1284bc9446be 100644 --- a/crates/swc/tests/tsc-references/typeGuardsInProperties_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsInProperties_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var strOrNum, c1, obj1, C1 = function() { "use strict"; function C1() { diff --git a/crates/swc/tests/tsc-references/typeGuardsNestedAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsNestedAssignments_es5.1.normal.js index 53e845dd332b..b8f22e0738ca 100644 --- a/crates/swc/tests/tsc-references/typeGuardsNestedAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsNestedAssignments_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @strictNullChecks: true var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeGuardsNestedAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsNestedAssignments_es5.2.minified.js index 1863c9f8c79c..8633813171e3 100644 --- a/crates/swc/tests/tsc-references/typeGuardsNestedAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsNestedAssignments_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; for(var match, Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/typeGuardsOnClassProperty_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsOnClassProperty_es5.1.normal.js index df05cc91ce24..0e02354978f9 100644 --- a/crates/swc/tests/tsc-references/typeGuardsOnClassProperty_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsOnClassProperty_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Note that type guards affect types of variables and parameters only and // have no effect on members of objects such as properties. // Note that the class's property must be copied to a local variable for diff --git a/crates/swc/tests/tsc-references/typeGuardsOnClassProperty_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsOnClassProperty_es5.2.minified.js index 390252785355..748ba918a3f4 100644 --- a/crates/swc/tests/tsc-references/typeGuardsOnClassProperty_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsOnClassProperty_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var D = function() { "use strict"; function D() { diff --git a/crates/swc/tests/tsc-references/typeGuardsTypeParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsTypeParameters_es5.1.normal.js index b8dc895f5561..c1f9775cb077 100644 --- a/crates/swc/tests/tsc-references/typeGuardsTypeParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsTypeParameters_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @strictNullChecks: true // Type guards involving type parameters produce intersection types var C = function C() { diff --git a/crates/swc/tests/tsc-references/typeGuardsTypeParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsTypeParameters_es5.2.minified.js index 6003f6ce3dbb..5d3461f0511f 100644 --- a/crates/swc/tests/tsc-references/typeGuardsTypeParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsTypeParameters_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeGuardsWithAny_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsWithAny_es5.1.normal.js index 868365b7251a..5bd504e26f22 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithAny_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithAny_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var x = { p: 0 }; diff --git a/crates/swc/tests/tsc-references/typeGuardsWithAny_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsWithAny_es5.2.minified.js index 4968511892c4..2d63f1cea331 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithAny_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithAny_es5.2.minified.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var x = { p: 0 }; diff --git a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature_es5.1.normal.js index bc7ac24b6cf3..c7d4ed0f7974 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature_es5.1.normal.js @@ -1,4 +1,4 @@ -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var obj1; if (_instanceof(obj1, A)) { obj1.foo; diff --git a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature_es5.2.minified.js index 7aa6eb49b52b..d4f193379339 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOfByConstructorSignature_es5.2.minified.js @@ -1,3 +1,3 @@ var obj1, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _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/typeGuardsWithInstanceOf_es5.1.normal.js b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf_es5.1.normal.js index 9973fc4024dd..5f939a54b8b7 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var result; var result2; if (!_instanceof(result, RegExp)) { diff --git a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf_es5.2.minified.js b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf_es5.2.minified.js index 1179aaa0d8ff..3b25e54fd5cc 100644 --- a/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeGuardsWithInstanceOf_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; _instanceof(result, RegExp) ? result.global : result = result2; var result, result2, C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeOfThisGeneral_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisGeneral_es5.1.normal.js index 05557ea3cdbc..7af20b6a1632 100644 --- a/crates/swc/tests/tsc-references/typeOfThisGeneral_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisGeneral_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var _this = this; // @target: esnext // @useDefineForClassFields: false diff --git a/crates/swc/tests/tsc-references/typeOfThisGeneral_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisGeneral_es5.2.minified.js index 54ff60065cb1..4e127283b3da 100644 --- a/crates/swc/tests/tsc-references/typeOfThisGeneral_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisGeneral_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var MyTestClass = function() { "use strict"; function MyTestClass() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInAccessor_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInAccessor_es5.1.normal.js index 8d66871f4b93..5c5399fcdea0 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInAccessor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInAccessor_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInAccessor_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInAccessor_es5.2.minified.js index 5bc82e12512f..2969894451b5 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInAccessor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInAccessor_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList_es5.1.normal.js index 21c909f622c8..813453562f9d 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; //type of 'this' in constructor param list is the class instance type (error) var ErrClass = function ErrClass() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList_es5.2.minified.js index f34eb73ca0ed..5fde771ba997 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInConstructorParamList_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var ErrClass = function() { "use strict"; arguments.length > 0 && void 0 !== arguments[0] && arguments[0], _class_call_check(this, ErrClass); diff --git a/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression_es5.1.normal.js index 3eb698959e9d..30974c71a8f3 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // type of 'this' in FunctionExpression is Any function fn() { var p = this; diff --git a/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression_es5.2.minified.js index 9e977f5d2fe2..12d3a958b134 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInFunctionExpression_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, C = function() { "use strict"; _class_call_check(this, C), this.x = function() {}, this.y = function() {}; diff --git a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2_es5.1.normal.js index 1899c89b6475..0a8eee358d4e 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2_es5.2.minified.js index d0a49b9c06c3..95e4b4939748 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember2_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var c, C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember_es5.1.normal.js index 37af5732b314..c7fc29946961 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember_es5.2.minified.js index 0df1e79354d9..df7d635d38d1 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInInstanceMember_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInInstanceMember_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var c, C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions_es5.1.normal.js index 9ceb0dbac894..70efd17841f8 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions_es5.2.minified.js index ac4311ad3869..00f0fa563489 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInMemberFunctions_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2_es5.1.normal.js index c30ef816781d..6fd010d93d62 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2_es5.2.minified.js index 34309eae834d..b57a8e6d53e1 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es2015.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es2015.1.normal.js index 2643a2e887b9..0522cd989dfb 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; // @target: esnext, es2022, es6, es5 // @useDefineForClassFields: false class C { diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es2015.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es2015.2.minified.js index 8770f55c5f94..948b8a87019e 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; class C { } C.a = 1, C.b = C.a + 1; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es5.1.normal.js index 4ca3dacb20db..3d571a03253b 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: esnext, es2022, es6, es5 // @useDefineForClassFields: false var C = function C() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es5.2.minified.js index 51111dc5499e..cde12748cc9b 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers3_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es2015.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es2015.1.normal.js index 6d11c49c29d6..1594e77b95f0 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; // @target: esnext, es2022, es6, es5 // @useDefineForClassFields: true class C { diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es2015.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es2015.2.minified.js index 8770f55c5f94..948b8a87019e 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; class C { } C.a = 1, C.b = C.a + 1; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es5.1.normal.js index 0742ae837f59..2c55a790e897 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: esnext, es2022, es6, es5 // @useDefineForClassFields: true var C = function C() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es5.2.minified.js index 51111dc5499e..cde12748cc9b 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers4_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5_es5.1.normal.js index acaf8399d132..d0c8e9391c77 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es6, es5 var C = function C(foo) { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5_es5.2.minified.js index 6de30d7dba90..e977ccc71508 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(foo) { "use strict"; _class_call_check(this, C), this.foo = foo; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6_es5.1.normal.js index c46c2f31f19c..103a023b3250 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6_es5.2.minified.js index 98efcd52d957..c292538bcff6 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers6_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es2015.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es2015.1.normal.js index 5d8ab4a5ea25..a467cd4bb148 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; // @target: esnext, es2022, es6, es5 class C { } diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es2015.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es2015.2.minified.js index b9df1006f486..55ce67f03bc4 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; class C { } C.a = 1, C.b = C.a + 1; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es5.1.normal.js index 5a1a48c43847..79a390cbdde1 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: esnext, es2022, es6, es5 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es5.2.minified.js index 477740e10e2f..a846e7e4a643 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers7_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8_es5.1.normal.js index 9c1175534530..74b22877fd6e 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext, es2022, es6, es5 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8_es5.2.minified.js index 9e71e2614a4e..ede7134da827 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers8_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es2015.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es2015.1.normal.js index 2191abf5dcb8..df19f079a0b5 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; // @target: esnext, es2022, es6, es5 class C { } diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es2015.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es2015.2.minified.js index 4e243811784e..043431888e0d 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; +import _get from "@swc/helpers/src/_get.mjs"; +import _get_prototype_of from "@swc/helpers/src/_get_prototype_of.mjs"; class C { } C.f = 1; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es5.1.normal.js index 4b2b42995f68..2c4ffcac8c3a 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es5.1.normal.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // @target: esnext, es2022, es6, es5 var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es5.2.minified.js index b5f9c25dbc5c..56835ade78ec 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers9_es5.2.minified.js @@ -1,8 +1,8 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _get from "@swc/helpers/lib/_get.js"; -import _get_prototype_of from "@swc/helpers/lib/_get_prototype_of.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers_es5.1.normal.js index 8fecb4dc14ce..46dcfaa1357b 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers_es5.2.minified.js index 3ab5f554f50b..241d544f497c 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInStaticMembers_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInStaticMembers_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent_es5.1.normal.js b/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent_es5.1.normal.js index 5c5ac9ac6ff2..b0497e205b96 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var SomeClass = /*#__PURE__*/ function() { "use strict"; function SomeClass() { diff --git a/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent_es5.2.minified.js b/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent_es5.2.minified.js index 32179abe297d..040ebd0d067f 100644 --- a/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeOfThisInstanceMemberNarrowedWithLoopAntecedent_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var SomeClass = function() { "use strict"; function SomeClass() { diff --git a/crates/swc/tests/tsc-references/typeParameterAsBaseType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParameterAsBaseType_es5.1.normal.js index 6e65a93a0f3b..946117f70fec 100644 --- a/crates/swc/tests/tsc-references/typeParameterAsBaseType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterAsBaseType_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // type parameters cannot be used as base types // these are all errors var C = /*#__PURE__*/ function(T) { diff --git a/crates/swc/tests/tsc-references/typeParameterAsBaseType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParameterAsBaseType_es5.2.minified.js index 2aef37743d98..d3ff2de5f690 100644 --- a/crates/swc/tests/tsc-references/typeParameterAsBaseType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterAsBaseType_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function(T) { "use strict"; _inherits(C, T); diff --git a/crates/swc/tests/tsc-references/typeParameterAsTypeArgument_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParameterAsTypeArgument_es5.1.normal.js index 0aac050e8dac..59a33efc0ac7 100644 --- a/crates/swc/tests/tsc-references/typeParameterAsTypeArgument_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterAsTypeArgument_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // These are all errors because type parameters cannot reference other type parameters from the same list function foo(x, y) { foo(y, y); diff --git a/crates/swc/tests/tsc-references/typeParameterAsTypeArgument_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParameterAsTypeArgument_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/typeParameterAsTypeArgument_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterAsTypeArgument_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterAssignability3_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParameterAssignability3_es5.1.normal.js index fbd6555a5dce..381485f1f4b4 100644 --- a/crates/swc/tests/tsc-references/typeParameterAssignability3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterAssignability3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // type parameters are not assignable to one another unless directly or indirectly constrained to one another var Foo = function Foo() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeParameterAssignability3_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParameterAssignability3_es5.2.minified.js index 018c078a7c2d..2c98d6f2a727 100644 --- a/crates/swc/tests/tsc-references/typeParameterAssignability3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterAssignability3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself_es5.1.normal.js index 196d493d7238..8d75af50a392 100644 --- a/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // all of the below should be errors var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself_es5.2.minified.js index 1519bdba7147..de6b34f7edfe 100644 --- a/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterDirectlyConstrainedToItself_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself_es5.1.normal.js index 77f65bc4cfde..c179764af8db 100644 --- a/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself_es5.2.minified.js index a75643958de7..339bf92a9a2a 100644 --- a/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterIndirectlyConstrainedToItself_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint_es5.1.normal.js index b4e3ef39c00d..f33c7ec3f685 100644 --- a/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint_es5.2.minified.js index d83d9bdfd445..88d9c3dd4082 100644 --- a/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterUsedAsConstraint_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4_es5.1.normal.js index 59debb9fe348..3de7afa3a884 100644 --- a/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Type parameters are in scope in their own and other type parameter lists // Some negative cases var C = /*#__PURE__*/ function() { diff --git a/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4_es5.2.minified.js index a621dcafc76b..2a679f12fe4d 100644 --- a/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParameterUsedAsTypeParameterConstraint4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves_es5.1.normal.js index cb5a75ab660c..3a85599da2e8 100644 --- a/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; function foo1(x) {} function foo2(x) {} function foo3(x, y) { diff --git a/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves_es5.2.minified.js index f7fad7adb90e..f0ae7587e22b 100644 --- a/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParametersAreIdenticalToThemselves_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope_es5.1.normal.js b/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope_es5.1.normal.js index bffbc09f41f4..a53ab06fdf22 100644 --- a/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope_es5.2.minified.js b/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope_es5.2.minified.js index f9af02742457..120565d211b1 100644 --- a/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeParametersAvailableInNestedScope_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeQueryOnClass_es5.1.normal.js b/crates/swc/tests/tsc-references/typeQueryOnClass_es5.1.normal.js index 95cf1323ae44..d13a0aea74bb 100644 --- a/crates/swc/tests/tsc-references/typeQueryOnClass_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeQueryOnClass_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeQueryOnClass_es5.2.minified.js b/crates/swc/tests/tsc-references/typeQueryOnClass_es5.2.minified.js index 4ba39480d55a..78430531b40b 100644 --- a/crates/swc/tests/tsc-references/typeQueryOnClass_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeQueryOnClass_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; var C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeQueryWithReservedWords_es5.1.normal.js b/crates/swc/tests/tsc-references/typeQueryWithReservedWords_es5.1.normal.js index c867f6072042..1ccdff2fd598 100644 --- a/crates/swc/tests/tsc-references/typeQueryWithReservedWords_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeQueryWithReservedWords_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Controller = /*#__PURE__*/ function() { "use strict"; function Controller() { diff --git a/crates/swc/tests/tsc-references/typeQueryWithReservedWords_es5.2.minified.js b/crates/swc/tests/tsc-references/typeQueryWithReservedWords_es5.2.minified.js index 63c36166607a..b18c427580d2 100644 --- a/crates/swc/tests/tsc-references/typeQueryWithReservedWords_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeQueryWithReservedWords_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Controller = function() { "use strict"; function Controller() { diff --git a/crates/swc/tests/tsc-references/typeQuery_es5.1.normal.js b/crates/swc/tests/tsc-references/typeQuery_es5.1.normal.js index 42bb3878719e..751a72f78dca 100644 --- a/crates/swc/tests/tsc-references/typeQuery_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeQuery_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @Filename: /a.ts export var A = function A() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeQuery_es5.2.minified.js b/crates/swc/tests/tsc-references/typeQuery_es5.2.minified.js index 8db68882c74c..ce531605e2c1 100644 --- a/crates/swc/tests/tsc-references/typeQuery_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeQuery_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var AConstructor, A = function() { "use strict"; _class_call_check(this, A); diff --git a/crates/swc/tests/tsc-references/typeRelationships_es5.1.normal.js b/crates/swc/tests/tsc-references/typeRelationships_es5.1.normal.js index 9461891ba99b..a61696e3ab66 100644 --- a/crates/swc/tests/tsc-references/typeRelationships_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeRelationships_es5.1.normal.js @@ -1,7 +1,7 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var C = /*#__PURE__*/ function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typeRelationships_es5.2.minified.js b/crates/swc/tests/tsc-references/typeRelationships_es5.2.minified.js index 4fa6a5e9c9fc..7c8e3245bf89 100644 --- a/crates/swc/tests/tsc-references/typeRelationships_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeRelationships_es5.2.minified.js @@ -1,7 +1,7 @@ -import _assert_this_initialized from "@swc/helpers/lib/_assert_this_initialized.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.js"; +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"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/typedefCrossModule2_es5.1.normal.js b/crates/swc/tests/tsc-references/typedefCrossModule2_es5.1.normal.js index ee91a020676b..0b307fff065c 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typedefCrossModule2_es5.2.minified.js b/crates/swc/tests/tsc-references/typedefCrossModule2_es5.2.minified.js index 40c7c402d1e7..0c667db5e0e3 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/typedefCrossModule3_es5.1.normal.js b/crates/swc/tests/tsc-references/typedefCrossModule3_es5.1.normal.js index ae69facba301..2f30ae675da2 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typedefCrossModule3_es5.2.minified.js b/crates/swc/tests/tsc-references/typedefCrossModule3_es5.2.minified.js index 01c6a37b7e96..91ca63410ae9 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var ns = {}; ns.Foo = function _class() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typedefCrossModule4_es5.1.normal.js b/crates/swc/tests/tsc-references/typedefCrossModule4_es5.1.normal.js index e9067a324a41..f4d38c0e0a47 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typedefCrossModule4_es5.2.minified.js b/crates/swc/tests/tsc-references/typedefCrossModule4_es5.2.minified.js index de6cf0dd36de..f75ec8efbb19 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Bar = function() { "use strict"; _class_call_check(this, Bar); diff --git a/crates/swc/tests/tsc-references/typedefCrossModule5_es5.1.normal.js b/crates/swc/tests/tsc-references/typedefCrossModule5_es5.1.normal.js index 10550059d5b7..37f7c9dac021 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule5_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule5_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @pretty: true // @noEmit: true // @allowJs: true diff --git a/crates/swc/tests/tsc-references/typedefCrossModule5_es5.2.minified.js b/crates/swc/tests/tsc-references/typedefCrossModule5_es5.2.minified.js index 96ab3eef019b..e55855dcc566 100644 --- a/crates/swc/tests/tsc-references/typedefCrossModule5_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefCrossModule5_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Foo = function() { "use strict"; _class_call_check(this, Foo); diff --git a/crates/swc/tests/tsc-references/typedefInnerNamepaths_es5.1.normal.js b/crates/swc/tests/tsc-references/typedefInnerNamepaths_es5.1.normal.js index 46a8af1da67b..a42d40ac475d 100644 --- a/crates/swc/tests/tsc-references/typedefInnerNamepaths_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typedefInnerNamepaths_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @noEmit: true // @allowJs: true // @checkJs: true diff --git a/crates/swc/tests/tsc-references/typedefInnerNamepaths_es5.2.minified.js b/crates/swc/tests/tsc-references/typedefInnerNamepaths_es5.2.minified.js index f42334c2cc89..2b3892f6267f 100644 --- a/crates/swc/tests/tsc-references/typedefInnerNamepaths_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typedefInnerNamepaths_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(o) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeofANonExportedType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofANonExportedType_es5.1.normal.js index dfa203df2a62..60ca29c2d52a 100644 --- a/crates/swc/tests/tsc-references/typeofANonExportedType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofANonExportedType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x = 1; export var r1; var y = { diff --git a/crates/swc/tests/tsc-references/typeofANonExportedType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofANonExportedType_es5.2.minified.js index f5fe1d27da39..74da1eea02e4 100644 --- a/crates/swc/tests/tsc-references/typeofANonExportedType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofANonExportedType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var r1; export var r2; var M, E, C = function() { diff --git a/crates/swc/tests/tsc-references/typeofAnExportedType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofAnExportedType_es5.1.normal.js index 05834c7f2868..28f5c5075c36 100644 --- a/crates/swc/tests/tsc-references/typeofAnExportedType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofAnExportedType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var x = 1; export var r1; export var y = { diff --git a/crates/swc/tests/tsc-references/typeofAnExportedType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofAnExportedType_es5.2.minified.js index 8fdebeb64481..8a75e656f6aa 100644 --- a/crates/swc/tests/tsc-references/typeofAnExportedType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofAnExportedType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var c2, i2, x = 1; export var r1; export var y = { diff --git a/crates/swc/tests/tsc-references/typeofClass2_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofClass2_es5.1.normal.js index 9b5a96dd8120..283a98ec926f 100644 --- a/crates/swc/tests/tsc-references/typeofClass2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofClass2_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeofClass2_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofClass2_es5.2.minified.js index 14e0d2474853..783bbd854971 100644 --- a/crates/swc/tests/tsc-references/typeofClass2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofClass2_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/typeofClassWithPrivates_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofClassWithPrivates_es5.1.normal.js index ee17bf33cd19..023893423b3c 100644 --- a/crates/swc/tests/tsc-references/typeofClassWithPrivates_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofClassWithPrivates_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeofClassWithPrivates_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofClassWithPrivates_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/typeofClassWithPrivates_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofClassWithPrivates_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typeofModuleWithoutExports_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofModuleWithoutExports_es5.1.normal.js index 086d12e49bd1..6b42bf71502a 100644 --- a/crates/swc/tests/tsc-references/typeofModuleWithoutExports_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofModuleWithoutExports_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M; (function(M) { var x = 1; diff --git a/crates/swc/tests/tsc-references/typeofModuleWithoutExports_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofModuleWithoutExports_es5.2.minified.js index 7a2182bda9fe..dd877876de2f 100644 --- a/crates/swc/tests/tsc-references/typeofModuleWithoutExports_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofModuleWithoutExports_es5.2.minified.js @@ -1,5 +1,5 @@ var M; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(M) { var C = function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType_es5.1.normal.js index 93baf736915d..7326b5e12f7b 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // typeof operator on any type var ANY; var ANY1; diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType_es5.2.minified.js index b25d2781def3..b78a5aaac5dc 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithAnyOtherType_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var ANY, ANY1, obj, M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType_es5.1.normal.js index 4095d8e0eabb..d7a38cd0dbe4 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @allowUnusedLabels: true // typeof operator on boolean type var BOOLEAN; diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType_es5.2.minified.js index 2787a8bda2c6..f35c0ec94674 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithBooleanType_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; function foo() { return !0; } diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithEnumType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithEnumType_es5.1.normal.js index 90d12d199daa..e0f4783bbcc0 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithEnumType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithEnumType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var // @allowUnusedLabels: true // typeof operator on enum type ENUM; diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithEnumType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithEnumType_es5.2.minified.js index adc243faf601..3a663da7ae3e 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithEnumType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithEnumType_es5.2.minified.js @@ -1,5 +1,5 @@ var ENUM, ENUM1, z; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; 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_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithNumberType_es5.1.normal.js index 310e5ec68a69..e050b3787187 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithNumberType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithNumberType_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // @allowUnusedLabels: true // typeof operator on number type var NUMBER; diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithNumberType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithNumberType_es5.2.minified.js index 694526329923..d734497b7647 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithNumberType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithNumberType_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var NUMBER, M, NUMBER1 = [ 1, 2 diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithStringType_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorWithStringType_es5.1.normal.js index 22efad62ded6..b9f9ee9f4d3d 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithStringType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithStringType_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; // typeof operator on string type var STRING; var STRING1 = [ diff --git a/crates/swc/tests/tsc-references/typeofOperatorWithStringType_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorWithStringType_es5.2.minified.js index 2d290164fb52..09b90bc5fce4 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorWithStringType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorWithStringType_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _type_of from "@swc/helpers/lib/_type_of.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _type_of from "@swc/helpers/src/_type_of.mjs"; var STRING, M, STRING1 = [ "", "abc" diff --git a/crates/swc/tests/tsc-references/typeofThis_es5.1.normal.js b/crates/swc/tests/tsc-references/typeofThis_es5.1.normal.js index 653c360846bb..111d0c78952f 100644 --- a/crates/swc/tests/tsc-references/typeofThis_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofThis_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; // @noImplicitThis: true // @strict: true var Test = function Test() { diff --git a/crates/swc/tests/tsc-references/typeofThis_es5.2.minified.js b/crates/swc/tests/tsc-references/typeofThis_es5.2.minified.js index f1f7b2fa4555..2f92097dcaec 100644 --- a/crates/swc/tests/tsc-references/typeofThis_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofThis_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _instanceof from "@swc/helpers/src/_instanceof.mjs"; var Test6, Test7, Test = function() { "use strict"; _class_call_check(this, Test), this.data = {}; diff --git a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es2015.1.normal.js b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es2015.1.normal.js index ba9878231e2b..987fea54e406 100644 --- a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function inferReturnType1() { return _inferReturnType1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es2015.2.minified.js b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es2015.2.minified.js index c5ff4a090ac9..0e3859abf65a 100644 --- a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; _wrap_async_generator(function*() { yield 1; }), _wrap_async_generator(function*() { diff --git a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es5.1.normal.js b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es5.1.normal.js index 533d2205d1a5..5dacb836460f 100644 --- a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function inferReturnType1() { return _inferReturnType1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es5.2.minified.js b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es5.2.minified.js index 0c9046695a2c..b7fe94269197 100644 --- a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.1_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; _wrap_async_generator(regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es2015.1.normal.js b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es2015.1.normal.js index 5a6557891c16..998e69958f49 100644 --- a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function inferReturnType1() { return _inferReturnType1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es2015.2.minified.js b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es2015.2.minified.js index aea5f83694de..86e076753f37 100644 --- a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es2015.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function _inferReturnType2() { return (_inferReturnType2 = _wrap_async_generator(function*() { yield* _async_generator_delegate(_async_iterator(function() { diff --git a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es5.1.normal.js b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es5.1.normal.js index d9ca022b4409..f77cab358e49 100644 --- a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function inferReturnType1() { return _inferReturnType1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es5.2.minified.js b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es5.2.minified.js index 6f855fb0f664..9c6862322aa6 100644 --- a/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/types.asyncGenerators.es2018.2_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_generator_delegate from "@swc/helpers/lib/_async_generator_delegate.js"; -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function inferReturnType2() { return _inferReturnType2.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es2015.1.normal.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es2015.1.normal.js index 3cf2a8c2081f..35d4a522e658 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function f1() { return _f1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es2015.2.minified.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es2015.2.minified.js index b0df1077558d..4dcb1b16d4e0 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es5.1.normal.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es5.1.normal.js index 890a447feb55..45ca2ffa7167 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f1() { return _f1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es5.2.minified.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es5.2.minified.js index ef5e1713d5c9..01badd98087f 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es2015.1.normal.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es2015.1.normal.js index 9202ef14dada..cec4612872ba 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function f() { return _f.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es2015.2.minified.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es2015.2.minified.js index aef2ca78f6c0..d43a24b89e63 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es5.1.normal.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es5.1.normal.js index 8c91954b63b2..943aec80241d 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es5.1.normal.js @@ -1,5 +1,5 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function f() { return _f.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es5.2.minified.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es5.2.minified.js index 2657c1f18c31..500bf52381a6 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.2_es5.2.minified.js @@ -1,3 +1,3 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_iterator from "@swc/helpers/src/_async_iterator.mjs"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es2015.1.normal.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es2015.1.normal.js index 6516f9faa190..a16ecb66b5e2 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es2015.1.normal.js @@ -1,7 +1,7 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; function f1() { return _f1.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es2015.2.minified.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es2015.2.minified.js index b0df1077558d..4dcb1b16d4e0 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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"; diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es5.1.normal.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es5.1.normal.js index 9ab101e3b748..a29c6d712acc 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; function f1() { return _f1.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es5.2.minified.js b/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es5.2.minified.js index ef5e1713d5c9..01badd98087f 100644 --- a/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/types.forAwait.es2018.3_es5.2.minified.js @@ -1,5 +1,5 @@ -import _async_iterator from "@swc/helpers/lib/_async_iterator.js"; -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _await_async_generator from "@swc/helpers/lib/_await_async_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 regeneratorRuntime from "regenerator-runtime"; diff --git a/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters_es5.1.normal.js b/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters_es5.1.normal.js index 9a2ed94a7284..6eb22ee386c5 100644 --- a/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters_es5.2.minified.js b/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters_es5.2.minified.js index 1519bdba7147..de6b34f7edfe 100644 --- a/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithDuplicateTypeParameters_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithPrivateConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/typesWithPrivateConstructor_es5.1.normal.js index 1756f952fce8..5cc75aaf5a61 100644 --- a/crates/swc/tests/tsc-references/typesWithPrivateConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithPrivateConstructor_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typesWithPrivateConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/typesWithPrivateConstructor_es5.2.minified.js index 8ac5caa945db..edb43b7967b5 100644 --- a/crates/swc/tests/tsc-references/typesWithPrivateConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithPrivateConstructor_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithProtectedConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/typesWithProtectedConstructor_es5.1.normal.js index 7c47a3826f07..0e531e4a1946 100644 --- a/crates/swc/tests/tsc-references/typesWithProtectedConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithProtectedConstructor_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @declaration: true var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typesWithProtectedConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/typesWithProtectedConstructor_es5.2.minified.js index 8ac5caa945db..edb43b7967b5 100644 --- a/crates/swc/tests/tsc-references/typesWithProtectedConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithProtectedConstructor_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithPublicConstructor_es5.1.normal.js b/crates/swc/tests/tsc-references/typesWithPublicConstructor_es5.1.normal.js index 098da0c50fdc..17cf75fa5684 100644 --- a/crates/swc/tests/tsc-references/typesWithPublicConstructor_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithPublicConstructor_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // public is allowed on a constructor but is not meaningful var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typesWithPublicConstructor_es5.2.minified.js b/crates/swc/tests/tsc-references/typesWithPublicConstructor_es5.2.minified.js index 8ac5caa945db..edb43b7967b5 100644 --- a/crates/swc/tests/tsc-references/typesWithPublicConstructor_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithPublicConstructor_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures_es5.1.normal.js b/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures_es5.1.normal.js index ae66d03ce6c2..1c1254e337b4 100644 --- a/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // basic uses of specialized signatures without errors var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures_es5.2.minified.js b/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures_es5.2.minified.js index 5bfbc38637a4..d27438a86b15 100644 --- a/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithSpecializedCallSignatures_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var i, a, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures_es5.1.normal.js b/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures_es5.1.normal.js index c495eddf2dd8..c2a8b0e15ad5 100644 --- a/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // basic uses of specialized signatures without errors var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures_es5.2.minified.js b/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures_es5.2.minified.js index 7e6067978064..926bc3dc93e2 100644 --- a/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/typesWithSpecializedConstructSignatures_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var i, a, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/unannotatedParametersAreOptional_es5.1.normal.js b/crates/swc/tests/tsc-references/unannotatedParametersAreOptional_es5.1.normal.js index 873bc1f82172..5969a8e8997a 100644 --- a/crates/swc/tests/tsc-references/unannotatedParametersAreOptional_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unannotatedParametersAreOptional_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @noEmit: true diff --git a/crates/swc/tests/tsc-references/unannotatedParametersAreOptional_es5.2.minified.js b/crates/swc/tests/tsc-references/unannotatedParametersAreOptional_es5.2.minified.js index f66da0a77a2c..0c1179781a86 100644 --- a/crates/swc/tests/tsc-references/unannotatedParametersAreOptional_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unannotatedParametersAreOptional_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/undefinedAssignableToEveryType_es5.1.normal.js b/crates/swc/tests/tsc-references/undefinedAssignableToEveryType_es5.1.normal.js index f98531c5c20e..6df76d109717 100644 --- a/crates/swc/tests/tsc-references/undefinedAssignableToEveryType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/undefinedAssignableToEveryType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/undefinedAssignableToEveryType_es5.2.minified.js b/crates/swc/tests/tsc-references/undefinedAssignableToEveryType_es5.2.minified.js index a0d5a90d7c15..7fcb8e9fbfe5 100644 --- a/crates/swc/tests/tsc-references/undefinedAssignableToEveryType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/undefinedAssignableToEveryType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var E, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything_es5.1.normal.js b/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything_es5.1.normal.js index 8cbe7a539f21..9e95c75c26e9 100644 --- a/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // undefined is a subtype of every other types, no errors expected below var Base = function Base() { "use strict"; diff --git a/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything_es5.2.minified.js b/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything_es5.2.minified.js index 96e72e06fbf3..e39da669074d 100644 --- a/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/undefinedIsSubtypeOfEverything_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var E, Base = function() { "use strict"; _class_call_check(this, Base); diff --git a/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es2015.1.normal.js b/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es2015.1.normal.js index e3c95e283468..51c92fabe1d3 100644 --- a/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; concatMaybe([ 1, 2, diff --git a/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es2015.2.minified.js b/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es2015.2.minified.js index 252bfbe92e47..ac214dc0c4bc 100644 --- a/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; concatMaybe([ 1, 2, diff --git a/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es5.1.normal.js b/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es5.1.normal.js index bec136a6dd0b..6c5b5be5867f 100644 --- a/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; concatMaybe([ 1, diff --git a/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es5.2.minified.js b/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es5.2.minified.js index 1c2913cccb04..f8d735bcd4ce 100644 --- a/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unionAndIntersectionInference3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; concatMaybe([ 1, diff --git a/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype_es5.1.normal.js b/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype_es5.1.normal.js index b09df6195c53..6339dbdd4392 100644 --- a/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var e; (function(e) { e[e["e1"] = 0] = "e1"; diff --git a/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype_es5.2.minified.js b/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype_es5.2.minified.js index e9fb8e242f61..29d93b7613ce 100644 --- a/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unionSubtypeIfEveryConstituentTypeIsSubtype_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(e) { e[e.e1 = 0] = "e1", e[e.e2 = 1] = "e2"; }(e || (e = {})); diff --git a/crates/swc/tests/tsc-references/unionTypeEquivalence_es5.1.normal.js b/crates/swc/tests/tsc-references/unionTypeEquivalence_es5.1.normal.js index df1979d754eb..709642a04d8a 100644 --- a/crates/swc/tests/tsc-references/unionTypeEquivalence_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypeEquivalence_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // A | B is equivalent to A if B is a subtype of A var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/unionTypeEquivalence_es5.2.minified.js b/crates/swc/tests/tsc-references/unionTypeEquivalence_es5.2.minified.js index d1364fd36cf2..40e4d6f9e901 100644 --- a/crates/swc/tests/tsc-references/unionTypeEquivalence_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypeEquivalence_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral_es5.1.normal.js b/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral_es5.1.normal.js index 62bccc1499e6..45c38ce16227 100644 --- a/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; // The resulting type an array literal expression is determined as follows: // 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. diff --git a/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral_es5.2.minified.js b/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral_es5.2.minified.js index 1e6bec9d3e5e..3f7bd3563a09 100644 --- a/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypeFromArrayLiteral_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var C = function() { "use strict"; function C() { diff --git a/crates/swc/tests/tsc-references/unionTypeInference_es2015.1.normal.js b/crates/swc/tests/tsc-references/unionTypeInference_es2015.1.normal.js index bfa74e72fee6..3d7a62d6c22e 100644 --- a/crates/swc/tests/tsc-references/unionTypeInference_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypeInference_es2015.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; const a1 = f1(1, 2); // 1 | 2 const a2 = f1(1, "hello"); // 1 const a3 = f1(1, sn); // number diff --git a/crates/swc/tests/tsc-references/unionTypeInference_es2015.2.minified.js b/crates/swc/tests/tsc-references/unionTypeInference_es2015.2.minified.js index ca69f0732a16..986f1dec448d 100644 --- a/crates/swc/tests/tsc-references/unionTypeInference_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypeInference_es2015.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; function fun(deepPromised) { return _fun.apply(this, arguments); } diff --git a/crates/swc/tests/tsc-references/unionTypeInference_es5.1.normal.js b/crates/swc/tests/tsc-references/unionTypeInference_es5.1.normal.js index 71e0f10649fe..b7be1ce59cf7 100644 --- a/crates/swc/tests/tsc-references/unionTypeInference_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypeInference_es5.1.normal.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var a1 = f1(1, 2); // 1 | 2 var a2 = f1(1, "hello"); // 1 diff --git a/crates/swc/tests/tsc-references/unionTypeInference_es5.2.minified.js b/crates/swc/tests/tsc-references/unionTypeInference_es5.2.minified.js index 88bb2a5d7ccd..e5767df31c69 100644 --- a/crates/swc/tests/tsc-references/unionTypeInference_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypeInference_es5.2.minified.js @@ -1,4 +1,4 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; function fun(deepPromised) { return _fun.apply(this, arguments); diff --git a/crates/swc/tests/tsc-references/unionTypePropertyAccessibility_es5.1.normal.js b/crates/swc/tests/tsc-references/unionTypePropertyAccessibility_es5.1.normal.js index 14b11c11747d..c04b40ace268 100644 --- a/crates/swc/tests/tsc-references/unionTypePropertyAccessibility_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypePropertyAccessibility_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Default = function Default() { "use strict"; _class_call_check(this, Default); diff --git a/crates/swc/tests/tsc-references/unionTypePropertyAccessibility_es5.2.minified.js b/crates/swc/tests/tsc-references/unionTypePropertyAccessibility_es5.2.minified.js index 2e6978c5507a..90aa9b565f5f 100644 --- a/crates/swc/tests/tsc-references/unionTypePropertyAccessibility_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypePropertyAccessibility_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, Default = function() { "use strict"; _class_call_check(this, Default); diff --git a/crates/swc/tests/tsc-references/unionTypesAssignability_es5.1.normal.js b/crates/swc/tests/tsc-references/unionTypesAssignability_es5.1.normal.js index 166a57589fc1..d661f33a562c 100644 --- a/crates/swc/tests/tsc-references/unionTypesAssignability_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unionTypesAssignability_es5.1.normal.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var unionNumberString; var C = function C() { "use strict"; diff --git a/crates/swc/tests/tsc-references/unionTypesAssignability_es5.2.minified.js b/crates/swc/tests/tsc-references/unionTypesAssignability_es5.2.minified.js index c87082fd7d9d..abded667fdf4 100644 --- a/crates/swc/tests/tsc-references/unionTypesAssignability_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unionTypesAssignability_es5.2.minified.js @@ -1,6 +1,6 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _inherits from "@swc/helpers/lib/_inherits.js"; -import _create_super from "@swc/helpers/lib/_create_super.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"; var unionNumberString, unionDE, num, str, c, d, e, anyVar, C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/unionsOfTupleTypes1_es5.1.normal.js b/crates/swc/tests/tsc-references/unionsOfTupleTypes1_es5.1.normal.js index 9a72b11fc895..794ae4d8379a 100644 --- a/crates/swc/tests/tsc-references/unionsOfTupleTypes1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unionsOfTupleTypes1_es5.1.normal.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; function f1(t1, t2, t3, t4, x1) { 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_es5.2.minified.js b/crates/swc/tests/tsc-references/unionsOfTupleTypes1_es5.2.minified.js index 2fb06aae22f0..3633c951154c 100644 --- a/crates/swc/tests/tsc-references/unionsOfTupleTypes1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unionsOfTupleTypes1_es5.2.minified.js @@ -1,4 +1,4 @@ -import _sliced_to_array from "@swc/helpers/lib/_sliced_to_array.js"; +import _sliced_to_array from "@swc/helpers/src/_sliced_to_array.mjs"; var _ex = _sliced_to_array([ "hi" ], 2); diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsErrors_es5.1.normal.js index 47fd955c8c6d..e606a760e5e9 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsErrors_es5.1.normal.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; // not allowed when emitting declarations export var obj = { method1: function method1(p) { diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsErrors_es5.2.minified.js index b414e3d6cf4b..e5f7de6eb6b4 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsErrors_es5.2.minified.js @@ -1,5 +1,5 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _create_class from "@swc/helpers/lib/_create_class.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; +import _create_class from "@swc/helpers/src/_create_class.mjs"; export var obj = { method1: function(p) { return p; diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJsErrors_es5.1.normal.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJsErrors_es5.1.normal.js index 84981302978b..7abee51d65fb 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJsErrors_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJsErrors_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext // @lib: esnext // @declaration: true diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJsErrors_es5.2.minified.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJsErrors_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJsErrors_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJsErrors_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJs_es5.1.normal.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJs_es5.1.normal.js index 2e2b9b07c0cf..f619c5b62df8 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJs_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJs_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @target: esnext // @lib: esnext // @declaration: true diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJs_es5.2.minified.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJs_es5.2.minified.js index e687f2dbcaee..5b42dedf4996 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJs_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarationsInJs_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C), this.readonlyCall = Symbol(), this.readwriteCall = Symbol(); diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es2015.1.normal.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es2015.1.normal.js index 987f64cd30dd..cbecbb1a2cf6 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; // @target: esnext // @lib: esnext // @declaration: true diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es2015.2.minified.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es2015.2.minified.js index bf0dbab3471d..2259f2330ff8 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; let constCall = Symbol(); Symbol(), Symbol(), Symbol(); class C { diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es5.1.normal.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es5.1.normal.js index cf6fe33dcb96..fda1a8458988 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(genFuncYieldConstCallWithTypeQuery); var _marked1 = regeneratorRuntime.mark(genFuncYieldVarCall); diff --git a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es5.2.minified.js b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es5.2.minified.js index 8d0b334f973e..331d6b575625 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/uniqueSymbolsDeclarations_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _obj, _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/uniqueSymbols_es2015.1.normal.js b/crates/swc/tests/tsc-references/uniqueSymbols_es2015.1.normal.js index 62e3deb03d93..7bb8253008f0 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbols_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/uniqueSymbols_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; // @target: esnext // @lib: esnext // @declaration: false diff --git a/crates/swc/tests/tsc-references/uniqueSymbols_es2015.2.minified.js b/crates/swc/tests/tsc-references/uniqueSymbols_es2015.2.minified.js index bf0dbab3471d..2259f2330ff8 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbols_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/uniqueSymbols_es2015.2.minified.js @@ -1,5 +1,5 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; +import _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; let constCall = Symbol(); Symbol(), Symbol(), Symbol(); class C { diff --git a/crates/swc/tests/tsc-references/uniqueSymbols_es5.1.normal.js b/crates/swc/tests/tsc-references/uniqueSymbols_es5.1.normal.js index 66b8a541418c..43165d29e494 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbols_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/uniqueSymbols_es5.1.normal.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _marked = regeneratorRuntime.mark(genFuncYieldConstCallWithTypeQuery); var _marked1 = regeneratorRuntime.mark(genFuncYieldVarCall); diff --git a/crates/swc/tests/tsc-references/uniqueSymbols_es5.2.minified.js b/crates/swc/tests/tsc-references/uniqueSymbols_es5.2.minified.js index 8d0b334f973e..331d6b575625 100644 --- a/crates/swc/tests/tsc-references/uniqueSymbols_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/uniqueSymbols_es5.2.minified.js @@ -1,7 +1,7 @@ -import _async_to_generator from "@swc/helpers/lib/_async_to_generator.js"; -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _define_property from "@swc/helpers/lib/_define_property.js"; -import _wrap_async_generator from "@swc/helpers/lib/_wrap_async_generator.js"; +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 _wrap_async_generator from "@swc/helpers/src/_wrap_async_generator.mjs"; import regeneratorRuntime from "regenerator-runtime"; var _obj, _marked = regeneratorRuntime.mark(function() { return regeneratorRuntime.wrap(function(_ctx) { diff --git a/crates/swc/tests/tsc-references/unknownType1_es2015.1.normal.js b/crates/swc/tests/tsc-references/unknownType1_es2015.1.normal.js index 5d33d00677db..5fb021a9ec86 100644 --- a/crates/swc/tests/tsc-references/unknownType1_es2015.1.normal.js +++ b/crates/swc/tests/tsc-references/unknownType1_es2015.1.normal.js @@ -1,5 +1,5 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; // Only equality operators are allowed with unknown function f10(x) { x == 5; diff --git a/crates/swc/tests/tsc-references/unknownType1_es2015.2.minified.js b/crates/swc/tests/tsc-references/unknownType1_es2015.2.minified.js index ab9b7a4b1ceb..1ea81e3c89d5 100644 --- a/crates/swc/tests/tsc-references/unknownType1_es2015.2.minified.js +++ b/crates/swc/tests/tsc-references/unknownType1_es2015.2.minified.js @@ -1,2 +1,2 @@ -import _extends from "@swc/helpers/lib/_extends.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +import _extends from "@swc/helpers/src/_extends.mjs"; +import _object_spread from "@swc/helpers/src/_object_spread.mjs"; diff --git a/crates/swc/tests/tsc-references/unknownType1_es5.1.normal.js b/crates/swc/tests/tsc-references/unknownType1_es5.1.normal.js index 1fd69899fdbf..31c938a08623 100644 --- a/crates/swc/tests/tsc-references/unknownType1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/unknownType1_es5.1.normal.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +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_spread from "@swc/helpers/src/_object_spread.mjs"; // Only equality operators are allowed with unknown function f10(x) { x == 5; diff --git a/crates/swc/tests/tsc-references/unknownType1_es5.2.minified.js b/crates/swc/tests/tsc-references/unknownType1_es5.2.minified.js index 54e4f106c47e..5354c544f60a 100644 --- a/crates/swc/tests/tsc-references/unknownType1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/unknownType1_es5.2.minified.js @@ -1,7 +1,7 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; -import _extends from "@swc/helpers/lib/_extends.js"; -import _instanceof from "@swc/helpers/lib/_instanceof.js"; -import _object_spread from "@swc/helpers/lib/_object_spread.js"; +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_spread from "@swc/helpers/src/_object_spread.mjs"; var C1 = function() { "use strict"; _class_call_check(this, C1); diff --git a/crates/swc/tests/tsc-references/validNullAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/validNullAssignments_es5.1.normal.js index 44cc5d4f2de8..f6b8e8afeba7 100644 --- a/crates/swc/tests/tsc-references/validNullAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/validNullAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var a = null; var b = null; var c = null; diff --git a/crates/swc/tests/tsc-references/validNullAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/validNullAssignments_es5.2.minified.js index 82d6003d82e4..d18c2b804b06 100644 --- a/crates/swc/tests/tsc-references/validNullAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/validNullAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; !function(E) { E[E.A = 0] = "A"; }(E || (E = {})), E.A = null; diff --git a/crates/swc/tests/tsc-references/validUndefinedAssignments_es5.1.normal.js b/crates/swc/tests/tsc-references/validUndefinedAssignments_es5.1.normal.js index 8bc49809bd68..6da5ef54c8e5 100644 --- a/crates/swc/tests/tsc-references/validUndefinedAssignments_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/validUndefinedAssignments_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var x; var a = x; var b = x; diff --git a/crates/swc/tests/tsc-references/validUndefinedAssignments_es5.2.minified.js b/crates/swc/tests/tsc-references/validUndefinedAssignments_es5.2.minified.js index 677df7747967..9e928e0d91bd 100644 --- a/crates/swc/tests/tsc-references/validUndefinedAssignments_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/validUndefinedAssignments_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/varRequireFromJavascript_es5.1.normal.js b/crates/swc/tests/tsc-references/varRequireFromJavascript_es5.1.normal.js index 86c243f6e2c1..fcfbfc640878 100644 --- a/crates/swc/tests/tsc-references/varRequireFromJavascript_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/varRequireFromJavascript_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // @allowJs: true // @checkJs: true // @strict: true diff --git a/crates/swc/tests/tsc-references/varRequireFromJavascript_es5.2.minified.js b/crates/swc/tests/tsc-references/varRequireFromJavascript_es5.2.minified.js index b3e9d26042d9..4f7275d5c56d 100644 --- a/crates/swc/tests/tsc-references/varRequireFromJavascript_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/varRequireFromJavascript_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var ex, crunch, Crunch = function() { "use strict"; function Crunch(n) { diff --git a/crates/swc/tests/tsc-references/varRequireFromTypescript_es5.1.normal.js b/crates/swc/tests/tsc-references/varRequireFromTypescript_es5.1.normal.js index c8d2353d297e..2e23718a49cc 100644 --- a/crates/swc/tests/tsc-references/varRequireFromTypescript_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/varRequireFromTypescript_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var Crunch = function Crunch() { "use strict"; _class_call_check(this, Crunch); diff --git a/crates/swc/tests/tsc-references/varRequireFromTypescript_es5.2.minified.js b/crates/swc/tests/tsc-references/varRequireFromTypescript_es5.2.minified.js index 3910468b186e..32b3505a36d0 100644 --- a/crates/swc/tests/tsc-references/varRequireFromTypescript_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/varRequireFromTypescript_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; export var ex, crunch, Crunch = function() { "use strict"; _class_call_check(this, Crunch); diff --git a/crates/swc/tests/tsc-references/variadicTuples1_es5.1.normal.js b/crates/swc/tests/tsc-references/variadicTuples1_es5.1.normal.js index ec67a6862480..4b2e56e353de 100644 --- a/crates/swc/tests/tsc-references/variadicTuples1_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/variadicTuples1_es5.1.normal.js @@ -1,5 +1,5 @@ -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; // Variadics in array literals function tup2(t, u) { return [ diff --git a/crates/swc/tests/tsc-references/variadicTuples1_es5.2.minified.js b/crates/swc/tests/tsc-references/variadicTuples1_es5.2.minified.js index 112ebc793c14..9caea2eb13ee 100644 --- a/crates/swc/tests/tsc-references/variadicTuples1_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/variadicTuples1_es5.2.minified.js @@ -1,5 +1,5 @@ -import _to_array from "@swc/helpers/lib/_to_array.js"; -import _to_consumable_array from "@swc/helpers/lib/_to_consumable_array.js"; +import _to_array from "@swc/helpers/src/_to_array.mjs"; +import _to_consumable_array from "@swc/helpers/src/_to_consumable_array.mjs"; function concat(t, u2) { return _to_consumable_array(t).concat(_to_consumable_array(u2)); } diff --git a/crates/swc/tests/tsc-references/variance_es5.1.normal.js b/crates/swc/tests/tsc-references/variance_es5.1.normal.js index f0d9ef331448..3b3518fccdbe 100644 --- a/crates/swc/tests/tsc-references/variance_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/variance_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var foo = { prop: true }; diff --git a/crates/swc/tests/tsc-references/variance_es5.2.minified.js b/crates/swc/tests/tsc-references/variance_es5.2.minified.js index b695262812bf..735e45ab0130 100644 --- a/crates/swc/tests/tsc-references/variance_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/variance_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var Bar = function() { "use strict"; function Bar() { diff --git a/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType_es5.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType_es5.1.normal.js index 39afb460905f..3672a9e0365e 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // void operator on any type var ANY; var ANY1; diff --git a/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType_es5.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType_es5.2.minified.js index 7c8897c35523..6e9d138290fb 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithAnyOtherType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, ANY2 = [ "", "" diff --git a/crates/swc/tests/tsc-references/voidOperatorWithBooleanType_es5.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorWithBooleanType_es5.1.normal.js index 9b2abb9e0057..e598bc8c3a0a 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithBooleanType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithBooleanType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // void operator on boolean type var BOOLEAN; function foo() { diff --git a/crates/swc/tests/tsc-references/voidOperatorWithBooleanType_es5.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorWithBooleanType_es5.2.minified.js index c1665cd766f5..a044cc27fffd 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithBooleanType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithBooleanType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/voidOperatorWithNumberType_es5.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorWithNumberType_es5.1.normal.js index 5e78d1917bdf..3a652c0bc291 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithNumberType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithNumberType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // void operator on number type var NUMBER; var NUMBER1 = [ diff --git a/crates/swc/tests/tsc-references/voidOperatorWithNumberType_es5.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorWithNumberType_es5.2.minified.js index 76ced0f24da3..542dc6191dd4 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithNumberType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithNumberType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/voidOperatorWithStringType_es5.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorWithStringType_es5.1.normal.js index b38e57213915..0cb6086f3fd5 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithStringType_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithStringType_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // void operator on string type var STRING; var STRING1 = [ diff --git a/crates/swc/tests/tsc-references/voidOperatorWithStringType_es5.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorWithStringType_es5.2.minified.js index f26d2d23ea3e..9ba6eadb5677 100644 --- a/crates/swc/tests/tsc-references/voidOperatorWithStringType_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorWithStringType_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var STRING, M, A = function() { "use strict"; function A() { diff --git a/crates/swc/tests/tsc-references/witness_es5.1.normal.js b/crates/swc/tests/tsc-references/witness_es5.1.normal.js index 2323ebcf34b5..e227d34ec8fd 100644 --- a/crates/swc/tests/tsc-references/witness_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/witness_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // Initializers var varInit = varInit; // any var pInit; diff --git a/crates/swc/tests/tsc-references/witness_es5.2.minified.js b/crates/swc/tests/tsc-references/witness_es5.2.minified.js index 9490f2b845b4..05a1581f91c8 100644 --- a/crates/swc/tests/tsc-references/witness_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/witness_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var co2, cnd1, or1, or2, or3, and1, and3, propAcc1, M2, InitClass = function() { "use strict"; function InitClass() { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2_es5.1.normal.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2_es5.1.normal.js index 5c2300aaf866..606991d0285b 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function C(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2_es5.2.minified.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2_es5.2.minified.js index 9901ec6290b9..39aaa12e884b 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints2_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function(x) { "use strict"; _class_call_check(this, C); diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3_es5.1.normal.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3_es5.1.normal.js index 0e3572800050..bb2b4adcb346 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // no errors expected var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3_es5.2.minified.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3_es5.2.minified.js index 578eaf33934c..cb1ed8593687 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints3_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4_es5.1.normal.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4_es5.1.normal.js index fc68b410bf1c..59526a5c1242 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = /*#__PURE__*/ function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4_es5.2.minified.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4_es5.2.minified.js index 2b6510964761..b6f1808090e9 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints4_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(x) { diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints_es5.1.normal.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints_es5.1.normal.js index 5daba6b301ae..eec9a0248ccb 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints_es5.1.normal.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints_es5.1.normal.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; // no errors expected var C = /*#__PURE__*/ function() { "use strict"; diff --git a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints_es5.2.minified.js b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints_es5.2.minified.js index d753b42e1f2a..4d5ec3e5ee87 100644 --- a/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints_es5.2.minified.js +++ b/crates/swc/tests/tsc-references/wrappedAndRecursiveConstraints_es5.2.minified.js @@ -1,4 +1,4 @@ -import _class_call_check from "@swc/helpers/lib/_class_call_check.js"; +import _class_call_check from "@swc/helpers/src/_class_call_check.mjs"; var C = function() { "use strict"; function C(data) { 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 bba896299673..1c53b2d3bb9e 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 c from"@swc/helpers/lib/_instanceof.js";import{Color as a,rgbConvert as d,Rgb as e}from"./color.js";var f=Math.PI/180,g=180/Math.PI,h=-0.5210501878999999-.1347134789;export default function b(a,f,i,b){return 1===arguments.length?function(a){if(c(a,Cubehelix))return new Cubehelix(a.h,a.s,a.l,a.opacity);c(a,e)||(a=d(a));var n=a.r/255,k=a.g/255,l=a.b/255,b=(h*l+ -1.7884503806*n-3.5172982438*k)/(h+ -1.7884503806-3.5172982438),f=l-b,i=-((1.97294*(k-b)- -0.29227*f)/.90649),m=Math.sqrt(i*i+f*f)/(1.97294*b*(1-b)),j=m?Math.atan2(i,f)*g-120:NaN;return new Cubehelix(j<0?j+360:j,m,b,a.opacity)}(a):new Cubehelix(a,f,i,null==b?1:b)};export function Cubehelix(a,b,c,d){this.h=+a,this.s=+b,this.l=+c,this.opacity=+d}!function(a,c,b){a.prototype=c.prototype=b,b.constructor=a}(Cubehelix,b,function(d,a){var b=Object.create(d.prototype);for(var c in a)b[c]=a[c];return b}(a,{brighter:function(a){return a=null==a?1.4285714285714286:Math.pow(1.4285714285714286,a),new Cubehelix(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=null==a?.7:Math.pow(.7,a),new Cubehelix(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var d=isNaN(this.h)?0:(this.h+120)*f,a=+this.l,b=isNaN(this.s)?0:this.s*a*(1-a),c=Math.cos(d),g=Math.sin(d);return new e(255*(a+b*(-0.14861*c+1.78277*g)),255*(a+b*(-0.29227*c+ -0.90649*g)),255*(a+b*(1.97294*c)),this.opacity)}})) +import c from"@swc/helpers/src/_instanceof.mjs";import{Color as a,rgbConvert as d,Rgb as e}from"./color.js";var f=Math.PI/180,g=180/Math.PI,h=-0.5210501878999999-.1347134789;export default function b(a,f,i,b){return 1===arguments.length?function(a){if(c(a,Cubehelix))return new Cubehelix(a.h,a.s,a.l,a.opacity);c(a,e)||(a=d(a));var n=a.r/255,k=a.g/255,l=a.b/255,b=(h*l+ -1.7884503806*n-3.5172982438*k)/(h+ -1.7884503806-3.5172982438),f=l-b,i=-((1.97294*(k-b)- -0.29227*f)/.90649),m=Math.sqrt(i*i+f*f)/(1.97294*b*(1-b)),j=m?Math.atan2(i,f)*g-120:NaN;return new Cubehelix(j<0?j+360:j,m,b,a.opacity)}(a):new Cubehelix(a,f,i,null==b?1:b)};export function Cubehelix(a,b,c,d){this.h=+a,this.s=+b,this.l=+c,this.opacity=+d}!function(a,c,b){a.prototype=c.prototype=b,b.constructor=a}(Cubehelix,b,function(d,a){var b=Object.create(d.prototype);for(var c in a)b[c]=a[c];return b}(a,{brighter:function(a){return a=null==a?1.4285714285714286:Math.pow(1.4285714285714286,a),new Cubehelix(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=null==a?.7:Math.pow(.7,a),new Cubehelix(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var d=isNaN(this.h)?0:(this.h+120)*f,a=+this.l,b=isNaN(this.s)?0:this.s*a*(1-a),c=Math.cos(d),g=Math.sin(d);return new e(255*(a+b*(-0.14861*c+1.78277*g)),255*(a+b*(-0.29227*c+ -0.90649*g)),255*(a+b*(1.97294*c)),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 de33db5b8420..419b1482e86c 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/lib/_instanceof.js";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var d=function(a){if(a&&a.__esModule)return a;if(null===a||"object"!==g(a)&&"function"!=typeof a)return{default:a};var b=f();if(b&&b.has(a))return b.get(a);var c={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var e=h?Object.getOwnPropertyDescriptor(a,d):null;e&&(e.get||e.set)?Object.defineProperty(c,d,e):c[d]=a[d]}return c.default=a,b&&b.set(a,c),c}(require("react")),a=function(a){return a&&a.__esModule?a:{default:a}}(require("prop-types"));function f(){if("function"!=typeof WeakMap)return null;var a=new WeakMap;return f=function(){return a},a}function g(a){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function h(){return(h=Object.assign||function(d){for(var a=1;a