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 c2e6a08566b..23ef6676674 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 d81213430f9..2099df96080 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 a5fe8a835e2..ef0209c4a6f 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 7641026bcd8..0bcf7f755c8 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 284c6716f0e..38bdcdd7631 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 284c6716f0e..38bdcdd7631 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 32f51584213..02c73244574 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 3451482c426..ba8227dab46 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 d36216279d6..b03c90a3d98 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 5d9f99bc4ed..1127a120c0a 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 03c5136f5fa..d2d80e2721c 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 a8fa14507dc..af06b3348e5 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 2f24b2d895c..6b16dd8f0ba 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 5df84995ce4..8b2dbde7330 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 77dde39bc88..e4cf04d0f2d 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 e1a2e465d68..88b31d0f93e 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 6297c27570f..089842fc533 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 2f97d665fe3..f79008b4491 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 1d33ec7dcbc..d3abbad8edd 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 e1a2e465d68..88b31d0f93e 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 7d2dbfb9cff..86fe30bd4da 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 f5a0ca8d946..8c41e842802 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 9fbb114f09b..9d25a3f48a7 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 3f8ffd2372a..9ec3b39e6a0 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 b4b27734b0f..f51f72eea4b 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 f5e698b9705..fded88aff20 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 46f822dcec3..ec21dcb31c9 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 f5e698b9705..fded88aff20 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 f5e698b9705..fded88aff20 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 f5e698b9705..fded88aff20 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 7bd2f7c932f..b544d79d295 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 7bd2f7c932f..b544d79d295 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 c5c6f637dde..fd05a7631b7 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 a2c384886df..6907eea4d38 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 69591660ec8..4a6db033df5 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 32a15b7175d..724271837b8 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 2f23a465a5b..1f3971053f6 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 993f1f7acb1..915136773cc 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 b7c19ac8dbb..bea83da715c 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 b9120640c4b..34c1710898a 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 51838759872..b4bb20c1990 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 3d09765231b..28d8fd5cefb 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 9611b05745a..548ebea3996 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 21b875544c8..d33078781ac 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 006b3c10cbb..340adb20654 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 42488789229..0d55192c092 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 42488789229..0d55192c092 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 42488789229..0d55192c092 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 42488789229..0d55192c092 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 42488789229..0d55192c092 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 42488789229..0d55192c092 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 3b4c26c25f5..332e1a6d79b 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 5d4d7a0b565..3abea1cc737 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 3b983411f57..0c175400946 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 50ac0ca102c..3f8037934f6 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 50ac0ca102c..3f8037934f6 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 f147d113b8a..883798ab7a4 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 b06908ebdd0..8d8904c0ad0 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 eddc63ae985..e4a322b6369 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 3e45fe14bac..889eea88f76 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 0f3e89faca6..4e9edb6f3ab 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 d4aa3133c16..9eb23f1414e 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 5134e5f12b3..b9e54e3d54a 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 b8c7ea44078..eb9aba62370 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 af55bb55a47..61e684c7175 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 ab22f8df6ee..88e487b7dd4 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 e9e9988d6f6..b810d8c27dc 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 bda80c9d006..757a24dffc3 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 ec1a63ab17d..8c213f8b578 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 9bbd631135b..59c93e111a2 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 6110f2a7f63..c07a092b21d 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 cc4990e2073..a396641405b 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 751b44b77b4..2021f575ac7 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 8d8278442d6..4fbe67d2f9f 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 2b5cec4ccbf..18fc479f0b0 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 c1d3043decc..b3c66d8c85e 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 b245fa90cc6..af1d26856d6 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 96a866ed53b..7de4fdd0493 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 be9a2b7dd80..62edace5a79 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 efc661e25cf..0503d650a7b 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 34168a50e34..1bd0932e6cd 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 bbb06d640e2..6d9c2fdd8d5 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 000a2d74e17..f37bd40f386 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 cadac6fce65..96a1ca23c2f 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 a7b1eab54a0..7405c5df08a 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 7ae877f4fca..af9ba961011 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 aa4d8ac713f..4d1017ce8ff 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 1cf1483bad0..53c3f9114db 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 6357632b6b0..eb6044de719 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 2be1579a865..bdb8fb28544 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 cf345102095..a76dd1cfb15 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 cf345102095..a76dd1cfb15 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 6f6790b9882..59e13593263 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 001d31bfb73..d2208240bf5 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 f06c0d71e8c..430be5ccb05 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 b8a61bcaf55..53fc34a5f95 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 79706f0b4c9..63d338cb154 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 21019f65baf..96b575cdf3c 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 267300623f9..293379783bb 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 21019f65baf..96b575cdf3c 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 267300623f9..293379783bb 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 f7140dcfef5..1a39c7c9a58 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 e98700a40d3..4f65d6033dc 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 c15703ac005..8ded38a30c2 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 8645a7f3fae..aae1101e2b5 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 c6e7d65e6ec..ea64ef37d24 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 8a88bf8784f..7a92a6c9b2d 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 78767e340fc..ebd56d3c8ef 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 d00ea04f426..895dfcafbc1 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 009b493d6e5..7dbe199b9df 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 d125a415f79..45ddff9d6cd 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 887a0188451..11fa5854d36 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 79c5fe2d398..caf2ef171ab 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 740eed34c05..bb38d476405 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 79c5fe2d398..caf2ef171ab 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 afd37497444..e12424b47e4 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 3ea8fc34931..2d8a710e3a6 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 916e74be516..3097dcd4904 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 3ea8fc34931..2d8a710e3a6 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 9479bad5da2..059cb4d0680 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 cef19c00daf..646200af943 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 44b1e6a56ae..af91e808324 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 3ea8fc34931..2d8a710e3a6 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 cd5b967591e..cca74f303bf 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 14275cc7880..35a4d782ce6 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 bd999b6f601..c9b3dc13816 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 526f7a584f7..3bfa1761ed4 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 ddab7c7fb0b..c6ffeaafd18 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 1f454a51e67..54897b24e86 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 df6f487d670..3cab3c27c1f 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 5ecbcc655da..0d74b548455 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 df6f487d670..3cab3c27c1f 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 5ecbcc655da..0d74b548455 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 17399ceb7f1..f5eba6da872 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 04d3f11b700..7e2832dc91a 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 2a983c70050..e8a81503735 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 6bb14e865b0..b7000255765 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 df6f487d670..3cab3c27c1f 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 5ecbcc655da..0d74b548455 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 9904fdbfcfb..3e3c49e79f2 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 ba6dc5fa519..e0a0bcb2b80 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 42e55875220..b71c32fdb54 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 351cf8b115f..a3e69609d8e 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 6bc8afee46e..b61d317dd59 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 62b957f754a..e185cf9f9fc 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 89e3a1d8e7a..5af6bd0912e 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 743499c0c85..306379f7b3d 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 9c064d7f167..f8646de8f74 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 fc122ac7763..8c4cb294ef0 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 35bb2287255..400aee288c3 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 6fb28d0670e..364a9da9fec 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 07fc155d3f2..d3d6bd53378 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 1aef9ff5e0d..9b34ed3f06e 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 f97cd42acf1..861e2635dc0 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 c2dc7de1377..7531adeb37f 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 e4e7ea30840..03e03742469 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 4ec46b66f01..92ce7e8e980 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 0a808cda064..4a11ee16008 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 bdd7e7d320f..c3cfc7b44d7 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 f2a1ad298bf..1b7ea136b22 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 dc81e1a95df..2f7310491d2 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 84f77df2ad4..e1a0c51005c 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 2703d77cf8c..f8ca4c0d661 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 fa06b013f29..fe276f89f06 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 1ad79770811..e5ab0d6da4c 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 c1153907a63..d503d161949 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 87645b37db9..d29326bb7b5 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 ccf3f018de0..6e0c0795991 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 d2ce05e8a0a..cd4e7e94ca1 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 ccf3f018de0..6e0c0795991 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 d2ce05e8a0a..cd4e7e94ca1 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 a18a3aa3d53..e3d3453423a 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 dccd201841e..ea6e875362a 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 ccf3f018de0..6e0c0795991 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 d2ce05e8a0a..cd4e7e94ca1 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 e5d6d827a38..03703aaef74 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 65bc4c89937..0d70cf4348c 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 d5562eff9ab..347ab716c79 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 d50981c907d..cfd4fac3ddf 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 19267558d96..e8a7649176b 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 3ef2816fb6f..d10023d99a6 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 d4d84948db9..9983869b7dc 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 ac3f5bfe028..d176b1a018a 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 8293356d04c..ac61b711e51 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 8cf69d12f86..1a40e8c1b47 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 da1250bee71..54a348e126e 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 6412641e54a..8ecb781f8a2 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 72afb9b7b59..fc73efa5277 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 d525400627d..0ce7c5fe3d0 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 3eeb2725e74..01cc266f4ae 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 028f6c291fd..845589a6689 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 e299f38a314..f15df765e34 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 0220e75351f..3079e998604 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 21430034916..2c3594ec41f 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 6cd30eff021..cfe27ca1b35 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 56b75fb0259..302001f16e3 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 abf64bcf706..9644756b7f1 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 ae33016ff8a..ac55910d0f4 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 2936b673e1d..13f9a5fd39b 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 ee25cb0cfd0..a9029d88699 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 aeacd11bcb0..10c09b8ed67 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 487572740b0..5d5ee101f77 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 2f1142c491e..b58f918544e 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 f9639d53f42..db58eefc6e2 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 20273e141c2..691aad9d4d3 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 e5d7e3aab19..a14e0fbb5bb 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 ae4e8d2d4e7..2253f13f494 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 128d9585229..4213618a558 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 4dab5acc717..97d8cd13958 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 5470f953ce7..cb980a7a4d2 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 4dab5acc717..97d8cd13958 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 59eee3ee227..ff4c6eae65f 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 80fd1736ca0..113eed1735d 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 0f110f2a9a8..ff1ba1d9f78 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 12694c3f697..3ecbcc89416 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 dbe515d4c82..d60a780b82c 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 7dd2bc0573c..ec86824452e 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 e868c3f4924..0f72b1780e2 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 79f5db9e1d1..0af3816d45b 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 7500d4776c8..b41dfdc5342 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 ff63444877e..6ef48bd4faf 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 4bd1d84994d..2ce36656bfa 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 6a86454af15..f6fa1c82646 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 94fa19b2f7c..860a8ac7a6a 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 8c7f39c68bb..0486d0fe742 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 b4ed9158380..f55b12267c1 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 b938944fadb..c884cca6c1d 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 7f144f1c219..f7db225c9f4 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 b938944fadb..c884cca6c1d 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 3ffa6ee3d2b..a7b73663aff 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 4ee43eb88a0..506acf70aa6 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 dd27e955ffe..30adf1abbf1 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 3ba939c6dca..a30ca27606b 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 a9fb0b20ef7..989603fbfb3 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 7d6272c8396..eed7ca896eb 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 f7a67d1c9dc..78e73f2ba1d 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 802c0e1ac71..e9fa13d3abb 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 68ef209df0d..f712c586dde 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 4b3c0c2d1e5..bd95192a5b2 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 82f8c45ce1d..d8844cdd308 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 25a38d50d29..ed1ce7393db 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 82f8c45ce1d..d8844cdd308 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 25a38d50d29..ed1ce7393db 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 82f8c45ce1d..d8844cdd308 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 25a38d50d29..ed1ce7393db 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 82f8c45ce1d..d8844cdd308 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 25a38d50d29..ed1ce7393db 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 ce87f3b6899..975f3151aae 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 5beb62669f2..9fea3f991ec 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 0ef4b5b4cea..6a2d93bf089 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 8d7e5707f1c..8379f8430c3 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 696c9b20a98..fbf6057462c 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 828aa3fecff..25f75d1a931 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 6d86400e63d..7a99b219d41 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 a0d5a90d7c1..7fcb8e9fbfe 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 3d0ca87eb4d..7fc0a37b907 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 efa9720d149..a71f5dba65a 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 399ee131d65..9f2c5a66478 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 4c8da75632d..af223a1d07d 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 1c3bd8808d1..f27c8c27c65 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 b6710b578f0..a44fb34f916 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 0c32f5be377..92a52188485 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 439db5fa023..c6fd2ed5647 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 0866daef019..d2855605ffc 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 fae9a3a8d61..5315796a72d 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 086071fa164..1bcf3cc91f5 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 27435ab0aa3..11a9c58ee34 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 bf4c3f6d88f..5fa9e53e4bd 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 a2fc02b2dc7..04667cff63b 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 71f52f1742c..891dd285d1d 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 a2fc02b2dc7..04667cff63b 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 c936369c114..e76d66b36a9 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 6cb9973d88d..2327e30abc7 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 70471f5ba78..746b15f1f7e 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 597bb1233c0..d05c1d7c8fd 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 3ae7291551e..d7fa6b2a673 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 d4097d37c7b..31bc54c094f 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 f7d71dd6375..3942cd15e0f 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 d80d9845701..000287af4fc 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 3e8bda746ed..e4270ae516e 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 e108e00e3c6..2386f9fbcbc 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 03ec10f1b68..be5d78088c6 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 a5382d38c72..8d521ef2ae7 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 ca6a62fb88d..b74c2bcee42 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 7752ecdd2db..9c6d172bf63 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 2222799368e..42cf9cfc87e 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 9c00af6d13f..01c6664ebf7 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 3c5dffc123d..db65a0706f9 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 6ce4a3b48ca..55ec7868eb3 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 a0e5b2b126b..51b88bf78cb 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 a48075af5bd..2329903e9a8 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 38072b3da5f..64936172726 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 7d5d22a6cc4..c5bbc2c8090 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 988ab1cf320..e4e380a8407 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 f15974473e5..1dc882bfeeb 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 6193d5e3259..7734cf24189 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 d8016242a94..1840658d1f0 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 188f820deef..d99453afd92 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 fe0c848595b..ac5df8ed64c 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 f60658af2e1..0ffdfc47b55 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 6039bdced80..5dae3c31cba 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 4528b639d9f..b9d960dcbfe 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 fe0c848595b..ac5df8ed64c 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 d8aaa97c484..6b09b46e1f5 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 c947fc29584..a47f742fc38 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 e77812d5065..9bc57a7c590 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 fe0c848595b..ac5df8ed64c 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 310557ce459..9a503f49c9b 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 6039bdced80..5dae3c31cba 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 8be5b9d0101..9e8360ce055 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 fe0c848595b..ac5df8ed64c 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 3abfb1d9bd4..6041b6130ca 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 c947fc29584..a47f742fc38 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 cda4e4aaa90..d3fab0c9089 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 b7db5e8a827..a140d370b21 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 ab48e63211c..54d1d031d34 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 1240dce4c10..4ea473c56a1 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 0d0ff975794..9fb538dd823 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 c913fc02373..5cb2fe0c359 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 5b71e5db095..4c1f64a907b 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 01b9f3b1b2f..b231ee7b579 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 5b71e5db095..4c1f64a907b 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 01b9f3b1b2f..b231ee7b579 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 34e4af9ea62..437b76532ca 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 ba18f4bbd69..b26d0d8899a 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 35390771f87..c0baa38b3b6 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 677df774796..9e928e0d91b 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 cab79b910a2..3dbbd0e89df 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 754d81d4f3d..05dd677e8fc 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 478faae78fc..36542c7770d 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 01b9f3b1b2f..b231ee7b579 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 0a85fc0403e..434a3280175 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 39127bbe5d1..06ee330d3f1 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 301b94715d9..d51036e3d66 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 bc5d3b32ec9..2e5e0314107 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 c6fa2b48a0e..6fa329ee9c1 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 3e71a6daa20..75c7507d5f9 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 fe011407e97..ac130e1778c 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 6c9fe461c7d..026eaba70ca 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 6bbffaa23e0..b4256559719 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 ed7ee8db7f9..33ff22d739d 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 a1070408b41..179c7d65e7b 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 ebf66a5c580..0b4428f1efd 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 8c82d7ad6a3..d78c4daa072 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 fbb0206fac5..d778914562d 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 1d162c3bece..e5ad8fc7ae6 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 7297f55eebd..49a1dcbf60a 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 0cf52230d96..b3395ecf3db 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 58049767209..20a0f20505c 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 27050acd7a2..433de126506 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 4226201d4a9..3417dabd0f2 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 0cf52230d96..b3395ecf3db 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 58049767209..20a0f20505c 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 27050acd7a2..433de126506 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 4226201d4a9..3417dabd0f2 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 fc6fe3bf3c5..2dfd2652173 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 bd49df9c355..b6d3f28c0c0 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 d35b6663474..b8fb0c4a6d4 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 86701662197..ce23cd8a321 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 ea71a818634..4b06a08cbcc 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 bd49df9c355..b6d3f28c0c0 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 aabc8a43ced..00f631d3de4 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 86701662197..ce23cd8a321 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 e7d2d3fa836..f3414dd3414 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 bd49df9c355..b6d3f28c0c0 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 05d82706eb3..198c0bd349d 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 86701662197..ce23cd8a321 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 b73895389ce..d9229c13762 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 58049767209..20a0f20505c 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 a4afd49f024..07cbd93a3ab 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 966096cb58a..eb06371a671 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 4983f0b4b39..74d213af73a 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 bd49df9c355..b6d3f28c0c0 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 0f05d3ab428..e5b791d7891 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 9684934c5b7..78d7bfcedb4 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 64cb580f822..88ec79889c3 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 bd49df9c355..b6d3f28c0c0 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 8ccb8a7f3f9..8ee2ac5b889 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 9684934c5b7..78d7bfcedb4 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 52f2b2189c5..357230c8383 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 bd49df9c355..b6d3f28c0c0 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 1df369bbb68..faa89b3e17a 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 9684934c5b7..78d7bfcedb4 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 f6cc7f1ef60..6d2b90504fc 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 58049767209..20a0f20505c 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 a695dbac485..138a3f8c69c 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 137b105abf9..f642f43040d 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 2a94a755ed5..d4784b1bff6 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 58049767209..20a0f20505c 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 59afb0aca42..d28cbe025b2 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 137b105abf9..f642f43040d 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 6b767f79797..75c2fb50b9c 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 58049767209..20a0f20505c 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 8ef35b64d94..076209c913a 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 137b105abf9..f642f43040d 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 25e187078ab..b7ee0d85f5b 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 58049767209..20a0f20505c 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 c0966631d53..27de32875ba 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 787ce524af3..0c8429a3f87 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 cb851efbfc4..9d81637588b 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 58049767209..20a0f20505c 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 9e293f53a9a..cfd7fc21d60 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 787ce524af3..0c8429a3f87 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 721f7e37ebd..970042bf4c4 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 58049767209..20a0f20505c 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 a81729a6f47..512ff08b5a7 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 787ce524af3..0c8429a3f87 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 51fcac1409f..0299090f1f2 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 a14a3f941fc..e94f0a07fdb 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 c6d2456da22..f6f66155e52 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 e71b3e9b8b0..1a6cc85d300 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 0cdb121aaed..b917eb868cd 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 cf0b68aaed9..3d0b11c08bf 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 205faa72246..7a690333043 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 611ef891e8e..9528233aeb4 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 c86d892ec1d..2b30620d64a 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 cf0b68aaed9..3d0b11c08bf 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 e65fd6170b6..0430eac32cf 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 611ef891e8e..9528233aeb4 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 2a9f3ac326b..f42115ae999 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 cf0b68aaed9..3d0b11c08bf 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 add204e820b..f7d66ecdd46 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 611ef891e8e..9528233aeb4 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 e04e06c37d7..1c3db32f7ec 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 61b2490ac60..36b1f4c078a 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 cbff9fb1384..bc6db61b756 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 d15cda51582..f7e61d55743 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 7fd547271c6..67cb8b3354a 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 cf0b68aaed9..3d0b11c08bf 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 5986784a13e..d7b2f64c517 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 611ef891e8e..9528233aeb4 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 7fd547271c6..67cb8b3354a 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 cf0b68aaed9..3d0b11c08bf 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 5986784a13e..d7b2f64c517 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 611ef891e8e..9528233aeb4 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 7fd547271c6..67cb8b3354a 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 cf0b68aaed9..3d0b11c08bf 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 5986784a13e..d7b2f64c517 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 611ef891e8e..9528233aeb4 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 748893c4b30..4f1dcf6489e 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 58049767209..20a0f20505c 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 88a3bdb9af6..34dcb625188 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 4226201d4a9..3417dabd0f2 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 05f60a78b57..d3f430eec7c 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 58049767209..20a0f20505c 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 c3c9572027d..c0b9b5098da 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 4226201d4a9..3417dabd0f2 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 3dff5ef5317..24f12aa7ffe 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 58049767209..20a0f20505c 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 2d45d48ad6a..4b981023d17 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 4226201d4a9..3417dabd0f2 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 735840216d2..178e43eb225 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 58049767209..20a0f20505c 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 8d2e09ced8b..e8788a4217e 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 4226201d4a9..3417dabd0f2 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 303a2fcff23..1a80748dc9d 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 58049767209..20a0f20505c 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 06bf926bc8d..03ba1982f92 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 4226201d4a9..3417dabd0f2 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 5bb6386beaf..f062e7d90b8 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 58049767209..20a0f20505c 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 4b1733ad1d1..d6acd81b631 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 4226201d4a9..3417dabd0f2 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 666a047db7b..4bdfc7f0282 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 58049767209..20a0f20505c 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 a9a37107793..4f41f2dec6a 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 4226201d4a9..3417dabd0f2 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 b4aa7a9af5f..6782152fdec 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 58049767209..20a0f20505c 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 6d517280792..376f925b45e 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 4226201d4a9..3417dabd0f2 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 cc33cf32b91..bbcdf4c4ec5 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 58049767209..20a0f20505c 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 090e350c8a5..2e970a79bfd 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 4226201d4a9..3417dabd0f2 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 2f2c73fe992..185098747f1 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 58049767209..20a0f20505c 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 952550fe39f..c193ec19ef7 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 4226201d4a9..3417dabd0f2 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 9ce06d4ad04..08eae20d331 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 58049767209..20a0f20505c 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 2d7ef68f0e6..5b42d8cd7a8 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 4226201d4a9..3417dabd0f2 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 b99134209d1..c6056fcc002 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 58049767209..20a0f20505c 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 d518406709a..e324cc51fdb 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 4226201d4a9..3417dabd0f2 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 b1d11bbb59e..67c3473feab 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 27267fca7b1..6114029734e 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 9b5fbfd6b77..63378f8b482 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 27267fca7b1..6114029734e 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 f8251c3f2a0..c01b6d6df03 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 27267fca7b1..6114029734e 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 c95578b5b30..e5d841d8178 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 58049767209..20a0f20505c 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 f2d3c35dcf5..bb3e9d973a3 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 d81f58595ff..7a16f9a81f7 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 b665d95a86a..55259770eea 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 856b49718cf..7e6ceb8db28 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 d6195d82fd5..839c71682ac 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 966c18e3fe9..c2d0831e473 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 a62391322a3..e670783c996 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 856b49718cf..7e6ceb8db28 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 c4a413ed42b..b936a81e262 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 966c18e3fe9..c2d0831e473 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 3fd08b73e5f..36cc294637f 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 58049767209..20a0f20505c 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 f0be3e944ae..81900ec2c75 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 164cc2072b6..75c8b82f3c8 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 d39cebc11d0..4811b75f157 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 58049767209..20a0f20505c 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 2a2e592245d..254f88bb182 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 ddb62194538..fa67837b829 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 38bed9e9dbb..b3c0e86f9f6 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 58049767209..20a0f20505c 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 6be3301a4cc..539a060f78e 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 ddb62194538..fa67837b829 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 398bfe2ad16..4d359360f92 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 5041a00d6d5..471dda65d5e 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 e0a52dd9185..5ec79727ec2 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 47d0852c01e..e7284628d09 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 4afe80dee1f..70d776d94b0 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 58049767209..20a0f20505c 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 14fe66b304e..7a8cda0379d 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 4226201d4a9..3417dabd0f2 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 34ea943c865..c60589ef0e8 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 58049767209..20a0f20505c 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 823c1bd4c26..2dba14545d7 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 4226201d4a9..3417dabd0f2 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 81eb38345da..b176428c7d6 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 18235a2565c..31ea7d7a7b3 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 53856803756..1d7a8122ce1 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 e8fdd2b1054..c651a77ae7a 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 81eb38345da..b176428c7d6 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 18235a2565c..31ea7d7a7b3 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 53856803756..1d7a8122ce1 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 e8fdd2b1054..c651a77ae7a 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 81eb38345da..b176428c7d6 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 18235a2565c..31ea7d7a7b3 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 53856803756..1d7a8122ce1 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 e8fdd2b1054..c651a77ae7a 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 ae6eba3a32b..56758735a53 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 58049767209..20a0f20505c 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 2a6bb422f77..e403fed767a 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 4226201d4a9..3417dabd0f2 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 ae6eba3a32b..56758735a53 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 58049767209..20a0f20505c 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 2a6bb422f77..e403fed767a 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 4226201d4a9..3417dabd0f2 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 ae6eba3a32b..56758735a53 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 58049767209..20a0f20505c 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 2a6bb422f77..e403fed767a 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 4226201d4a9..3417dabd0f2 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 7d880fbe07b..f2d6cea5ecf 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 d78218841da..ae47f88200c 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 a60c14faba2..6e82791c93a 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 32ed3c2e98d..5d2490c3d91 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 c537cff634f..421930fbc30 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 58049767209..20a0f20505c 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 d0cef038a40..dc8e32ea5d8 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 4226201d4a9..3417dabd0f2 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 c537cff634f..421930fbc30 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 58049767209..20a0f20505c 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 d0cef038a40..dc8e32ea5d8 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 4226201d4a9..3417dabd0f2 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 c537cff634f..421930fbc30 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 58049767209..20a0f20505c 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 d0cef038a40..dc8e32ea5d8 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 4226201d4a9..3417dabd0f2 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 da5d3ffff63..f8cae94c3d0 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 58049767209..20a0f20505c 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 07843972b12..68040c0b904 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 4226201d4a9..3417dabd0f2 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 da5d3ffff63..f8cae94c3d0 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 58049767209..20a0f20505c 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 07843972b12..68040c0b904 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 4226201d4a9..3417dabd0f2 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 da5d3ffff63..f8cae94c3d0 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 58049767209..20a0f20505c 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 07843972b12..68040c0b904 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 4226201d4a9..3417dabd0f2 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 c41c3766439..55dc79ee278 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 58049767209..20a0f20505c 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 f4bd4a6e8c1..716e235feaa 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 4226201d4a9..3417dabd0f2 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 c41c3766439..55dc79ee278 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 58049767209..20a0f20505c 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 f4bd4a6e8c1..716e235feaa 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 4226201d4a9..3417dabd0f2 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 c41c3766439..55dc79ee278 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 58049767209..20a0f20505c 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 f4bd4a6e8c1..716e235feaa 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 4226201d4a9..3417dabd0f2 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 50d50e6ea47..e1ffc19e568 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 58049767209..20a0f20505c 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 6622f04a76d..ba0a086e27d 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 4226201d4a9..3417dabd0f2 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 50d50e6ea47..e1ffc19e568 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 58049767209..20a0f20505c 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 6622f04a76d..ba0a086e27d 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 4226201d4a9..3417dabd0f2 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 50d50e6ea47..e1ffc19e568 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 58049767209..20a0f20505c 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 6622f04a76d..ba0a086e27d 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 4226201d4a9..3417dabd0f2 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 77ca85ff81a..e4b0ea7c12a 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 58049767209..20a0f20505c 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 f4fc9aa9d64..4168eecbf29 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 4226201d4a9..3417dabd0f2 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 77ca85ff81a..e4b0ea7c12a 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 58049767209..20a0f20505c 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 f4fc9aa9d64..4168eecbf29 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 4226201d4a9..3417dabd0f2 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 77ca85ff81a..e4b0ea7c12a 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 58049767209..20a0f20505c 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 f4fc9aa9d64..4168eecbf29 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 4226201d4a9..3417dabd0f2 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 e3156744743..2559b55fb66 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 58049767209..20a0f20505c 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 61d54c02c06..93a9516d249 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 4226201d4a9..3417dabd0f2 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 e3156744743..2559b55fb66 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 58049767209..20a0f20505c 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 61d54c02c06..93a9516d249 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 4226201d4a9..3417dabd0f2 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 e3156744743..2559b55fb66 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 58049767209..20a0f20505c 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 61d54c02c06..93a9516d249 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 4226201d4a9..3417dabd0f2 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 5bfa5a24bc8..83191d269fe 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 58049767209..20a0f20505c 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 617aa18b070..5310eafe161 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 4226201d4a9..3417dabd0f2 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 5bfa5a24bc8..83191d269fe 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 58049767209..20a0f20505c 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 617aa18b070..5310eafe161 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 4226201d4a9..3417dabd0f2 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 5bfa5a24bc8..83191d269fe 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 58049767209..20a0f20505c 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 617aa18b070..5310eafe161 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 4226201d4a9..3417dabd0f2 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 6a3ba95bd82..688d024f6d9 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 58049767209..20a0f20505c 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 f563c0b2e45..16d8de58afd 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 4226201d4a9..3417dabd0f2 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 6a3ba95bd82..688d024f6d9 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 58049767209..20a0f20505c 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 f563c0b2e45..16d8de58afd 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 4226201d4a9..3417dabd0f2 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 6a3ba95bd82..688d024f6d9 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 58049767209..20a0f20505c 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 f563c0b2e45..16d8de58afd 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 4226201d4a9..3417dabd0f2 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 bb237cb3680..9bd170fc75f 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 58049767209..20a0f20505c 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 ec6d6faf9c2..f15872b95ef 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 4226201d4a9..3417dabd0f2 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 bb237cb3680..9bd170fc75f 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 58049767209..20a0f20505c 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 ec6d6faf9c2..f15872b95ef 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 4226201d4a9..3417dabd0f2 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 bb237cb3680..9bd170fc75f 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 58049767209..20a0f20505c 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 ec6d6faf9c2..f15872b95ef 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 4226201d4a9..3417dabd0f2 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 bc1728b10a2..6e7d9747a0c 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 58049767209..20a0f20505c 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 3426e851f06..7add91885fd 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 4226201d4a9..3417dabd0f2 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 bc1728b10a2..6e7d9747a0c 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 58049767209..20a0f20505c 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 3426e851f06..7add91885fd 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 4226201d4a9..3417dabd0f2 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 bc1728b10a2..6e7d9747a0c 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 58049767209..20a0f20505c 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 3426e851f06..7add91885fd 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 4226201d4a9..3417dabd0f2 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 11f089e940a..b297ab54fc2 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 58049767209..20a0f20505c 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 3f4ddd1972b..80248467587 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 4226201d4a9..3417dabd0f2 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 11f089e940a..b297ab54fc2 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 58049767209..20a0f20505c 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 3f4ddd1972b..80248467587 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 4226201d4a9..3417dabd0f2 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 11f089e940a..b297ab54fc2 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 58049767209..20a0f20505c 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 3f4ddd1972b..80248467587 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 4226201d4a9..3417dabd0f2 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 5136c289a05..e2917612257 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 58049767209..20a0f20505c 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 a4b98e086b1..d01b6b83b08 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 4226201d4a9..3417dabd0f2 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 5136c289a05..e2917612257 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 58049767209..20a0f20505c 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 a4b98e086b1..d01b6b83b08 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 4226201d4a9..3417dabd0f2 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 5136c289a05..e2917612257 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 58049767209..20a0f20505c 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 a4b98e086b1..d01b6b83b08 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 4226201d4a9..3417dabd0f2 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 5ac872955cd..c180be370c0 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 58049767209..20a0f20505c 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 512d1a9069a..abd34580b82 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 4226201d4a9..3417dabd0f2 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 5ac872955cd..c180be370c0 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 58049767209..20a0f20505c 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 512d1a9069a..abd34580b82 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 4226201d4a9..3417dabd0f2 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 5ac872955cd..c180be370c0 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 58049767209..20a0f20505c 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 512d1a9069a..abd34580b82 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 4226201d4a9..3417dabd0f2 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 56eedc274b6..3f3589578a4 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 58049767209..20a0f20505c 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 0ecf3ca8a96..434ab30344f 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 c68310ebd3e..902b3208fff 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 56eedc274b6..3f3589578a4 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 58049767209..20a0f20505c 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 0ecf3ca8a96..434ab30344f 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 c68310ebd3e..902b3208fff 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 56eedc274b6..3f3589578a4 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 58049767209..20a0f20505c 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 0ecf3ca8a96..434ab30344f 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 c68310ebd3e..902b3208fff 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 63268f47a8d..20b5e83cac1 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 58049767209..20a0f20505c 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 62cf706f2e8..532b77efdc3 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 4226201d4a9..3417dabd0f2 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 1f509cea7a4..5b5580d4e40 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 58049767209..20a0f20505c 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 13dad700211..f36c21ee918 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 4226201d4a9..3417dabd0f2 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 1f509cea7a4..5b5580d4e40 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 58049767209..20a0f20505c 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 13dad700211..f36c21ee918 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 4226201d4a9..3417dabd0f2 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 31438e61dce..82b0d1da4f0 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 58049767209..20a0f20505c 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 d1370d6a6ef..644018282a5 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 4226201d4a9..3417dabd0f2 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 b2217ea6a1e..c8cbdddaefb 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 58049767209..20a0f20505c 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 cf61693e27f..1a6ebc3e708 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 4226201d4a9..3417dabd0f2 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 f87b74dfea1..4ec4e9cab10 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 4336fb81316..a6b005fcf40 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 59afbf225ea..d7d8c879624 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 4336fb81316..a6b005fcf40 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 ddd54aada00..db067ada30c 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 20152ab425b..73e3ab8bb49 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 08cb47974cb..8fdd86a66b0 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 28b46a02b39..b7fd66288fc 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 a370f4b20c8..ddef6e465f3 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 c1665cd766f..a044cc27fff 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 cf1d2925deb..49281c66b97 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 76ced0f24da..542dc6191dd 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 de3caa22423..19da0aac8e5 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 f26d2d23ea3..9ba6eadb567 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 4013b9f47d9..ebcdae6b37a 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 5edab53b226..e9e9d4f9d1e 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 87d14647203..ed303a1c511 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 73619e3a90d..72e62e5e35c 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 6b4748f80df..8bc9450a0b0 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 c808b17ac7a..c9ccc7369f3 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 26c52249a65..9341c5895fe 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 070c0017a30..5bc893eeddc 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 cf83ec3f9bf..061f289ce39 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 b192b4ae1bf..ee74deab322 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 af678c79248..1306d45be52 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 fe0c848595b..ac5df8ed64c 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 e51f6a6a198..df55724dd15 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 a262ec1ddce..89e49e37b0a 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 af678c79248..1306d45be52 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 fe0c848595b..ac5df8ed64c 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 c9a2a95cca5..ed049af55eb 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 fe0c848595b..ac5df8ed64c 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 da92f54c65c..0550c7a7dba 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 fe0c848595b..ac5df8ed64c 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 6c131c1d144..64573ab9de7 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 6ad4ea40826..bc031dd2dbf 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 23bc1b96630..0f820492ce0 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 94335d34a34..4cded96f6c0 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 d88d1c6e7f7..80da6af3646 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 93481d485a5..83e97a2a8bc 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 a99520e4f5b..f03b79ffe68 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 efc598b76e5..4dc18124a82 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 f650e025917..7fb8c8ca112 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 5f3375754fe..f94671430ae 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 86d3ba0506e..bca0dd9e610 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 0358bf196d7..5c28be5c13b 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 5f2083c8c67..1982ed4c8f5 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 a68d4eb31f6..8aa9681a0df 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 c519b9ceb81..c6530b865bd 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 15327895836..fdcdedf38d1 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 54fb7a35e1d..1f07e5f85c2 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 70c6c358016..0c4427d2f95 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 fbe0e87a71d..fbae68831c9 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 5395fa86cae..e7ddcfcdbfe 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 a656147ad49..b449c75c7b6 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 71f7c5255c7..f189207846b 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 8c52b10551b..5c3c060893e 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 573c035b885..cfd409ad30c 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 cdd0f129ace..8d83b38ebc8 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 785b17c1127..4d55b839580 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 5468662f1a1..0f916cd1077 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 6fc402b280d..b63fe910cfb 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 abd5132d07c..35488ad3837 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 4f93c60e366..604ee2b86aa 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 6081f6956ce..bc9ee58e0ed 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 ad4d9173ca5..b2593d0c324 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 34422b06872..d61c957a605 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 e11c3af6586..ec26d33b700 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 4a6e359e0e7..7d717b29f01 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 13c78f324ac..72faee3d9f7 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 4a6e359e0e7..7d717b29f01 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 13c78f324ac..72faee3d9f7 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 205b88864a4..d8b51c9873c 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 74a1f552f78..0a129840a29 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 ffff0a6b452..4b8663c5bad 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 4eaea4b6ab4..449226f1553 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 2c566984a63..eec09a5008b 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 abd06abeefa..ea8962fd8bd 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 9c7b4605701..9fd8fd268a5 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 883fe30ae5a..17e93660293 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 405ff174ad9..2d744a65561 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 421d612b877..66283721047 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 56a0e1d24e2..cac5e929641 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 a4ec2a61f6c..10ba14d6b8a 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 6962112e11c..39296b950be 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 aa7c46c7f61..a0f3c22fe72 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 f419b53d857..492da8b065b 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 84169adfbd7..1258922eed6 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 6fac97bb540..3330ec7577c 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 84169adfbd7..1258922eed6 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 1bac57aada6..488c997e0df 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 6a32a1f096d..c81a7271eb3 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 91e0a7185f7..bfde1a51a94 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 6a32a1f096d..c81a7271eb3 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 e73f58a1444..77b65727c9f 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 6a32a1f096d..c81a7271eb3 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 f4fff683f3f..273f50e3584 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 6a32a1f096d..c81a7271eb3 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 90d24c8c176..720857d36e5 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 9c8f09ca1c9..71d761b99dd 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 94dd9d050ad..1896510d715 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 f88f41d66bf..ea6dac81eb5 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 a8864002a22..b54aafeba29 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 b50dec2c0a1..918a6d6b2a9 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 1f540f56daa..9a7307a564f 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 8967f72731f..51ea44b5e7a 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 da8ca42617a..2d5ee77a03e 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 632e3bbc661..aa5a2e1ab4f 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 230a5ef2956..300a2579bf2 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 e9900099651..3e511b06951 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 ff32f8fb0af..76c447a65e1 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 716ded13dce..0ef6398aed6 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 4ef12acf57b..0e8ac581d1d 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 cd24868cc63..9a7566d50ea 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 2c92750bb94..db15c2adf91 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 5973ea44b36..3721f4d6bdc 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 ad5bc1f240c..64107f36271 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 27acadfb465..592a79d4705 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 331a7babcc0..dee259a4527 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 27acadfb465..592a79d4705 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 d6410d27d83..ec485801115 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 211f220f3f0..a6fc57e7866 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 c2337fe762e..18a49f7d759 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 a3e5c00141f..88d5bcafc68 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 2f2fae748a9..54110db9fc9 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 ca725164929..5a4b9f250ee 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 067972e0f1d..1de11e06c84 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 7ccf03c2f93..580199b3583 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 e292c365645..0dde22ae9ac 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 b4edf89beed..a571ab64314 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 0ed0dffef8e..fbd3f4e2a22 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 b4c578a3619..46c1feda6c7 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 8b6327f7c36..33d57994740 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 d6323a55247..68a926fc88e 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 99ede995d10..bff423ab87b 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 53167404f73..55a3e814188 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 d66835235dc..0c313c70966 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 bfd1f041707..1c517ecaa31 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 90cd1b5319c..4181e77d855 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 0094f6bdcc0..2f90aabd8a8 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 b9e154c2564..dfe079a8e56 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 3ea249cb267..52a05eb1e3c 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 58ab58f8145..1d63ee98cac 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 41ae7bdb047..9437e9dddfd 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 da447e750d3..2f47cbaace1 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 d1b3745475d..2b7fe4f44e0 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 391b833db9b..15763f3fac4 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 552bea44701..0cb5cbbbf83 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 081a46a7912..f0ba8aefc58 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 bf2dc48b8ef..3c26fcc6744 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 46c5e9d96e3..fa132213ae4 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 7b6c352a10b..a4fca60a808 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 28a92b7398c..29b7c2bf2d3 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 8d636a3eeb2..16129fe21eb 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 d452cbb6021..f699b4f146d 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 44866a643af..e3fbcb5e3e9 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 1f09f578bef..0eea991657f 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 dbe71d21fed..8db44d8ffe9 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 35a124e91a6..350b4c21ca7 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 480d99008bb..544326f095f 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 3a49b011d12..0d941a75bcc 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 147fe2e317d..d28105f95c5 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 1e000886ce4..1cc7e48c4f1 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 ab4ce4f8713..63849f6e12e 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 31316dd0997..5c9e1519d71 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 85853f224fc..60da5fdb1af 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 1fbca58d525..4ea62a35291 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 73c7ae8702b..c1495ec1ad5 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 9f47ced1c96..9a4bf2151b9 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 5b974af629e..39519434fdb 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 293618cb8d5..59590cab818 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 bf041f95541..5203e9bf1ac 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 9f47ced1c96..9a4bf2151b9 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 5b974af629e..39519434fdb 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 6435f34eed9..583089c4cb7 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 25c5b70406f..08a33319318 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 9357b6ecd41..328eeb52e52 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 dbfcebc35bd..0a0abcc8dac 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 9e3d23859f3..7c7fdbe9895 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 25aa4e1f423..31513eb582a 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 b91f3df0170..278ec4be79c 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 3ac0fa510eb..1adbda0bc12 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 eb4bbe1824f..765ef3dfc93 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 8c673e6a6bb..91b523861e6 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 e8cba54f37b..4b10dc77d48 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 ecf5d4ab43a..b4b5cca6f73 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 6093883162c..ea85954a773 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 60eefab0ee8..5521af4ecee 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 1e095a34e4e..4696729cc32 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 e000919a71a..e4e266ad136 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 08de7dd2cb3..ffd0e073b18 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 3ac0fa510eb..1adbda0bc12 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 ed44819abb2..6659b7c8e11 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 8c673e6a6bb..91b523861e6 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 5375fde3409..6de7b27299f 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 ecf5d4ab43a..b4b5cca6f73 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 beceddf7fbd..426eccdbeff 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 285cf0a0489..0fea85ea013 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 00c71d6b9f3..bcf1735463f 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 7b6c352a10b..a4fca60a808 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 8820fad1e4f..654a39a54ee 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 20aa3b46109..d6a02c90231 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 e4bd566b3e6..c8e60debd84 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 5ae22ac3bb8..0c5415b8325 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 4ada6e43e4c..cab317111e9 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 032299b34aa..34a64b579d8 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 164e9f49039..8341b6b4a82 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 35a82a9f142..bd18ea4e4fc 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 08121a45cfe..001a41da4b6 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 841508d2c7d..c29802ebbab 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 f162c4ac298..fe9a2c6ebd8 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 1c263ab55e7..8fa0e68e41a 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 9955b996930..2f11f9e8792 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 62960af03ab..da8ffe62b42 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 70f4a2c1ac3..6dd7364eeab 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 62960af03ab..da8ffe62b42 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 f84250ec966..30b6758ec83 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 682d516b57a..92ad0e05582 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 7a66922e183..7c03a5ce841 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 36511b7e3cd..47f5a07b80e 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 9faf703d1aa..501c7a757ab 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 001263807b3..622cb61ca90 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 0b899851cbb..3efd3191ae3 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 05c48343148..7a78a9d59c0 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 b459dc1b17e..aca3d09ae16 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 3ac0fa510eb..1adbda0bc12 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 801d419243b..d2cf94a4391 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 4336fb81316..a6b005fcf40 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 b2462e12066..329f96f2ff2 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 d8193ba39e7..34d02d4db4e 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 b2462e12066..329f96f2ff2 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 d8193ba39e7..34d02d4db4e 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 78c8b84a232..d76aa503b7d 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 d8193ba39e7..34d02d4db4e 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 7b1b1df6245..6fea9ea4e42 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 188bbeebaca..8f16ebe4cb7 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 621ad203d8a..28ebb71f820 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 4dd6709316a..b74178b18fe 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 3967fba9d24..7076dabab40 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 0cb63369efc..ffe62b8423b 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 1dfbd576938..89d4c58f32b 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 d58899b68d9..44539913008 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 bbae1af0c10..c72d2d2f07f 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 94086c12529..e4c7cfcc3a8 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 75600594519..540188ed5be 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 135ed4d034a..6041829c6a1 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 fca9f8046f6..e047a45b18b 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 ec87cc4f227..44cc42c30d0 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 f33f6c5a75b..f1279222ce8 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 677df774796..9e928e0d91b 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 7abadf2ae1d..60e611142b9 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 ceea439b6dc..94be4944419 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 e888550ab47..841c46fa482 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 cdb82916f48..3fc0b7ade25 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 21ab8b1d0e4..804092c4491 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 9a1924a7f11..796b57da2d9 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 bc8e5c9405a..cdad9cb0331 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 3ac0fa510eb..1adbda0bc12 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 0125781523f..ecebe462341 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 677df774796..9e928e0d91b 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 7b5ac6b9df1..935b6c03d14 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 677df774796..9e928e0d91b 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 b3e625199ad..fa4e6c12cba 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 b992d34774e..9aa636e59e6 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 773cd709ff4..5c5e194f755 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 677df774796..9e928e0d91b 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 be709beef06..a5da1795f62 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 c675a739390..3edb6cc18d5 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 d5c59e1aa01..ab09c1a2fef 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 677df774796..9e928e0d91b 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 59dd9e77bbb..783c43271f5 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 5bbd0ac4c65..c49a19b0625 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 318891aac2e..b4928b60712 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 5ecdfbee84b..1f0f97ec532 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 90b0d317530..e5531df938c 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 e2c721555e0..73d0e4d2891 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 bb1c7aaa3d6..089cad06011 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 e40ed30d554..68c84e341c1 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 f7cc51360ca..62a60083860 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 ad0863381d6..98585462517 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 c6d4b8a3d34..825f9089f2f 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 ff5ecbf6582..3868d7c62f5 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 033ce8b07d0..06e071caad2 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 2db9bb46712..50f5cf034e0 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 ba3ea9d597d..3c5f8df3ac3 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 7e39209fd08..6d11ea90587 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 91dbf5fd4f3..3fcf4371eeb 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 496818b4a80..3d16cbedf5b 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 3d0893068f0..5185bf3ed58 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 fedd89a9e92..8d14c82c9ea 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 27aa307c441..88201ac99d4 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 5e866c25a20..1423ff5f79d 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 27aa307c441..88201ac99d4 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 5e866c25a20..1423ff5f79d 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 4ae2538f670..db1fe5b2e51 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 278e8a8fb94..117d5b34c7f 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 a34bd459514..f647408998b 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 9821da4209a..73b79e03809 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 68adb8788bb..5bdf2954dc1 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 9bcde9a56b7..9b2f4c42897 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 a32de001218..99075319930 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 9821da4209a..73b79e03809 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 e28f2297f5d..7baba67e301 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 677df774796..9e928e0d91b 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 e28f2297f5d..7baba67e301 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 677df774796..9e928e0d91b 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 b3a4e1d5785..b686a499b59 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 d94d4fb48b6..b535a8ed78e 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 79537643498..4948ca1255f 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 d94d4fb48b6..b535a8ed78e 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 89c2ec0e482..14163f5ad38 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 8c5e9002b5d..7e7bd820da3 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 e174e0001b4..54ba8ad273b 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 54b32c33cd5..c3fbf87e697 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 1d27bc2b238..c945ac26e1e 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 54b32c33cd5..c3fbf87e697 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 4ca5aba139b..8edd5137dcc 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 ee0e6b44152..978785b3e4d 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 0a918a24ef2..4d7496aa20b 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 d72aa9cc767..1c582e584ad 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 fab5b34b734..9196368ed7c 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 d4fb96204a3..59b3e798c22 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 dea44a9a504..b213e597df5 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 208a0d6b75f..2edbca0f20d 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 5a70fb5ff65..5d9b4ea39f8 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 f26a2ac50d2..213ed71b92f 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 12f8db16398..f9d26d66a0c 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 0e56148ad14..3c9e83f6d46 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 5d7ce8407f3..919b81b06d8 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 355fa6e7920..b70ab64ad1f 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 3233adc3de0..72a45ac4e89 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 509c6a57b23..90ba5897781 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 7ac1c0131b3..9230ae6050b 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 802c0e1ac71..e9fa13d3abb 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 c411c970107..b9df7fc93c6 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 98f0f94ec22..199d3963d39 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 9a8571f1cc0..a2b10c7847b 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 f4148491e13..d4286d03401 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 9a8571f1cc0..a2b10c7847b 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 f4148491e13..d4286d03401 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 1f75e48ab02..09c2154ae93 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 f4148491e13..d4286d03401 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 ac1c0d9c4d9..61e5eb3eb51 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 f4148491e13..d4286d03401 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 ac1c0d9c4d9..61e5eb3eb51 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 f4148491e13..d4286d03401 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 b2232805129..2a9d33835aa 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 ae3e72a6116..a09ec04d90c 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 d18f96bf774..63fb52bdfe9 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 4c8da75632d..af223a1d07d 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 396e6865354..f4ddc4012c4 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 4c8da75632d..af223a1d07d 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 6dec71fec67..53386d722bd 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 4c8da75632d..af223a1d07d 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 296897693b4..1df8d818c76 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 4c8da75632d..af223a1d07d 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 2cd6c72a969..a3e663a6a11 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 4c8da75632d..af223a1d07d 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 acdb1e9e5d5..3039c7c018f 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 8f4970015a4..3e86e8e246d 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 1325f0216cd..0638b46b008 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 b276d4adc42..48f5a89149e 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 127f52b3025..fa24828f8e9 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 b276d4adc42..48f5a89149e 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 384b5faf7b0..48a5294dc2c 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 6e2eb2b6d57..b4d33980267 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 7dcb8243bed..04322a795f3 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 6e2eb2b6d57..b4d33980267 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 cd25164ccca..9f56f855801 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 2df63e9e4c7..07eb247904e 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 54af550f298..5a2011bc6b8 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 2df63e9e4c7..07eb247904e 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 e2f5575c7ab..14554bf3162 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 38973618ce8..6f06bc91704 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 83765d544f3..2d20c7bafcb 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 38973618ce8..6f06bc91704 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 755cd762bc2..b175f54905a 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 7d41903dbd8..d517fc56d1a 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 7df3d4bf773..aa1ed515227 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 7d41903dbd8..d517fc56d1a 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 8c136e89c35..c543fdad72f 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 2d02c5989fa..427e45bffe8 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 86ed705ae1e..a38d3174dc4 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 2d02c5989fa..427e45bffe8 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 eb3071c209a..d1d14e9a5dd 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 0034a96f1dd..8231596dda6 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 f64ac79580e..eec5ad138c0 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 0034a96f1dd..8231596dda6 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 e8bf5e98b3b..2b1c874a4c6 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 51b7246c548..fd5a8f748d2 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 60f3b868afa..ee219486566 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 51b7246c548..fd5a8f748d2 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 e1bf0c106b4..4e189ecd8fa 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 bf35c512018..52434cfe9d2 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 f928aac3ea1..5794d293df8 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 bf35c512018..52434cfe9d2 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 94131d3a852..8a3bc8ebd78 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 f54f3d3464a..4ecb07bc7a5 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 9158e7842ea..2cd05bfd831 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 f54f3d3464a..4ecb07bc7a5 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 4fd1c113721..c01705f2005 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 ecc2a3edae4..f6b5d64bcd3 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 ab24d2c629e..02b0e7418fe 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 ecc2a3edae4..f6b5d64bcd3 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 fd4729f7133..d3b9b069e08 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 960c198428e..4f8ef9c9dde 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 be913ab17ca..9937ac760a9 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 960c198428e..4f8ef9c9dde 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 f25e0a65713..6de11078835 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 f665187317e..b491bf68d53 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 3d46389ca62..9b4c7abec2e 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 f665187317e..b491bf68d53 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 49f68a819b6..a7430322298 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 ca9f8172f76..b4f45bffa1c 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 da711bfc9ae..bed071da277 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 ca9f8172f76..b4f45bffa1c 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 84eaf849075..21672e3a0ad 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 81774c49d09..c16f07b7a6b 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 786e00896be..2e9f514b08f 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 81774c49d09..c16f07b7a6b 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 cb5f7698753..cf5b3b37866 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 0f745ef57f0..cb5b29039ab 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 2e40930f4ce..d8c2e5f70bb 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 0f745ef57f0..cb5b29039ab 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 07d6ab58a93..d92d84341c4 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 76e7e1e9c38..b80ff8aa1a4 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 7b44f1bad24..36349da91b9 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 76e7e1e9c38..b80ff8aa1a4 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 74430526ec8..c18a56b9094 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 4ba2afbfca1..a39caf324bd 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 1eacb432486..e94ebca3aa3 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 4ba2afbfca1..a39caf324bd 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 cd5cc91c70c..bd85fc06223 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 2ecb4ca8e72..37427eb14a1 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 9e93cd583b8..675efe17443 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 2ecb4ca8e72..37427eb14a1 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 637662e14f6..16ee9754e78 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 79b3cba4159..02724a0f976 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 f9bd39a7683..fc771e40d29 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 79b3cba4159..02724a0f976 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 8f25eb8a545..28efb9ccd43 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 a3092e696fe..b64b1702439 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 c3b77c0b102..ddc3faf7822 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 a3092e696fe..b64b1702439 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 eb269baaa92..b92551e1824 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 69f88312ffa..639f3cc0d36 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 e84221d835a..9f4c7aa5131 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 69f88312ffa..639f3cc0d36 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 3a49311d91a..396dec40ff5 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 b864100f5e3..8eb79eb9bbd 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 2022c95ff38..f237cedbe45 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 b864100f5e3..8eb79eb9bbd 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 fc5a8e661bd..60397669061 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 9c979f6940e..7292416f8a2 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 a1af62a46b6..4b57122dbf9 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 9c979f6940e..7292416f8a2 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 20f0fdd6930..df3778f67e7 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 735c58f1070..006ab7aac26 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 d5b9c9c2c3c..d27db4f8eea 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 735c58f1070..006ab7aac26 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 7c98295a2b9..9c2becdf6a5 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 9a11ddc12c0..c506867b947 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 ae21cd245b9..ddf400c34cc 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 9a11ddc12c0..c506867b947 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 2762ba05d3f..b7916d4601b 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 9f4d4ca9739..28376c9f998 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 ec3f8990197..27aa431c368 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 9f4d4ca9739..28376c9f998 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 2762ba05d3f..b7916d4601b 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 9f4d4ca9739..28376c9f998 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 ec3f8990197..27aa431c368 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 9f4d4ca9739..28376c9f998 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 566f9b32875..8e255023e60 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 c30fc3538ca..c5565d0dbd5 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 600a258a20c..e116c46b1cf 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 c30fc3538ca..c5565d0dbd5 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 566f9b32875..8e255023e60 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 c30fc3538ca..c5565d0dbd5 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 600a258a20c..e116c46b1cf 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 c30fc3538ca..c5565d0dbd5 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 4f22a9d9dd0..2a3d33434a0 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 0f7e7367f43..3bf929deb41 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 46271ab3cf6..872709a9011 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 0f7e7367f43..3bf929deb41 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 686d8020aa3..963ae14f706 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 d898392b60d..5056b5e9a16 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 fcb851d551c..7fac41ad7c9 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 d898392b60d..5056b5e9a16 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 fcbfa6bfbfa..fdfb3dc30a9 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 6cf1c82029a..ea3ee3a01f4 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 c17692c8d4c..3b77a6aaef0 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 6cf1c82029a..ea3ee3a01f4 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 13fb6524527..75675030d0b 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 43aafd755f6..7dd9107a38a 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 522ff6b4806..02794aa6e92 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 43aafd755f6..7dd9107a38a 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 f1094b42da8..43af8c85135 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 10d34b9ca35..5ac8682b334 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 b3734ab3f3f..b45cf57943e 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 10d34b9ca35..5ac8682b334 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 f1094b42da8..43af8c85135 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 10d34b9ca35..5ac8682b334 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 b3734ab3f3f..b45cf57943e 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 10d34b9ca35..5ac8682b334 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 42da79ed99d..12dd57aca29 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 2e6bc90d405..8eb47265cdc 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 2f4f4dcc02a..47d1ffdde7b 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 2e6bc90d405..8eb47265cdc 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 6e973ecc4aa..bdd4b026bde 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 c14b3dc63b2..43bd896a537 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 94188675be1..f773c037d8d 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 c14b3dc63b2..43bd896a537 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 00000644fa8..b4527d4890b 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 0280a9dd005..24f52312ae7 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 00000644fa8..b4527d4890b 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 0280a9dd005..24f52312ae7 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 570d62a1dcd..098930b1a66 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 7667a1e4d56..bc0219183c4 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 679933914d4..f64b3bc8224 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 7667a1e4d56..bc0219183c4 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 686a00e0aec..520a6056141 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 51b7246c548..fd5a8f748d2 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 415da11b574..b617840d524 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 51b7246c548..fd5a8f748d2 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 522db09cf5d..c475e3577a2 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 3d73cf100f1..b281492e581 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 29cc2bb27c4..6004cc21ae4 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 3d73cf100f1..b281492e581 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 fc9f4960cb9..b188a3f4cb0 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 bfe55882614..816c2ca3d2d 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 da185cb2f57..b58190a41a9 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 bfe55882614..816c2ca3d2d 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 5a52a3520f5..9cb11b8e0b4 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 1251f1ab7f0..44cc70ebc3e 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 796f38692b1..b3fcb088b8a 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 1251f1ab7f0..44cc70ebc3e 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 3e3b1a90622..b3ed611a065 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 51b7246c548..fd5a8f748d2 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 9a4b39293a2..793ef242640 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 51b7246c548..fd5a8f748d2 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 f51d8cf81d1..895f615cb61 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 1513dedcf51..54ce8a5d11d 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 f51d8cf81d1..895f615cb61 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 1513dedcf51..54ce8a5d11d 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 f4e88eadbbb..3d110c77322 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 6c742584010..6ce34ae9eaa 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 f4e88eadbbb..3d110c77322 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 6c742584010..6ce34ae9eaa 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 8be4bf4cbc1..cd68d41c2de 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 91333ea6df4..93d4c4923c7 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 8be4bf4cbc1..cd68d41c2de 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 91333ea6df4..93d4c4923c7 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 18c6d6a0606..a5ca47aceca 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 2305eb4710a..802c297fccf 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 18c6d6a0606..a5ca47aceca 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 2305eb4710a..802c297fccf 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 18c6d6a0606..a5ca47aceca 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 2305eb4710a..802c297fccf 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 18c6d6a0606..a5ca47aceca 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 2305eb4710a..802c297fccf 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 8d3db0f1cb5..2d5a22521c7 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 a10da9a248b..0d18c320c15 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 8d3db0f1cb5..2d5a22521c7 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 a10da9a248b..0d18c320c15 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 f4e88eadbbb..3d110c77322 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 6c742584010..6ce34ae9eaa 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 f4e88eadbbb..3d110c77322 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 6c742584010..6ce34ae9eaa 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 a41bfa02f16..bb0a6e833fa 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 6518e95aef9..5d5040f9cc7 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 a41bfa02f16..bb0a6e833fa 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 6518e95aef9..5d5040f9cc7 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 6997f634fc5..a6a3ec77fd8 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 b12b3829d3f..5d88233d64b 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 6997f634fc5..a6a3ec77fd8 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 b12b3829d3f..5d88233d64b 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 8d3db0f1cb5..2d5a22521c7 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 a10da9a248b..0d18c320c15 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 8d3db0f1cb5..2d5a22521c7 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 a10da9a248b..0d18c320c15 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 f4e88eadbbb..3d110c77322 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 6c742584010..6ce34ae9eaa 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 f4e88eadbbb..3d110c77322 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 6c742584010..6ce34ae9eaa 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 8374a552ce7..9e5593ccfb9 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 4b6079a9a46..47056cebdd5 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 0a8916ac7fc..9c1238e6544 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 4b6079a9a46..47056cebdd5 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 f7b196ab69a..336833f2eda 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 661c7293adf..77e300d0006 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 3e8246ce421..53cd1731705 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 661c7293adf..77e300d0006 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 b9fbaecba0f..439511a2108 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 47ec21f1ddf..8585a651272 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 8233cf3fbe0..28d57679e40 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 47ec21f1ddf..8585a651272 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 39ea713ecb5..215d02e1321 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 7e1d6aed052..1129f0e102a 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 3bba06de764..e7c96adefe2 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 7e1d6aed052..1129f0e102a 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 866717bf817..e65d2f3778e 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 52a81abc794..f8eb364ed33 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 f20c5fc38cd..a88b98bc117 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 52a81abc794..f8eb364ed33 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 ff15e25c920..de77c80c820 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 87ab9e61d41..c913f944d87 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 b616879958a..4451c1eeebb 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 87ab9e61d41..c913f944d87 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 445a86988d5..4cf06b22963 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 572c21a2a26..a8763620d30 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 03a1193f373..51c918ebcd4 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 e93ad341e2d..7a6915fc041 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 d2dd2950e8b..fe766b5c129 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 e3d5f7b2e7c..eb5675f7340 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 aa89510f025..844ebdae282 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 84b4114469c..6b22da60ceb 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 4178814e53f..9124fb0fceb 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 84b4114469c..6b22da60ceb 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 28d79cc4708..c78c82ff3e8 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 dad8a861d19..cfd09863fea 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 aa2825b3161..6b0aa41d85a 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 59b48861890..cf7fa38718d 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 0ff8b4ebb93..5a1b9b2f35e 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 7f2e9fed64c..040bc58c01b 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 2c53b74ea8e..7aa00d400dc 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 3aaf7623fa1..c173c773945 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 af678c79248..1306d45be52 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 fe0c848595b..ac5df8ed64c 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 e51f6a6a198..df55724dd15 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 a262ec1ddce..89e49e37b0a 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 af678c79248..1306d45be52 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 fe0c848595b..ac5df8ed64c 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 1cf6ef6fd5e..f3e3768a9bf 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 fe0c848595b..ac5df8ed64c 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 3d16cc5324e..382e5dd86e8 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 fe0c848595b..ac5df8ed64c 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 cda1966fb42..fa6bc2b1c44 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 c837b6a2f03..228d01b0007 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 463ce016d27..65a5e50c5ed 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 e0cdec8ef4f..bb7d8b57dc5 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 3a4ef73afe3..7d2f57693a7 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 83771181382..33683b3e844 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 3956d9fdb23..55c36e63878 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 c837b6a2f03..228d01b0007 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 a4f47868da7..619cfaa6c0a 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 03e6f72bbac..a95e48b83e7 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 ba0213c736e..da68170acbb 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 81ccddfc06f..76541eaaf27 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 58bf4f9fb33..1e335d1b7fb 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 30d2c28bd5a..c4b2e07d8d8 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 801d419243b..d2cf94a4391 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 4336fb81316..a6b005fcf40 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 8b0988d8fdf..a833012771a 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 ceb3e18493b..31cbe6f7588 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 fa8667e39b6..465e9ce9a57 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 81011596514..c5b4e247365 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 813feb0a4d4..1149a690f88 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 bd677f1e743..a98b93d4349 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 ea1d9b7ad26..f41d3be41eb 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 72d09fb1947..7c8528093be 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 b47060de6b8..4443e39c548 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 6937c7602da..38fdc6bb55d 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 e8053dfa20d..fc9301df4f5 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 936c11c91ed..b1d9b8780f4 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 3573f994612..12e5e358f27 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 76b5f5920d3..d9234fb6028 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 4a0e7d759dc..1cce76bd54a 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 580758780c6..03b9e1cdd74 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 5d3a5ecba89..c8f71e3e38d 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 bf97a0233d3..513c057464b 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 adfa97b419f..29b4bf916d9 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 b14109d6494..68d01a9bdd3 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 f84b5e70e4b..ec7101e1f13 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 4cabde47f89..44cd8dab83e 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 8385510466d..d42014b875f 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 7b5e4654dee..101d73da4ae 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 c36695aefc3..eb158e89973 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 88610087094..907dd14b83e 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 f5c1d860b3c..1030415c8fb 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 8b51518e6b5..09cfb308e82 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 5c386f04429..20a1bb30f79 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 e70403e8d52..150c17a90ce 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 753e5af2b8f..fdd43049f33 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 3668144432d..e651356857c 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 d5ad5d36ef7..2fd4f6fb48a 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 58049767209..20a0f20505c 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 594eeaa20f5..8c33f5fbac2 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 4226201d4a9..3417dabd0f2 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 d2e0367bada..ae35c7e005a 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 58049767209..20a0f20505c 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 010c55c4876..56e2e352659 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 4226201d4a9..3417dabd0f2 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 ad4e9a7a09a..03c869136d3 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 3ac0fa510eb..1adbda0bc12 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 7730a750818..21fef58ab73 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 3ac0fa510eb..1adbda0bc12 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 d7b59881d93..5fd1ffff87a 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 f00731a04ac..53f3c02a2ca 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 a03061a0443..9a36c5bcf9e 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 6df42a746c9..05362af7187 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 58705c2d7ff..709ea4480b3 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 a8f5547c34b..a02c34d21eb 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 1a5bb1b997e..0ae2eb64233 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 68e05593166..4ec49949f41 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 49f447ffa24..1dadc458a0a 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 07b60e85e8e..e92af0109b5 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 b6f5357da8c..f1a35e58ab5 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 cd1b86a0029..d93e8e6ceab 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 6afb0f4a4af..cdea4dd47d5 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 0ccb12ffcd4..b70e339ad18 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 082271c066e..1abd811269f 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 7ae1e6f74ba..a7c92e4fb11 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 a8a0c32431b..08179dd1e3f 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 5561629b81c..fe422602420 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 81f5068ed03..c930e3e2cd7 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 ea8ac6663aa..fbb5c14b80f 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 c7ee8e61669..cce90fbcdfc 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 c27c743fe65..b6c615fd7c4 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 2aeb385acdb..7318424f869 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 462ced21bdf..9efaffa5548 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 20ebf44443d..19a7fa2fb65 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 c27c743fe65..b6c615fd7c4 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 ee5de18382a..2e348a165e1 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 462ced21bdf..9efaffa5548 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 20ebf44443d..19a7fa2fb65 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 c27c743fe65..b6c615fd7c4 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 ee5de18382a..2e348a165e1 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 462ced21bdf..9efaffa5548 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 aceca74a01c..6992d922d6f 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 79694c0d747..6ba754deac7 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 d54532d61a5..1be2f8addaf 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 3eda44a61ce..a24486ab532 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 4bdda1e3012..11ebea3a6ce 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 c82376f63a2..908b2ddf758 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 7b83f7abea6..041a3e28abd 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 84678aa72ce..4c2fa68a5fd 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 fcc38dfd2af..860a87da95a 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 abdd3d1fa57..cebb66f4685 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 870ce1479b3..775acb1f710 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 963a05ce300..3ef04df9566 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 bd8bcf8bc73..3daa3238bf9 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 daea007f009..1d01ab8af0d 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 97684631060..c72009a6f92 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 f3876888061..fc833193b23 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 60eed7a1bb9..6f952c2ff4a 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 4a95042416c..68e87208b16 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 013f8aec10a..9aa71580044 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 f2b2d69a06c..461b8f01e9b 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 053a2128516..fa931648bbb 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 aaa22bd4655..69e83699680 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 8e2c2c0e43b..54401dfb023 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 0c242b2a14d..5405b696b37 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 9d737b3e236..b730af4072b 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 aaa22bd4655..69e83699680 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 3654f8169f2..236027ac84b 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 0c242b2a14d..5405b696b37 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 dce342658d1..124dedebf26 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 072782735e7..7c9ddcd1832 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 dce342658d1..124dedebf26 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 072782735e7..7c9ddcd1832 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 1439732b7a2..17fddc90f67 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 af51c83fabb..6e3289ca209 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 1439732b7a2..17fddc90f67 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 af51c83fabb..6e3289ca209 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 1439732b7a2..17fddc90f67 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 af51c83fabb..6e3289ca209 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 1439732b7a2..17fddc90f67 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 af51c83fabb..6e3289ca209 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 c2ea511c96d..0f52abbe878 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 bc408025b8d..37bc36d6340 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 0d2f041367d..b48c94d8f29 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 7bfe444c1fd..0c08f304188 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 3c52bb25c72..69ea2bbaa71 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 b855a91d953..7b5eff8990d 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 9b145b29ce3..98f8a3b2b77 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 bbf51f89ffd..76776c1ba25 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 de91a456b05..51a8d73109f 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 3395607b186..2a17a77e3d6 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 db2aa1b9d66..d978bba4bac 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 4ae28597019..c7236ee68d3 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 8f011fa7c31..393f97df965 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 efa9720d149..a71f5dba65a 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 51bda1d766e..ee94c230a52 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 efa9720d149..a71f5dba65a 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 ca712fa1187..d36cc9bea8c 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 5e726972002..631bf31d3a7 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 77752a1620c..4d1d82573b3 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 45a36dfd813..c11a8420379 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 34bb46223ac..10e9f0784ad 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 6ea76bce00d..736914f82b0 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 a27695eead5..67f2276e350 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 9fd71df1dc2..e3ffd1fba41 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 e495c9479cd..0cf941716bf 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 9f7dbf51ea7..6482ddac297 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 51bda1d766e..ee94c230a52 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 efa9720d149..a71f5dba65a 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 caee4204577..7be1ef99346 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 dbc0e9d39d6..36e286b719c 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 0a434f81b21..7e19f66ff1f 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 c550d0475b7..ba83cd5100c 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 c120d9d4f00..4c0d3c6c3d2 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 2875f7f499b..785bd663306 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 40ff859d105..9b8f3fb9557 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 2875f7f499b..785bd663306 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 22ea88de45e..e6b2b7cf65e 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 6cc056fbced..7d14a7c9a4f 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 923d0308e5e..4e1ff762557 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 b7518ec4d0e..922e8e84d71 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 8c01ab81c6d..f148840ec12 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 cd516bef842..a0a0d45cd59 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 9508a213751..f042d1b267d 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 205ebbe689a..828766593ae 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 afcee0388a2..0f729c811bf 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 bf2507021c2..5c7ff34eeb8 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 012dd6c576c..32bf82ae26e 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 4b3ae8c8223..c905f2c018b 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 b07798ca3b7..8ddfe3c4fe0 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 68a60509161..98bba7f4dfa 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 3c89509ad9a..114ba56cda3 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 166b5a5aa65..140ba8a9cae 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 3a8c3562201..a0c00a852f0 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 78189bcb2c3..101b8d8b2bc 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 0be9899fd65..beddd6da118 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 c9442e3c185..b46cc4fdefb 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 971520d48d3..979cd33f452 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 a0bde506b52..c7e3cb95236 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 bee2980b900..b08fdaaa9fe 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 72e509063cb..b8e540d0d3c 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 bfd3cb15c76..d7012238339 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 72e509063cb..b8e540d0d3c 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 5d31a7583ba..b92ef807627 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 72e509063cb..b8e540d0d3c 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 3e1c0585cc4..acaefcb600e 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 3d71ab8d3e2..51d3ff070a6 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 23eaac944a1..b79772331b3 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 5ced9d9d660..388d02bbcf7 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 0b2bfce10b1..273efcf3f89 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 3afbb763781..decee23ea21 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 8013823ceda..f3209e07bd9 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 2a5e3f99e09..adf0a27616d 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 c600cfd81a7..ac74aea436a 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 92b2f4f27ca..a0756c4bf28 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 05b8430f768..86f7cf96f3b 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 b042c6fe5ee..91f4e0cf6a8 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 24607b785bf..51dbced6b9a 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 7fc3ee07780..2aeec87e62f 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 6755a98b78f..22b9451ae36 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 793ac3728f7..fdaeb868599 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 7f6459f789d..e7c57bc1aac 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 d4a961f015a..7d190f4b61c 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 6f741c2011b..1f7c25b4f0a 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 7c6c40b602d..0c789ff6368 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 7c7e07818ac..2ddc9792cc4 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 93359ed1ca8..fe31952d6c1 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 463c78db511..3a504d5f185 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 105115452a1..feebd5ee14c 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 77aa6f01639..82affe5f93b 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 105115452a1..feebd5ee14c 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 245838daaf6..5878fb103fe 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 e4a031db806..03bd0c8950d 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 3fe2c632419..12cbc20615f 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 2339923752a..a9f63dce9fc 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 fc503606b3d..c8308ded232 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 9b035df59e5..4b4e25862b3 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 d67be3195b5..50e725b1bc0 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 d89bbb32657..efe693fec6f 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 118ce311e99..1a02312c2ca 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 d89bbb32657..efe693fec6f 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 d66c7fdd623..8c909bfd53d 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 0da9cbe5a72..29682860287 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 b8fc69fbc83..01622bf23c1 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 9883ab77e72..52c8388931b 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 b8fc69fbc83..01622bf23c1 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 9883ab77e72..52c8388931b 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 b8fc69fbc83..01622bf23c1 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 9883ab77e72..52c8388931b 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 cbcc85285b7..9fb6355f86b 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 ac804c3cb95..84cee56f772 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 a9d2d9087eb..705699dfc59 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 2a876f49ab4..fa7a9ac30e6 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 a9d2d9087eb..705699dfc59 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 2a876f49ab4..fa7a9ac30e6 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 ac047887dea..0605198694e 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 627b9c73172..fd19abedfbd 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 ecbc4078ed2..0140407ab97 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 bf7f043aa34..14bb0cd506d 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 5fadfb271d7..a80b1d67ee9 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 19be8fdb4ab..4c0a79debac 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 df23eddfdd0..c03c2264f0f 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 19be8fdb4ab..4c0a79debac 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 ef046a37027..94321a91b83 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 19be8fdb4ab..4c0a79debac 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 b0438e265db..0dae1fe4954 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 ce75dd5bd63..ef5cd083861 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 b0438e265db..0dae1fe4954 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 ce75dd5bd63..ef5cd083861 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 1804cdbfd79..e464cd1b314 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 d4a961f015a..7d190f4b61c 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 e1ec278a687..7c8e46d914c 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 e493ac091b5..0b395e4eba1 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 f095c7e56da..a46eff6491b 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 549b7e4402e..5eb3bf5a0fb 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 44c7ac06fad..43428f150a0 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 f89671839f2..a3a9f91eddd 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 29a34080c50..603d5bcd5c8 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 677df774796..9e928e0d91b 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 0443a34d3fb..b6ae76218b8 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 1f372f86bea..2739b070e83 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 96dbc3f7736..b36e8bf06d9 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 194e3bc508a..2a8b7fd73e5 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 d501e2bdc6c..501bc6955b1 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 b451454e11e..cf5213514d0 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 202108fccc5..94402d2f4f5 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 694fac27256..53e35876a77 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 234e0bdcf77..25362049b2d 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 5d52be484b7..86762a0c2bd 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 08cbcd2eb2a..513a19c24e7 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 85e0c94ec03..cdb55b6678b 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 9a0bc8f4168..16068e03d21 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 cde44c52b52..1a404454b54 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 9cb5bbf677a..cdfd8191ca8 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 5e2058fed94..d1d6c698122 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 ab4b477c77e..a29fe72122a 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 dac4687a519..eafed3e51ee 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 ff1cf677d67..a4c2acf4201 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 90bb63b2799..5ebcc395970 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 97b940264df..133963e26f3 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 f0b28409445..60a6cf902b1 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 89b43f00803..c137d85f665 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 6e7b997a1f1..0ada98e4ef6 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 4cbd76b9ac1..96412535947 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 45effe7c7dc..f2338787938 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 9376b24b2c8..757e83123d8 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 df6082cdce8..16ab31ed7bf 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 1bff604e16d..bce7c70a7c9 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 c2ff9f7863f..75c68428b64 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 943be08488b..fdfb286a29a 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 456b6399c36..254bee6395d 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 943be08488b..fdfb286a29a 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 456b6399c36..254bee6395d 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 8c098ab89a5..9891750010c 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 020c77f8b2f..0dfcc7a1bdc 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 2b18454dbfa..6b1fefd83ed 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 020c77f8b2f..0dfcc7a1bdc 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 9941bc9e26d..d783152c633 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 1b6734d88a0..e671153aad3 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 33f3bbb4c5c..930028395f6 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 1b6734d88a0..e671153aad3 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 2f93012dcf9..61540ce5066 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 7ba13a67e1f..302e31d9451 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 f36ad9ec919..d425bddc315 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 7ba13a67e1f..302e31d9451 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 8fe530b3004..38ac406eb98 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 8da95770b7e..6b9aeae04a1 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 7a1802bab11..f9ab72e3ad9 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 8da95770b7e..6b9aeae04a1 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 61fe95897c3..12dfbe461f2 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 24a62ab7889..d81767059ca 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 7289bcceef1..850002c4b97 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 24a62ab7889..d81767059ca 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 554ea128401..77ad4a2f255 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 ae3116d7caf..dfaf0190026 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 7fd84463b0d..d89bbb6ab3c 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 ae3116d7caf..dfaf0190026 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 35763ff655b..f0724156eff 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 345bbc7f39a..b6289f2bb76 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 dbd82cba641..730edd5adbb 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 345bbc7f39a..b6289f2bb76 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 3369ea06db1..786bbd26ade 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 857c9b6b5be..d30380729ff 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 ee07a283034..ab857f2cbc9 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 569ed9cf613..97e3a3e876d 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 4ebe1453604..e3a0802298f 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 857c9b6b5be..d30380729ff 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 9b2c410cf27..d4abb2b8515 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 569ed9cf613..97e3a3e876d 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 86d40833989..34c0c964baf 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 857c9b6b5be..d30380729ff 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 96119663ce9..f6f7c383330 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 569ed9cf613..97e3a3e876d 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 2854a539dd8..548a5417e7f 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 857c9b6b5be..d30380729ff 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 81d1068d87a..4957293cecf 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 174223adfbc..de0d8b08415 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 805ab399e02..24d2cac4e80 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 857c9b6b5be..d30380729ff 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 4ac414299d8..f1f445f4a7b 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 174223adfbc..de0d8b08415 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 b73a09a38f3..03da855e7b6 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 857c9b6b5be..d30380729ff 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 98396112e06..efd19b9f9cd 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 174223adfbc..de0d8b08415 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 a48d2f3af18..2b4d831c1ea 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 7004b8b678d..26beb019332 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 73c50c9cf36..76083394487 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 92aa0f23d97..30c12914a65 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 a2083436afe..c96b27174d3 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 7004b8b678d..26beb019332 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 32ef3dcbd26..6192ecfd875 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 92aa0f23d97..30c12914a65 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 5fcdf19386c..8bb447ee9d0 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 7004b8b678d..26beb019332 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 d31b0383d8b..9bba8afe5d1 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 92aa0f23d97..30c12914a65 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 67dbf619ed5..e427ef3ff55 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 857c9b6b5be..d30380729ff 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 b045190f6ea..ff476ffcf28 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 174223adfbc..de0d8b08415 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 cbdcd5b3f2a..673d5c975ce 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 857c9b6b5be..d30380729ff 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 29a242804b4..b7b54d6ac2f 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 174223adfbc..de0d8b08415 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 44d9e5495fa..f4bbdcdc966 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 857c9b6b5be..d30380729ff 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 252d374e827..aacafb76475 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 174223adfbc..de0d8b08415 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 188d4463a87..1a676196743 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 b0df1077558..4dcb1b16d4e 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 f9c204b4293..2abe18f0500 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 ef5e1713d5c..01badd98087 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 63831757f20..5f26f58b558 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 d4a961f015a..7d190f4b61c 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 435ce84dd12..a38cbf0788d 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 d4a961f015a..7d190f4b61c 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 435ce84dd12..a38cbf0788d 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 d4a961f015a..7d190f4b61c 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 70cdd2b2ccf..8a9fce40c1d 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 d4a961f015a..7d190f4b61c 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 7cdf24551df..c663f3ac4a0 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 b729e3281d7..27f95273143 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 3b2046f7232..1f677a132fb 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 b729e3281d7..27f95273143 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 99e0475517c..c72b70f77cb 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 b729e3281d7..27f95273143 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 820eb950c8a..f4749ec5e1b 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 542d27fcfbd..62e78a10933 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 b843c0c1529..995139ec70e 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 542d27fcfbd..62e78a10933 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 4d54ff8ee6c..4231817da6a 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 542d27fcfbd..62e78a10933 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 bf11b42630d..69813f3dc5e 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 31cf7ca67e6..2f42055be78 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 41e18d7d1ce..87d00120424 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 31cf7ca67e6..2f42055be78 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 dd0489bd485..08e1f5ae45a 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 31cf7ca67e6..2f42055be78 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 762539f57c2..5a3d9f610e7 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 3d50c8afbf0..d8107e6c54b 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 99534443663..f72633b7f1a 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 3d50c8afbf0..d8107e6c54b 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 368adcb06ca..3212078ffee 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 3d50c8afbf0..d8107e6c54b 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 c58578f240d..30a2081b011 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 e9819e3391d..32a96689f26 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 0837a90bf11..62d7af7c298 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 e9819e3391d..32a96689f26 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 c85ea50dcc2..5b51368fbd7 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 e9819e3391d..32a96689f26 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 260a724f0ac..7a003e046bd 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 e9819e3391d..32a96689f26 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 0a779ccbed1..4ee545f96b5 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 580bc9c412e..e19112d3715 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 396fcd7e782..bc9503a51a2 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 580bc9c412e..e19112d3715 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 cf7f6c71ce8..250bab75dae 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 580bc9c412e..e19112d3715 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 f605352e05a..3bdd1cc991f 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 f9534c9372c..e3c8c3c18cb 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 01c7fd6333d..1018d521742 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 c2a3ee193ab..bdc338d854e 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 13ad3404f21..e57c086653a 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 057f3336c58..2cb0a46afb8 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 5d830e35720..fa17d6d5308 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 58049767209..20a0f20505c 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 9f2460cca53..808db33c35d 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 4226201d4a9..3417dabd0f2 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 9b80af1f51b..5441b7dad01 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 d16aca94b59..91adba38921 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 6bcce241d8f..fe95f492669 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 24a9cccc1fa..0d25a9a51b9 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 42079d9d1fa..ef0b8c6c826 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 4a05ebd38fd..eabafc2e02c 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 d5d036ada98..998eb408e30 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 fe092913f35..aba0ca775d8 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 fe80f36a71d..ec7e28c43e9 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 8fadca47725..b1cc8271cb1 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 226f90c97da..69ddcb50878 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 643b04e103c..10a71a2d5a1 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 7b86e7a15b3..30684a65929 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 4a05ebd38fd..eabafc2e02c 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 42079d9d1fa..ef0b8c6c826 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 4a05ebd38fd..eabafc2e02c 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 159574ccdd3..b1276bba908 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 fe092913f35..aba0ca775d8 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 52be90dd05f..c9975e8ea2f 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 8fadca47725..b1cc8271cb1 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 3a504ba6d0a..e6c5ebd8820 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 643b04e103c..10a71a2d5a1 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 15d7f1ba897..b9df2d9d830 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 4a05ebd38fd..eabafc2e02c 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 c766b76a8fa..99172dd7f6c 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 a0d5a90d7c1..7fcb8e9fbfe 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 631b4e0b87f..f14fbd486ed 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 83ea82c4200..601f5b7ce91 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 53b6111318c..0002d352aeb 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 629eb119b42..cc73c298fce 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 9d9ad78e820..fe756941e63 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 47346618412..b1cbd359f36 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 5d02ea2dcaa..b5e41397e34 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 24a9cccc1fa..0d25a9a51b9 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 63c8831e60b..e34c3ca230c 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 668ce7c44ca..cb5c5065c34 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 4e50bc15751..bc7393d7885 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 dd3f29f7f04..954327c1b65 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 5106b5932b0..8e72d6a20a6 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 9ae1e149b1b..197e6c1010d 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 4c76fbf428b..ca86a413b76 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 6cc27b99bef..aa10aae9a07 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 03fa77523ac..1ab75260ae1 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 0eb7f795ab1..882b03883d1 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 0f6d00538a4..7d1fa8e4d05 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 d0ba3c739af..6135683fe26 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 f78494ec77e..ad4bbfda02a 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 24a9cccc1fa..0d25a9a51b9 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 5b1d549cd50..f6af8897ab5 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 24a9cccc1fa..0d25a9a51b9 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 8e3c02b9d8e..735798cd0cd 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 24a9cccc1fa..0d25a9a51b9 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 5854eb1fe2b..52387e5e585 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 24a9cccc1fa..0d25a9a51b9 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 ebf6367aae9..591c4e22401 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 01cfefe391e..95caa19df3f 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 64a0ebbba8a..0355800f827 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 172be2e2d4c..089801082da 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 29f4b1196b9..2f559cddab1 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 a430d67e36a..241122599ec 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 a6502df2398..44a709b527a 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 c8fb8001f30..914be158444 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 231f9708275..618d610e038 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 3f62569893e..9ea5871378d 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 4ff6c06458e..efda431edee 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 6fc3573a9bf..ff4a0bcb19d 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 02df1f74e47..b4815aa78cd 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 5d529900ed3..5ba682b9945 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 93ade6889b6..4cc5866cea5 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 ef1325d7185..51dcf110f0d 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 6c67430d9a9..d83407486db 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 3b7073599a7..2dc30c39e7c 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 a9cd6a1d3c7..476fd00bbee 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 2bc813490b9..ad3ae1e3441 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 171ef6ef4aa..2b7a8781882 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 fa123898168..2f66d1458a8 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 17d49d71ef0..3e96d0df3f9 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 360a417f604..4829fb23dce 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 b6db5c62de9..e660a170314 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 360a417f604..4829fb23dce 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 34f38205134..0fdc122a090 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 360a417f604..4829fb23dce 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 67671073589..f6f329cdbd4 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 dcee8e144b4..133a8178d3f 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 571ad9299f5..83d1ace75f7 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 dcee8e144b4..133a8178d3f 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 77fa316ef18..dd6a1f0dc8f 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 dcee8e144b4..133a8178d3f 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 acaea002029..d4b3b9528c3 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 07c85856e09..46a322ec26f 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 fe959ac293e..876c13cfe98 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 8f184661303..5d354c97b86 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 de7e9dee6dd..6611ea16f1f 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 6cae6f59829..dcc909c50c2 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 8e605595b31..7d8a45ee202 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 6cae6f59829..dcc909c50c2 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 843027d396c..a8a32421fa0 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 27acadfb465..592a79d4705 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 a87ad1b7ae9..af37d562706 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 9ddedfe94d0..8fe623ad269 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 646d920b4d5..7e7f0a7f917 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 f713b6b40fb..879a9e0863e 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 6327c63c0fe..8e978169eed 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 e14bc29040f..f7392fe95bb 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 545d642d01d..bbb273f3a32 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 0d3d8822971..489bb9e934e 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 7388223d5e2..86f5cb5bf60 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 efdae15d1bb..20395599ffb 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 f8609671e4f..9901be51dc2 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 6cdc87c71af..9f0f65810e3 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 7d2a18591a3..123049e20f8 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 5b376dd0661..e28256c93e4 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 39facf98f30..697e59f478a 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 962c269b6e1..82687bb7ba3 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 85eeaddbcfc..e7bdc5a0613 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 c1128e10a0e..d255b876db9 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 721b0ca3426..bcb47ca394e 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 4d034bfb77f..dde19b05f8f 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 096536e1d2e..c9f97c92c3f 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 05111554925..ef79f3091bf 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 300e0d7ad85..160f41462bf 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 3d4b1097f60..0bcf19c4f2b 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 300e0d7ad85..160f41462bf 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 3d4b1097f60..0bcf19c4f2b 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 300e0d7ad85..160f41462bf 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 3d4b1097f60..0bcf19c4f2b 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 1d2cc10f59b..8aaf98f4942 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 3d4b1097f60..0bcf19c4f2b 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 741919494eb..816e4f1407f 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 3d4b1097f60..0bcf19c4f2b 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 ed3e06b36cd..7244ee6d084 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 75c1b833963..c2d57be54b2 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 7f83b983bef..760ef60f6e2 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 e5c665dd399..3ed2892f7dd 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 da565d62b54..d0458fc5287 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 e2489a39ee4..05471027d1e 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 e001b3b7eed..0dc8b453193 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 c1128e10a0e..d255b876db9 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 dab3f317d0f..c00b61e991a 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 4dce9272988..f70f727f8e7 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 7e8f7ed86f9..9f67c030a2d 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 746e80f82c8..ca8be58e9f3 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 5d357f9b99d..90a5cc2575a 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 055bba550ed..6f477c16959 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 c6d508288e5..97a99411a0a 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 2aff6801297..76a54167486 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 5bccfce5678..ee12affcd7c 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 f684c3194b5..3f543e21dca 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 b1781c9db22..6db14769d01 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 b110be4b42c..407bca0ef8e 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 2cef6597f5c..894b0d24e98 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 e3b289b4dc6..1d32ca826b1 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 75768450cb7..68d37bf0410 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 b110be4b42c..407bca0ef8e 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 ca90780fbd0..4e6fa2cfc85 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 b6b3b5460fb..deb78c4c73d 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 59ef3632ce7..47822eb5ef5 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 3871aa95887..fe34ad8bf6a 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 e33e1aab947..77c316ecb5a 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 017d276b9af..090f036209a 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 2ae4875908e..c5dc0436972 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 017d276b9af..090f036209a 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 b769c31e3f0..376ee34c8ef 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 af3cb68cf34..e0a3931cf51 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 b1781c9db22..6db14769d01 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 b110be4b42c..407bca0ef8e 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 858d2eb5e8e..49a9f71e3c4 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 24ca8e32412..718fe8acd47 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 589f1bd6a4c..5b609182392 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 cc6daf0a2aa..11a248d2d1c 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 bf3f75f9bb2..a217e89605a 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 9b0901f1278..3feda8465f0 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 3cbf70af9f2..714ec00e3e9 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 1fde36a5f7f..baac860f681 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 04afa31f770..c5ec323fa89 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 fea79646339..96d678d44cc 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 e4f97bf838c..8b6773fc831 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 1519bdba714..de6b34f7edf 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 75206fe92cb..233d1c0a483 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 f1fbbe22b30..6fa1588b661 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 b04ccbd9197..fb7f8883d7d 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 d01c2787db9..7b3e046020a 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 d9ee8608f62..d93f5be8619 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 026b201792d..ee704e40f30 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 dedef01a102..b3f2a4a6420 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 728de0fc97d..a4ae0dd7fae 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 3f4e8bc5beb..7e9b0932575 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 c207190e5e5..3aee9a45b3e 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 12e442872b4..bd5ab21addd 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 73b1ecb9570..a96762c2289 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 df813047dab..69f6db5c08d 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 0d3243dd48a..54a7c334b49 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 32c2e590449..4967bd363c5 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 e738bb304c2..8707f1d64db 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 25c8e04be69..736c8826c3c 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 2b13e438f4d..644caff4361 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 760709eddd6..3873d819590 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 f243cc5075c..2ba5ffebf5e 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 d13f2a5d8e8..64eb2abae36 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 4f81e00e89e..b5a43c01d31 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 5f11e63d9ea..7fa930f2431 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 01011e71802..8f4cc1f9fe5 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 6e3aa0dd1c6..bbad3a90df0 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 47964400bdb..d4c3fbd7134 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 4349773bfcb..281bbbb86a2 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 47964400bdb..d4c3fbd7134 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 1eb93eddb22..efac76dc7fe 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 b664ddb8c91..2a35b2ca45f 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 b9ecfbfc178..0afc361bae4 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 18ec3fd0faa..72ef00f07d5 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 abe5a42c676..2cbf2f32d56 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 d138b9701d1..d45bdf19d66 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 4e9779735f1..2fd9d72f32c 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 def9fe4293c..e9c2e29fe85 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 be90c521249..47c357fd4c7 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 7ce81b13657..b7e14fe3244 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 6271b376bb8..9981723146a 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 0cc54d4ed2b..3498617a7d6 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 7c1db1e1b23..3fcd6bd8f78 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 d23ff5c5591..9424511d174 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 055396cf197..7982ab93765 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 ac5900b309e..bf88b46bd36 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 e1753ba2d77..e3946368595 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 81e82f977bc..b82d87095a1 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 8d818c4b3a6..519054e1271 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 5bdd74731ad..5cf3817de84 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 bfd908c5d29..2db2bd9356e 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 81c23befddb..060c3c522fd 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 eb113da930e..f0b33b6303e 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 250ef466a23..dd8ca4cfe97 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 33bb541c6c5..70dc737119c 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 bc5160ec417..a6ea5b913d5 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 c9873245d85..11858f7c08c 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 a9fb0f3cb8b..b616b837bd7 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 09a41975e4a..dff767f80a2 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 365c0c287d0..4e79931f059 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 1c243b15650..f687769aaab 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 ee1649eef62..e2b42d0b09b 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 39bd4076ba2..5ed66d9b10b 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 47d880c4127..62e9385a7aa 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 1feae63bd54..8635d6399a8 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 8c96d320a98..eafcc2cc743 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 4b10376946a..313d31bb2cd 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 bbc89264d90..94737d77f60 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 737f717c6a8..dc52ca7ba46 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 69d21b96c2b..639962dee17 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 4e82b4ea030..6bca117ce92 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 fc042b2d1d4..d1a4176dec3 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 ed5cdd0a1ee..b511d138631 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 4f48a3c576d..7b600b24dc0 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 12fd1c1b6a0..125e7c0e029 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 e3338219c84..66441f584d7 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 c381feca621..e290a858ddd 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 f5fc800e943..9ef2a2b31db 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 8ce04ee727e..7ad86178f78 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 d3e9fcc8ae9..2a64805dc3d 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 a2e8db4893e..44a0591174a 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 dd6116e8a1d..e2556d67961 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 a244a888d59..d2c9cc2e2c4 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 154e5c9f7b6..9672745280e 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 dc48cc4dc1d..1aa2acf64ed 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 f4388ee5a7f..f18849efe09 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 268b8a3baa0..53126f4db34 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 632dcc4b502..0fca0586323 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 a9acea700ca..94596f8365c 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 276993a72a4..b4c69802550 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 fc3a07250ba..67a8e085c8a 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 da26d23a73a..8a4c290a120 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 639aae17c63..f2bb9c5caf6 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 979fad872d4..9c9e09eca69 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 a9ba56e4c01..83f96d812ea 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 df9c69a3987..cf2f15ea422 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 75ac27bfe59..23ba973e94b 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 56a41a29d1f..a8307f72fc4 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 e4a7c1d165c..f35180f5862 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 20cba3188b2..af943ef2905 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 ba68c172b8f..0c930b448f2 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 613e8f6682e..38b32918463 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 0dec2273004..935143adf42 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 f8c6efc107e..fcf9ac43fcd 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 16dd01bc124..2b3fe2acde1 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 15cfd586b8b..46362a9fa9b 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 1bc661e4950..a08021b6241 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 15cfd586b8b..46362a9fa9b 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 e41364588ae..e638fdf7204 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 3eba2a8dbe8..dfd074d89f6 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 e5585c4b86c..c4f9ce40b3f 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 be3161675a5..c57747cc844 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 9abb7e8176b..08288c7825d 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 335a8d0ebfa..4bfd3f3282b 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 b82e141c3ff..0aedebc35ba 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 adda84d3b15..48dd0b68078 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 0cb4c3970ad..49248d943ff 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 b0e323e4131..820acd417f3 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 06dae00a8b6..817bc81cec4 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 c37167c2d3a..a6c00ed6064 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 bb29c40d68f..a755fa55933 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 0ef71de26d6..c965d036ee2 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 3533e71e658..75b75149935 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 7d6272c8396..eed7ca896eb 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 07b18f00673..f942cf7ef15 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 34eface186e..df1a0651804 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 05e7ec92ea1..24e12ea1b9e 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 0c44c7f578f..fc00e79e11f 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 d4c00be5e03..2fceb1ba5f8 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 fd4fa7bda8c..440e62c055f 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 defd07ee88a..8ad5cfb2b2c 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 28f2cb3e595..b135059354a 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 f89520423f3..eea56b08706 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 d618996c557..66c9bf9fe74 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 c1e60a8c70f..1ee441fba2b 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 b0b2fe8dce8..03439126c72 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 ecabbcebee7..e53b31f16bb 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 936c11c91ed..b1d9b8780f4 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 2260738f4cb..d80260db6e5 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 48e2a1d49fb..f121c925640 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 c557d7abcf1..4c09e8aceb8 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 40b23ea9867..c3515e9b776 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 07d769ef3be..daade4e503d 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 1e1306b91ed..2aad223ef75 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 16c6d630ba5..c17f8c87dc7 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 3628064969b..911c1b8804f 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 01bdd618e36..66357bd6661 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 21da72f217e..622553ec499 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 16d2d9cf63f..c941005e42f 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 090835559bc..3eb198ed593 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 95ce0170c97..e0a3a5ab853 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 f2c5ee77f98..940b5e30ea9 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 560c2c55bcc..d7f59d0e317 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 d027e48d30a..c721b8393ed 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 f182f0b5134..02d30bcc107 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 d027e48d30a..c721b8393ed 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 f510eda7ba5..340284f891d 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 cb98a11877b..5a3c23d457d 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 56ffefe51da..0a96a174e13 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 da9ddd9760d..1682d7098ae 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 cd717e3a507..63173415946 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 cb98a11877b..5a3c23d457d 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 0139acc595e..ce93ffad59b 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 da9ddd9760d..1682d7098ae 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 d81d8178df3..c25b7bf065e 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 cb98a11877b..5a3c23d457d 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 8eed032a8d5..41db668e053 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 da9ddd9760d..1682d7098ae 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 75495663ade..29806323d2a 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 cb98a11877b..5a3c23d457d 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 2d7b622a4af..ead66a0a879 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 da9ddd9760d..1682d7098ae 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 58f2e066591..dab83dc0a5d 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 cb98a11877b..5a3c23d457d 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 6af910b9de9..f62e5a68447 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 da9ddd9760d..1682d7098ae 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 ffc07288506..dc393461b74 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 cb98a11877b..5a3c23d457d 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 ebe88c9bd23..52d0ff8267e 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 da9ddd9760d..1682d7098ae 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 c3097bb6938..247a68954ca 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 cb98a11877b..5a3c23d457d 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 e5e184436b2..b34780aef3a 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 da9ddd9760d..1682d7098ae 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 558aa1bf676..42032d61cb0 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 cb98a11877b..5a3c23d457d 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 6acdfae989d..155a7adaa8a 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 da9ddd9760d..1682d7098ae 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 709682078ca..c41589d461b 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 cb98a11877b..5a3c23d457d 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 e6c2726f82e..ca9708a479f 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 da9ddd9760d..1682d7098ae 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 f4fd6c8df68..42514804d03 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 cb98a11877b..5a3c23d457d 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 095d944b146..c84c43fa1c8 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 da9ddd9760d..1682d7098ae 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 55daa5ef524..b58b8247a73 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 cb98a11877b..5a3c23d457d 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 3fad5ac40c3..ae5ae131436 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 da9ddd9760d..1682d7098ae 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 abb07aec453..2aa98654813 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 cb98a11877b..5a3c23d457d 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 553c427791a..726ded31c93 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 da9ddd9760d..1682d7098ae 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 93eeda183b2..470c6b297b3 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 cb98a11877b..5a3c23d457d 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 01218f5ebcb..b3f49a3850f 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 da9ddd9760d..1682d7098ae 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 e1f188ffe06..22268380745 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 82525a56ce0..622c684b1c9 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 53f33eab3d3..872bbf5ee4d 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 894d2ac7842..25db97b7942 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 337b9b36e8c..833fc3a8208 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 894d2ac7842..25db97b7942 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 fe30d842899..d5307791656 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 894d2ac7842..25db97b7942 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 01e201a3dea..23cb4fc594f 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 894d2ac7842..25db97b7942 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 79cec423781..13d8d87d49b 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 894d2ac7842..25db97b7942 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 b8413ea90df..825c6cd1a17 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 894d2ac7842..25db97b7942 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 00f41bc4e0d..74e49bfee3f 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 894d2ac7842..25db97b7942 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 9db5805f67e..dadae9464b5 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 894d2ac7842..25db97b7942 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 d851b3a07ed..89b123e4be7 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 1e1306b91ed..2aad223ef75 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 925e15c76ef..fcd328720cd 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 3628064969b..911c1b8804f 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 5d57342b326..00ce6fd6865 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 21da72f217e..622553ec499 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 8adcb3cfc26..9d58563fc2c 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 1d357a15409..6ad9c76ea69 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 9ec218e93e6..86d0ffe6bac 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 a1db5c22977..11f5eb40acf 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 9229e2df570..b03a7a781ae 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 bfac63a890a..097948c8840 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 5a8691e1db2..1917a8a8dfb 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 7b8ea6a423c..df921408d9c 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 88f6a316331..53415539540 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 1e1306b91ed..2aad223ef75 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 3ee04da51c2..6f8c9b2d3f1 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 3628064969b..911c1b8804f 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 b92ff309207..d046fdddc57 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 21da72f217e..622553ec499 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 227335e7db4..ea5328d6a0c 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 1d357a15409..6ad9c76ea69 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 1c8c701f5ae..82ae7780214 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 a1db5c22977..11f5eb40acf 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 1716f07b285..4f249f43f97 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 238593c52fd..eead6d22bee 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 1d7b8a64c8f..ee9b6ebdbc6 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 b8a7c5a6654..9fa87439021 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 f0f80793636..db7b049539f 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 238593c52fd..eead6d22bee 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 e18dd2c2dba..6b39879555c 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 b8a7c5a6654..9fa87439021 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 4edcc25831f..abb3728a736 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 238593c52fd..eead6d22bee 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 2c961914f36..bf324c30d63 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 b8a7c5a6654..9fa87439021 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 3217627f198..98c24c8a298 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 1e1306b91ed..2aad223ef75 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 abdbc2754b3..f6b5564db2a 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 3628064969b..911c1b8804f 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 5e6d76f9151..90e75822b2d 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 21da72f217e..622553ec499 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 81dec6a4bef..c2c221666ee 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 1d357a15409..6ad9c76ea69 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 553cc2af9ba..2629ae9a301 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 a1db5c22977..11f5eb40acf 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 834c0a502a5..0bc582aa92c 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 1e1306b91ed..2aad223ef75 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 a835b2fd0a8..0bc167638f8 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 3628064969b..911c1b8804f 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 5e185257f59..767f55e0c88 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 21da72f217e..622553ec499 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 80105c7d5f7..1dc7b9dd443 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 1d357a15409..6ad9c76ea69 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 1b7f14c5ed9..d73d8744ef7 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 a1db5c22977..11f5eb40acf 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 9379600b017..7da8652f144 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 16440278277..d34b692697b 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 0f313d81e5a..da7ae7f0fc1 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 40dde2012e3..a018f80a76a 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 1ef8c13bfa0..4a11df083d0 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 6e4ff5e5efa..cf78ab1856e 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 654438ee085..40d9b726537 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 b24ac1d818e..a7609b071a2 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 4aebad994da..cabe27b48f3 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 6e4ff5e5efa..cf78ab1856e 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 dbafee219e6..9f91c6a5cc5 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 b24ac1d818e..a7609b071a2 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 b8943b2c879..784ace08606 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 6e4ff5e5efa..cf78ab1856e 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 d4590abacab..d471301bb21 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 b24ac1d818e..a7609b071a2 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 ec89948cbfd..555ad87354c 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 6e4ff5e5efa..cf78ab1856e 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 9c4e489dd50..6afee4bb119 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 b24ac1d818e..a7609b071a2 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 ddd142ef678..96ff26a2a0d 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 6e4ff5e5efa..cf78ab1856e 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 d97afcfb0bc..104e1406418 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 b24ac1d818e..a7609b071a2 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 634663b59a2..abdbb381bca 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 6e4ff5e5efa..cf78ab1856e 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 dadf8993f6f..a567f4c049b 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 b24ac1d818e..a7609b071a2 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 ae67a180b0c..28c8813fa9c 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 6e4ff5e5efa..cf78ab1856e 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 53740f0b435..45dee4b7caa 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 b24ac1d818e..a7609b071a2 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 02496cf0611..2a5220f6d29 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 6e4ff5e5efa..cf78ab1856e 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 85206b76184..2883f6ff6e6 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 b24ac1d818e..a7609b071a2 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 719889f36cb..d8d1a6370a3 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 6e4ff5e5efa..cf78ab1856e 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 e3f17e8c450..479cc1cafa9 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 b24ac1d818e..a7609b071a2 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 7af9098050e..e63c5a28d98 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 6e4ff5e5efa..cf78ab1856e 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 a1ac8d88d84..879088f5f97 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 b24ac1d818e..a7609b071a2 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 e2b904ff28b..72e1645fa61 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 6e4ff5e5efa..cf78ab1856e 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 7dc8e976e9c..8df6b149bd8 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 b24ac1d818e..a7609b071a2 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 17eae805c16..596b1fd95e6 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 6e4ff5e5efa..cf78ab1856e 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 be3b299d5ca..b6a40a4ff12 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 b24ac1d818e..a7609b071a2 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 5748b3414b0..d9dc3eb7237 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 090835559bc..3eb198ed593 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 2334b749259..6587f227fc5 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 f2c5ee77f98..940b5e30ea9 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 62932273a9a..5245ff39b06 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 ebb756c03eb..00b95d13a3f 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 0d3fea562bd..6dbd06890e2 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 6d89e49fa95..4b5cdd8ad0a 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 4286b29a0ae..2c999f5399d 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 a27c4cba0fb..32b7dd560e0 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 084be8902e6..d9e2576b919 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 4b91f7cbffb..911173591c4 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 8926a341138..dc744be32b3 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 817caac85bf..23a7cdcdd85 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 84690f965d4..424693cf266 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 563daed6f4c..0d209bed613 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 840a5bb04f1..4987ae3b657 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 59faf6cc541..ffe34304432 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 ec92a94a4a9..d662fb1db0c 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 e431457b81a..6e0970683e6 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 1e3f92f3b0f..a572ae54d89 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 92a7e30bdf8..6e58e172331 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 368f421d6fc..96a333d4c26 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 358b61ab2fe..e4435cc963b 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 218b40f65e2..f74d1b7c856 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 57413c02f7d..222c29905de 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 0c0f2a374d0..0c36fc658bb 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 c8a90126ff9..e152ba3162e 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 dbd2ab7d9be..397cfd57591 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 68f66287474..04831a08e35 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 3cbdc7a8212..7dab93547ad 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 5c15b9c79e9..dcee9e42084 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 50aca6f7ba2..3017da023d1 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 40b68c0ff03..63b338940a0 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 16401b0ab97..c62ca01e61d 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 f3f3ee714a2..3d40787252a 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 f6652316728..e7930aa8d78 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 23e5e9744d0..02724afb6a4 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 145a9714d66..25700b2f55e 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 5e910018bb4..329686302a9 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 a1bfd3d9ae3..29fea00827a 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 f809a19a813..cf4be491c18 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 6c7e7a64027..e3d04ba167d 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 9ae4b7defa3..e607f9bbb0f 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 83430163292..91fe8048be6 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 97d470b515b..1f77a70d48d 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 069f17531e1..e0d79767ccf 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 badca4d498d..b119f1c7b7c 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 772804a9fdb..e416b7c09db 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 7b11f019c95..41c061500dd 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 c90d70dde6a..0d3de77405f 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 9897d88e54c..a9d9b9e6c36 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 4e822fe13a1..35c58d922ee 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 6503749d94b..53efdc051d3 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 9184b44a749..53228a993fc 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 0a2c21df4ed..deea1e25dca 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 5d26a98b985..2ad0e6d6dfc 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 5ba5bc5eddb..91a94004319 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 57181920ea8..3969039b883 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 a4d75ca8178..d58354de5d0 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 8a46386557c..1ebaa72131a 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 c1cc34f4832..f9650300c1a 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 f413aa1d481..afd24d01d7a 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 48ddef63876..1621818abd8 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 1440d68e654..91ec0d354d7 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 aad869887d9..77cda8e0be4 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 78f8950ef28..9ff33b1948a 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 2ef61ffe679..b0287a5e3a5 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 5cb90bbeb7e..d0bb8382fa4 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 d37114e3cfc..6359ca23381 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 717bc138782..2dfcc5c6546 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 cab42838bb4..06acdcfd107 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 f986f1d1302..40256d89201 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 e0cc7ad9340..98320b70568 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 b30436ab325..3b45ba3b22d 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 d95f7eca9cc..3365ea2da80 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 a4288b4fbc0..fb1f05c6f0e 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 e0cc7ad9340..98320b70568 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 1ffeef53b92..d683302a149 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 a2fd056bf7b..7a12274b0aa 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 34b0ab4817c..d18ac61516b 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 06932c5e18f..8425237bd68 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 7dad19e3afe..920fd21c783 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 06932c5e18f..8425237bd68 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 f488ee7ca30..c25da6a68ce 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 4fcbfc4e463..958e4a4878c 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 61bcc8555dc..003fb6df9d2 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 e118a615dd9..046f56dd2bf 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 afeaa95bba6..91372b9f779 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 9eb767933d2..f09d6c3b680 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 40856af95b6..3947787d724 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 fac0792220e..ad513b6e67c 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 afeaa95bba6..91372b9f779 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 9eb767933d2..f09d6c3b680 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 40856af95b6..3947787d724 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 fac0792220e..ad513b6e67c 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 b0b70a15a7f..e92cb7b4f40 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 e0007848d05..b20ba627a23 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 de3d2a626d1..35dd2ebcb6d 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 29cf327420f..f6a191b0793 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 45aa6b0951e..fee1da0659a 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 dc66eca7782..c8ba492eedf 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 20578945039..2b0cec90c03 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 3155bbeb0a7..a623c3361cc 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 3edcd0c69e6..adf56ceeec8 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 11f25bc910f..40638aa7bee 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 21b3847f2a2..1613156b61c 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 e77f87506d7..8d3e85ba71e 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 f32f67ff52c..46a0a353c08 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 4db97e29180..85129c13e0a 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 04639f096b8..8a46fe97167 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 72d16d375db..68e9434a875 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 e340c34b492..b07de2e1e19 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 a73f20270e3..d79c9f30ba6 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 dbf9eb08ef0..d426d6b73fa 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 a0086de1eb0..e0cccb52b1a 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 6f8e6ae1fd0..c9a9a8bb264 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 6a686e553e0..ee2f6e132c9 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 952ca744431..8cd5f776fd4 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 36e1fa9d5b4..5f43a4d8c93 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 1d760055dc6..9fd177a13c9 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 f5e6647b7f4..3708d091e49 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 77eb0bbe456..933f3ccb6df 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 715d205e1e8..b99c2d15a3b 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 dff75418552..1411299ee88 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 13e0dad6db1..3c680d230f8 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 20b7624ddf5..289b14ac712 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 3ef200f7915..8fee8712364 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 270514fb274..09356ac96a6 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 ed10f201637..b786a33bcd7 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 87e40fda5f5..e7482c8aa81 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 cd6b2df922e..d58ccbee48d 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 036a518aa0a..09b1c6178c7 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 7fa31fe6c92..c8f9f7384bc 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 22c0eedfbb2..433b1ed6684 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 2afe8227757..d12696f2f11 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 4b44b6a44c5..18f1e73125c 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 7a265cdc3ee..9adcdd372ab 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 06199175bf3..64b1079af8e 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 b145da139c1..e9ff0494daa 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 2373acf2a46..c5456e56a50 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 ad261b3a7f7..2117d9bf8ff 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 997c6d2142e..8489978a0d6 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 1ee41f80f3e..ba9aaa9eee8 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 e8cf6930430..4a1402e1f79 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 6ed671c1910..7ec6e33678c 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 ade4a44804e..df714bb1319 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 a710e6b9d30..56a0b31ec8f 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 59a47817588..622b3de1fb2 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 8d0eecec597..c351a687794 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 22c0eedfbb2..433b1ed6684 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 2afe8227757..d12696f2f11 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 aecdb69073d..5b3ab7d8642 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 6621b1a0ae3..43961b2b64c 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 475c4a39886..cee1513793c 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 eab618cea9a..5cf5a66adf0 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 7f59fa4e170..b7807353eeb 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 f91225790c4..dba2fefb3af 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 be71fb1d798..2d4ac546621 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 51e9cf7edd0..7330d518e4f 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 e303f6919b0..e4b249e351f 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 6f22cc15440..172045f2301 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 7a42e421940..74c62d7defb 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 f63e5b7b016..8faa168769f 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 3eae04bf3a5..a40e51b225f 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 4d159c710bb..bd98e5c8abe 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 59f997d20a7..3ef5b9ae9d3 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 44e4728cbca..c3a1706a34c 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 59f997d20a7..3ef5b9ae9d3 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 44e4728cbca..c3a1706a34c 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 878488b7f62..c77b98274ff 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 1064ec41023..b2aab6cb3db 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 cb559853629..4ef89910a2b 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 291b5864c2c..e089ac30d23 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 92136715590..4c95d96dd40 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 ce9e4412255..1f6076c2689 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 7daead958b3..334a331b809 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 c9fcd07381e..c29d28ae558 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 ddcac6f6ce8..29910489330 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 c3f80ffba3f..5da445ffeb1 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 527b1c2ad99..88841f93d02 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 70c0dd3fc11..3e1e6808ca0 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 7c48e74967f..4912b6ea579 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 6a4a6251268..951d26c9fda 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 527b1c2ad99..88841f93d02 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 70c0dd3fc11..3e1e6808ca0 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 7c48e74967f..4912b6ea579 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 6a4a6251268..951d26c9fda 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 527b1c2ad99..88841f93d02 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 70c0dd3fc11..3e1e6808ca0 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 7c48e74967f..4912b6ea579 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 6a4a6251268..951d26c9fda 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 2f7e0e127ea..59083f9daef 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 c950b33f669..3a225bc0e58 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 ad8f99973f8..772f7caebae 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 2b557a3ef9c..7301d0f56e2 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 4b2e60b8bcc..5c5dd76767d 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 e1e1e90519d..e40ee617c27 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 a941f4ad30e..7a2612d7890 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 cee2734b783..6cfcb9471d0 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 89fe93867c8..3466d3b880c 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 8fc32e9ed3f..e2be7f609bb 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 cf4ed38b955..baf16342df1 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 cab065160f9..a5fc694cf75 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 cf4ed38b955..baf16342df1 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 cab065160f9..a5fc694cf75 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 e317761c5bc..23d9e0cdb8e 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 cab065160f9..a5fc694cf75 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 d101bb380e2..9c81bb05ba7 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 b700160a70c..8d2c44b209e 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 d951ad9c446..f83dcaf483e 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 4a1438f2c86..1a16e7ad42b 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 f27844e7bb3..7a25fb97fcd 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 dbee4945e20..bfa976023ea 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 1f65db56795..ec1424b5561 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 f7cf36b1fbc..88791b14ec4 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 dfb4cbf07e4..cf20bff2bd0 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 91fda8ff53b..72dadfff31b 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 3d87519fd7f..1135e44b996 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 1a7de8c08b2..1767862668e 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 bfee446b8e3..ce3f75f3436 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 46b2bf9977b..71450a4218a 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 1f28d81ee5c..bc72175292a 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 04f9065222f..33e0875930e 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 c1d66226ea8..94c49d50d0e 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 f582b9a09b8..4bf40eaea70 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 d5d18d5b944..08be6037bc7 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 d7f442b68ba..3b9cb71a304 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 8cbecf07d14..45788f3a718 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 442a78cf7a8..0e5aa281861 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 8cbecf07d14..45788f3a718 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 442a78cf7a8..0e5aa281861 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 c6fa1337429..132da440295 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 d7282357dfd..fa7d5089f1c 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 cb177ab5fc9..e86f4fb040c 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 f149b169c38..9533c4e092e 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 0c17a56ff60..0ab047ea2bc 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 ee713a4554e..2cb2b28c5d7 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 1f28d81ee5c..bc72175292a 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 04f9065222f..33e0875930e 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 80c5fd7b6e4..f89d6afe8c1 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 b31e2c639e7..c7042808cf9 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 918321a5b65..b07cc25f893 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 324237aafb9..5af7e533005 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 1fed169eab0..7882a921aaf 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 300c05f8a9e..0b463797969 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 b701fca1e28..0d70aa0a652 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 715b4e86642..d4853313e1a 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 5bcfc010264..b4e16b139bb 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 39469e6da4b..ce70fe6f96b 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 89a996a229e..133864c2e11 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 6cd38369f05..1b1370de422 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 eb1378a849b..e6161206fdc 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 176ee0002ca..0f014419190 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 a54a0e6df95..f09f40680ef 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 c35c09d3dcf..7b7efa1cfc7 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 4b11e2e5b73..e6332fad257 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 82ff533a1af..435c1004260 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 c71ca50c0af..44923ea7d63 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 49637d027e1..0c2bed57498 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 acd2cf70314..e686043c1cb 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 63a56d0eef6..9a4f98fb2a0 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 32e2ffa1c8e..ea11bb50359 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 b984b50626d..479e8cb333d 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 4b967c7af54..34488df4044 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 22e27225bfd..04fd1ebd2f7 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 b57c9fcff57..9d5fa426898 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 c050897a26c..72339c3c3e4 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 3638cc02a04..491cca4b654 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 d909cdc62de..aef6a429ab3 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 abeb65922cf..80b45f5baca 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 9a322fb83fd..1ca957d424f 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 69d9f18bf55..309341da275 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 a45b8faac45..ee6bc819c8c 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 7e0c7fc8404..2edb9a356ee 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 fb31191fe7d..cf4a9395818 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 d5debe7ba06..2720bb53786 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 133f185779c..2f48ab7da7d 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 9ef60f240fa..8c81550e4b8 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 c235295065d..f17e8cbe886 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 20db68aa3b0..c9905e14bb9 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 efb94e7298c..46ac1350ae1 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 de5cb7c0014..9265408ddbe 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 0e3ef9a6169..7eddb63629e 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 a6f9b72cece..03af1962e1b 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 0a9b7d261db..d57c326f710 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 d6031c54c44..abebb428721 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 f2565dfaa77..b58d9101f18 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 70c82e5c91d..33d54e96edd 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 024c618b6c7..7ae7e90ecd4 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 bef44b8979d..54d966c1c1e 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 193c591c66b..4bb5d140c9c 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 e7e2e6481b1..953761644b5 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 0c8277e787c..1b5439c81eb 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 3aaec841336..2e3cfff0557 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 972329a91ba..3cf4c7ebcbc 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 00cd97c3218..04526a3121e 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 b5a3d22cc06..d22841263d4 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 ad65218bb65..835566e20fb 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 a5b3fc68fcd..06740ca5ad1 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 0437b9b857f..41db9b8c3ef 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 98594407669..58a5ad7f9cf 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 069ee594410..d81e784d820 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 590a8ab751b..1fb813c602b 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 e1ddec782de..1445e7973f0 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 d78b4318f2f..ca76a966087 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 5bc3315e05a..b1178ff4bc0 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 58049767209..20a0f20505c 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 0fdb51543cb..da70cc8ce0e 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 d26687727fc..6ce32dd442a 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 f7bcfcff396..9a72d52569d 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 d5d6e973428..31230970f22 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 c2fa0fd03df..b87b9e8d2ae 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 d5d6e973428..31230970f22 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 c8c87e764a0..f931d67ac1d 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 5a17aeba77e..7323fc37533 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 d2ea8fd7cf9..169c78c2d28 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 be7d3a2afa2..4ee6372ed2b 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 4d0e69a5e7d..e3ab712d432 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 ce4ea15a39b..9a8c3a1c9ce 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 e60269479cb..c8127070910 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 ee9ee077839..8caabc5eb95 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 5fee3e0a254..a65917217ae 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 72304794778..56c1400e2bb 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 334018add3e..c03966819c0 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 56341cc157b..d6e3568db98 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 1cc7a748502..1b410fec1ee 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 7f8f17691a4..abaa08004e8 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 019139ac9af..0da5e393284 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 30139c5165e..e7b9596b57b 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 b50c2bd00a3..9a4d466b4da 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 5a80b8c7eac..3471048bce9 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 d07e163019f..a9d586d06de 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 42b1013eb36..e22eacbbedf 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 a388ccfd46a..668d66ed283 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 5caaf1d560b..1d6c83fe768 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 80d4624bb71..bbd4521104b 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 3784208e4a0..c704c4330a3 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 1aebf63f1aa..a9546f02b47 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 844e5ab84d5..28b3ca263d3 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 9d316c31e6c..57dc0aac6f5 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 695e7015835..66fc7642683 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 ac97d502980..e0438532a64 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 7f1c3b7e092..018c62ace5b 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 c9fd99cea14..136fae42eaf 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 6553bf3554b..9ce877b68e3 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 5a1fd6a9e9e..07b1e3237b2 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 7b8b151254e..74f3ebfe2a5 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 46d43ad956e..5c91f2689b7 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 6553bf3554b..9ce877b68e3 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 85b0f0ad8ff..276915cc9af 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 7b8b151254e..74f3ebfe2a5 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 0ded3cb5d4b..7fb9be1fd46 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 19cb8de7c2f..6a2bf15a00d 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 0ded3cb5d4b..7fb9be1fd46 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 19cb8de7c2f..6a2bf15a00d 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 5942632780f..f6025e0795d 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 ea526e5a686..c44c7004d49 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 ea24ba4f489..1cfcdeadaa9 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 7bb2957733a..9a60e5d5ccb 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 1d232748c0e..1befe43a33b 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 69d66c2617d..e2e92cd5766 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 9974fb08ced..5aeab335864 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 bb524bebe49..fa4f50e1987 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 b874e14aaea..63a3dc751b0 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 059a34e02c1..00b4d2573b0 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 84ffe0d5974..2c5ba6881de 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 65b40be3938..5e8e662718d 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 8b6266a2945..0102d4153ef 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 eed209bab8c..8c7c3d51687 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 8602223c0f2..8e0044bb085 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 a07657ed7d1..38e8beb77d2 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 95d477515cf..55311528bf6 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 2ea9ef3bb04..672692e7878 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 5480f0df197..ec44ebe838e 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 a325d238fbe..cab0a04f8c1 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 3f3aa0f97d4..2ccc50aef31 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 9a6a354891c..2ef21e98737 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 51b4ffcdb9f..c7f268246db 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 ecb460e4d4f..08034a8b667 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 4483d424c76..3ec3c9234f5 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 667021b0fa3..0d9caa572ab 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 248505f81cd..9d4ebc34ef2 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 1022ebbd4ca..0b448de7650 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 2ea7a714a0c..ac8f1403474 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 3ac0fa510eb..1adbda0bc12 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 f5ddfb5f6e9..490ac2b1743 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 3ac0fa510eb..1adbda0bc12 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 46993fa7805..4212035cf97 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 d057a1ac39c..80d3c36ff02 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 7e467603f55..a8c3b060f49 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 897c4783097..bab07260d1c 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 05c67c8163d..203d4ff060b 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 c1665cd766f..a044cc27fff 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 1c2b2f54fbe..72fbaffff17 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 76ced0f24da..542dc6191dd 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 4e4609960da..0c259d71030 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 f26d2d23ea3..9ba6eadb567 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 0f223d90230..b4720506bcd 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 c667567f36a..f83bfba126a 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 546c22c68fc..91bdff6e342 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 105115452a1..feebd5ee14c 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 eed16eaf86a..247fd6e197a 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 105115452a1..feebd5ee14c 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 d8322263588..20d9547dc5c 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 e40e20f3814..03af03489d1 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 ca31da8bd0d..e8e3e37b38b 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 1fa7c403a87..fcbfa34513b 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 f3190003bcd..631c9b081be 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 c6e30bad385..ed51c429c07 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 1d533869a42..e7b68d6b3d4 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 f715424bb2f..6a342d4d98c 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 8af23627679..a18d4d1fc1d 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 8441705ee9f..fcf8c03c76c 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 c40f37edfac..5a2bb586f51 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 3d6ed591584..f5188cc28cd 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 bbe867a52e5..522c3b8debf 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 3cb6834301f..d0a3cb3e880 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 c2a0fb9e377..6975ca43d35 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 61623fe2dc0..6f333f1ce51 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 0a672d2a89f..1bb308aa84a 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 217cbcd8b21..61320bd90b1 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 e6e349c7626..c536c247032 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 37d1591715d..3ebe981af3b 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 15de0bb6149..899be0e8ac1 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 b974b2772c5..9e0249686f0 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 5c7c66ab2d1..c9ae0a64054 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 990338b8c99..03149af385a 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 9ddd479f62e..894408a1d1b 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 0b4dd15e68c..67f26a3cc1c 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 34b87a3100c..a1326b8676c 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 7c04b2bea39..f6f91a7b3cf 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 40c62c61543..a2708ef8c27 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 bba5bc29794..00c5d08dd61 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 d0e90fe58ef..7255730d553 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 bba5bc29794..00c5d08dd61 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 9d0837dbb93..4e9e410f3c9 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 040ede15750..ead43776895 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 7330e24617a..d4bf6b8f829 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 e9819e3391d..32a96689f26 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 3a8c1559256..e5efa16a729 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 7b752851807..8a25e573dbb 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 0ff837fbdec..54fd1403dbb 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 b57aa62c3ca..52f79992d75 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 d07c40b344a..af673227d06 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 a8078a51a08..c0a686bb27b 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 25ab9a9213f..e4344ee3f03 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 d06fe260dc9..806876e1bfc 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 26a4dfac396..7554b46a462 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 6b7c1fb7dcc..904ede0b213 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 8447826a56e..bfe313a72f4 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 6b7c1fb7dcc..904ede0b213 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 c9f47e848a8..c76937c6fb5 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 21ec9ff4298..e65e27cea65 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 69eb1c2a381..16d06fa9722 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 3ac0fa510eb..1adbda0bc12 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 1feb103f1bf..3233761162c 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 3ac0fa510eb..1adbda0bc12 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 862e11a6cf2..1560f4d3a1d 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 7851e2a4984..b96c415ebe3 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 9d48b5984c7..298d73ad158 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 e0b68f9b6f0..ece94965f66 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 d0b404cdba6..75cd6ec09c2 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 4d47c09f53c..d2a0fc8e230 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 e28153a7d07..73ec0b39562 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 c54f89c6811..13cadd811c7 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 99e1d6a1f91..5967399d2e1 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 fc1f0f9f9bf..0fd74ceb68d 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 b239e7e1e16..9c4447dd5d3 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 ad693053c54..7f692413af2 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 516b88def47..317a9bdd237 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 f8cf8f38666..217b7c7cc99 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 b5932397db4..8755b08061e 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 d41907ffdc3..1c110036d7a 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 7a157ecfffe..c99f179d330 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 b1a523f94ed..8ab2fc045e5 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 47a654efd24..7a0d64d5f0b 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 cd15e13be93..0d191c5f339 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 30d092f23ab..8a4db162849 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 396fafc3862..1bed29a41a9 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 8165f9bffff..12c21e7adb3 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 105d03e1cc5..a7bf7315b2f 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 6c43e843bab..9d055b83670 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 30a84a493cb..adf041c02d8 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 ce172cf3934..dac80b43412 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 26983fc115d..9e6af407276 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 d1954276e6f..086c3573282 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 1519bdba714..de6b34f7edf 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 97dd5a62feb..ef535091573 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 1519bdba714..de6b34f7edf 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 f0dc3f658f2..71709fa5067 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 0bf0e5102ac..0c0aecb9331 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 098fce11ac8..41eff6ac119 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 5136cc85363..8415801a98f 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 15d93bf10de..d9f90afbab9 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 03b9f62fee6..4b246476ca0 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 4030c4e5fce..657c748483e 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 240d56cc4bb..e35063a8522 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 b30309d22f8..1a8eccd4b3b 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 e0cc7ad9340..98320b70568 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 d038bca979a..970c7645a93 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 1dbf337ae15..c9bc268e926 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 cc979e58b63..0e7011018d9 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 3b9c063faae..f9e38990ee7 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 d32d01291a6..94217fd6ff9 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 f400f95f1a4..66899aa7d31 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 8b93855def5..3b5bce13d1b 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 897c4783097..bab07260d1c 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 4b6a93796f8..cc40857dd88 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 c1665cd766f..a044cc27fff 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 e42d9892c41..d85a959a3ff 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 76ced0f24da..542dc6191dd 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 d7400a7de98..314564e6baa 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 f26d2d23ea3..9ba6eadb567 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 95300087f92..164428822a5 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 1eb0183afad..86604cb5133 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 1d7c85bcccc..de9f9686c3c 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 31e4d9e81f8..4dc724f7ff4 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 ed044f43892..f94bab4e6d5 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 7ee9e22e25f..0d2fe640196 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 edaca5ceb54..ddd5af31662 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 b9b46ea03f5..3d01c0914e5 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 4508b68f003..0e7724d7723 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 55025788d04..fac45f51bf3 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 4f165f8d87d..8d9e4c9ba58 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 55025788d04..fac45f51bf3 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 38fca2a5721..26977b0e6ac 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 0453c6c7cf9..cd059aaed0d 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 780384ad73b..a4a2653692e 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 8f8d9ad4c67..43537e325a5 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 184bff54b74..ce9872dc60a 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 8f8d9ad4c67..43537e325a5 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 257f03bf33d..a065896271d 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 8f8d9ad4c67..43537e325a5 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 df948a91b1a..afb1eced466 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 a0b67a0c14c..011ededb7d4 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 41dd5d39b57..e96a376e997 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 4e63d9a2025..99c9d117e2f 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 6d6321c6c1e..0880f3032c4 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 9ca1fc76255..73cf1e7ebe2 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 6dcb55a28a9..ac37c69a669 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 24b5dae1307..202d9e06c62 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 5ee443fe47a..0fe8c63bd4d 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 dbb4f942873..f916bacb458 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 f9c0c5da1df..200832b9e81 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 01dcfb57b12..e61034014bf 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 6ac356d6b87..dfe792f3b81 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 bab2c3dd5ea..9e738871c2f 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 8f3b3f0d81e..922026d9612 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 a0d5a90d7c1..7fcb8e9fbfe 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 b5379eeb84f..aba29340ffc 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 b10d9454068..56e65ea184d 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 1f03a782ebf..aa76a586f97 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 4f81e00e89e..b5a43c01d31 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 77f5715a164..bdbfe40ff83 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 bfbb5e05e52..6d3ee447e76 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 0f9c2668358..be1941844ad 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 cf95aaad561..b8e83b09a50 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 06e10549e2c..a0147cdc516 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 007306ad4fd..a1ed5bf03c7 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 f3ce93c1a69..64feb3e9481 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 64923cdf45e..146c306ce55 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 4fbdd4b6750..c17773422e2 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 677df774796..9e928e0d91b 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 9f6e406fa09..0073b791566 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 079cd4552f4..f92c44bcb57 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 63f4aa6c578..d8c66cc1e3a 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 25b186198bd..55a4fd4155f 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 80b14a81fde..dd1ed88c1d6 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 f5958f752f4..a7b98739c3d 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 3ecd961b6c5..50c302a9194 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 2534f3d331c..82260c26411 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 2c7cf45aad9..1b720a645f7 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 5cb42448cb7..0fd3d5db0f2 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 56e8da677e3..893cfb8e9c3 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 09933208988..5a60b07c3bf 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 034c3106c04..4ea901b195d 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 105115452a1..feebd5ee14c 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 ae060d21711..80955e12433 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 105115452a1..feebd5ee14c 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 412af635edb..9df9be5892c 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 1afe59209e7..099d63f7d68 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 1f5486aef34..87bc5c24ce1 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 1b1b48190ab..c7a1c50ff7e 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 36e144e501f..39ede70e45e 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 e489754b5a0..92e3c7f4703 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 de3625ea733..bbb800b972a 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 7a78e8a24c8..0ae932cb29c 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 cb5b0f0734e..53d28c2091a 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 e489754b5a0..92e3c7f4703 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 e15c67969bb..ae3c6910d7e 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 7a78e8a24c8..0ae932cb29c 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 043a8f88e78..df615667fa3 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 fe1e32746fa..f7a825b4604 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 0c332db9d49..4cf6421b965 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 ba7cfe839c1..2a628a591a2 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 75189b0d2dc..f653aead28b 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 bf75310db10..bacb8d0bbc4 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 7d164e5e007..a75a429030d 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 87c1e1e36e5..65967164d41 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 c183e0e1c38..085d66f499f 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 6907981aa86..6879f1c126a 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 cccea32b43b..2c5d3ce0166 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 57febceeff8..e3d4a47a7b2 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 ab9086b3a41..07cfa7de896 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 1c0c1c61817..ab3fd9deb8d 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 1b731a73270..b98f4b5e57c 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 1c0c1c61817..ab3fd9deb8d 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 218793f1d41..6184af64895 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 9f9fac71774..800d185cf84 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 7c81d506ed7..f5a8b7a0c4e 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 d552f623052..9b17493ff50 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 cf94eaaed0d..c9936489f07 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 44ab758fd3e..4394d6763e1 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 b021821f57c..12301e9db3a 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 fba0e35da33..4526c4f4242 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 fa630c44652..a3395d95c52 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 e8b11256d93..cd13e750121 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 fa630c44652..a3395d95c52 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 e8b11256d93..cd13e750121 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 e38347518b9..c1ae0aeefcf 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 3ff76744b98..dca01f01e36 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 e38347518b9..c1ae0aeefcf 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 3ff76744b98..dca01f01e36 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 bb3256676ad..aeaac114543 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 293d893f232..4d32757d2e5 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 478e8abc774..5659215de3b 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 293d893f232..4d32757d2e5 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 c31d840b057..df51289e301 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 0f8e62c785b..f6d2309a47c 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 449e37f4f50..f41b2cb8aab 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 0f8e62c785b..f6d2309a47c 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 0c0a9ac10e8..9dd44d6d0bb 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 1e915c9290d..acbbed59d44 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 de6bb0bb8e1..5542ee7a65c 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 4e97eb748c2..e43fde608d1 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 1fb31698aec..d672c414060 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 8b76ae6fe8d..9784447e3c2 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 17cd6a3bd46..6742228e83d 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 c187a776a59..3c28c35265f 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 bb812b01068..759b5a565d4 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 98a46940cb0..88f412116b1 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 0d76b85420f..f911cbf9e9b 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 b4e2c98035b..1683b8b70ae 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 18a8a58c9c6..b1b8c7b3e37 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 9179ac4ac7b..2c6ab6a3818 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 d6199c7d011..d065f10795a 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 677df774796..9e928e0d91b 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 c55ed8b4a2c..01a1fab2b02 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 93b7be467f2..45a0535eace 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 c49344b238e..b5b55fac464 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 9b6b56de4b4..34f0637f927 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 fd59a39a6b8..1cb886bf9d9 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 29df74e66e1..098712d5945 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 c49344b238e..b5b55fac464 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 9b6b56de4b4..34f0637f927 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 e3be1be1df4..3f93ce0623a 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 a888bb48515..aaa960181a6 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 b5545c72a20..febbb0b1a2f 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 3fd38ecea77..4a6c2668b23 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 466fac8abed..307035f89be 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 f4292d10ab9..51dc4aed68d 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 2e17ca8595f..b79a3a4a393 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 2aea62458f0..55634788e5a 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 3b407b70eb7..aa0623e2c66 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 a7489f46776..da757e06b1f 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 2e17ca8595f..b79a3a4a393 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 2aea62458f0..55634788e5a 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 2e17ca8595f..b79a3a4a393 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 2aea62458f0..55634788e5a 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 85009c4af96..043381e38c9 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 13d38c746bb..10463380cad 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 3fd8d904a09..43cfc62b0c9 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 5c57004a899..c4929abd5dd 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 0048d2d1dd5..fc5f8885e64 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 2cf2fe65777..c6c429a4de9 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 7bba11c27ec..3c5fb5e6cfe 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 a4f39c895ed..bcaaeab1977 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 aa7f52a4c65..f91fa36564c 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 0858f3495ea..1bc0bddf716 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 e24ccdaec73..f1a3f725006 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 7955ea9eac6..ed745f0be88 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 ecba10809d5..7c243c5ae5e 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 2aea62458f0..55634788e5a 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 3731c1c677c..73b71fcbdf4 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 2aea62458f0..55634788e5a 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 3731c1c677c..73b71fcbdf4 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 2aea62458f0..55634788e5a 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 7351f36143e..408ba44eefa 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 2aea62458f0..55634788e5a 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 7351f36143e..408ba44eefa 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 2aea62458f0..55634788e5a 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 3d34295cfcb..e7c17d43186 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 a4f39c895ed..bcaaeab1977 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 3d34295cfcb..e7c17d43186 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 a4f39c895ed..bcaaeab1977 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 3d34295cfcb..e7c17d43186 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 a4f39c895ed..bcaaeab1977 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 7351f36143e..408ba44eefa 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 2aea62458f0..55634788e5a 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 6d760a0fac6..75830bb4ba4 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 5cfbf22aa87..4db0819ebc9 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 b43322c2fbc..ee5b75c3037 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 3054dd58618..d62e8449731 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 0fe2aace797..919e7834add 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 13d38c746bb..10463380cad 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 0353a8780d8..27257326630 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 13d38c746bb..10463380cad 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 7d8fcca9266..d5f295f0519 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 13d38c746bb..10463380cad 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 8d072693556..8a5a605d46e 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 13d38c746bb..10463380cad 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 1139d6ebd02..80fab97cb7c 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 13d38c746bb..10463380cad 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 fce241e525d..1f099c79c8d 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 5c57004a899..c4929abd5dd 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 fce241e525d..1f099c79c8d 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 5c57004a899..c4929abd5dd 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 fce241e525d..1f099c79c8d 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 5c57004a899..c4929abd5dd 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 e8cff42b8ca..555a37f693f 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 ba849015272..cf35e40dc5d 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 0ee08dc5a42..4772e6ae474 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 97abfc0e03c..4b0f67c2961 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 e8cff42b8ca..555a37f693f 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 ba849015272..cf35e40dc5d 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 2dfbb7f4e6e..5f5cdc89e06 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 79feee14b0e..ea3b7674d80 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 56314eb8eaf..568d176fc66 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 7aefc844517..bd0ddac4bdb 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 386dc2c8c14..6ebe47e2111 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 33d0078b96d..710612ab54c 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 a24e50f820d..8523f38f76f 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 ba849015272..cf35e40dc5d 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 a1a42d9a046..8f4985bb9b3 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 79feee14b0e..ea3b7674d80 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 647bd4fd459..a521476c9fe 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 97abfc0e03c..4b0f67c2961 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 a24e50f820d..8523f38f76f 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 ba849015272..cf35e40dc5d 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 a1a42d9a046..8f4985bb9b3 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 79feee14b0e..ea3b7674d80 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 211ff0fb12c..2435860a286 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 936f05110f8..289a60db33c 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 cbd479ff189..819c851ae15 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 6029d28d068..7ef6636955c 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 4fd794df27f..33e2b1929e0 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 497df234ec7..1cf224c60a9 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 26949ef5200..38196771e26 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 549b9eb7da0..413a92082bb 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 0acc50188da..56083b74784 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 217cbb75feb..cbff4470958 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 66890e14275..e919c02e653 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 677df774796..9e928e0d91b 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 25ae634e493..68e10ff7ae1 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 b2f0318ea46..bb6ed7a64e8 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 87216e9befd..950bba29389 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 b2f0318ea46..bb6ed7a64e8 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 87e3446b2be..7fdd6767e58 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 a472387e02a..b0e2cfd14ad 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 7528b02b9e6..0a270a7366f 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 570a2cbffba..905b28f8c84 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 8d69715e03f..c02593bf7ca 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 f43dae02995..725abbf7b29 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 ce8fccdf82e..cf9d6e92519 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 eee4339b314..3549a44d10d 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 f39ce148ef0..5b045e164d9 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 f7fb00e1bbb..0612d04f0e4 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 60619114104..d34d102be20 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 c434ffecdc0..f0a2c9a3980 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 ebfb24ac70a..a5ce0332099 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 6406ae3dec4..d1b52e5ea29 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 14082cafecb..a5fb1e8d27b 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 fe5591b65be..04d987deeef 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 eb19b9e652a..37c3286af1a 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 8aa52044438..b5a6e9daff4 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 e2148d9ae39..822ef606995 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 f7fb00e1bbb..0612d04f0e4 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 666dd27b30e..0dddb86d070 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 8aa52044438..b5a6e9daff4 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 2471643fe07..0723256b061 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 24a44764d99..06b7a776d61 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 4d1be7a65f6..d7bc3068adf 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 8066369a55e..3350a091116 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 73cf4f6ebe4..eedfe7d7f0e 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 5477d26fb74..552f0018d18 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 cf75f009b0d..0ee3a67f177 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 fc2023e1dda..66427765116 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 1ee7d234779..daef79249aa 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 212a738227c..65ad3ed1691 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 f992e1c9f33..697bb56e885 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 2d07c0c99b0..600a2aa0d59 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 46d76c54780..f172eaefa6b 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 d2fd61a3223..4e780bc1cb6 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 61d6c6553ed..eb5d8298116 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 da2acc06e80..ac2f2b50124 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 3fe1a699c19..880aa7a0485 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 daee4c6c018..be0ec94d605 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 a10ff9277bd..781f8b90c27 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 daee4c6c018..be0ec94d605 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 7c8318e4d49..22d86884b5b 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 74167a924e1..3a644b47d8e 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 21586fa3d22..e70b503bcec 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 fe5591b65be..04d987deeef 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 2c19eca2f19..4cc2aca48d8 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 105115452a1..feebd5ee14c 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 71df366b1e0..e4b20b7cd27 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 105115452a1..feebd5ee14c 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 a10c830af7b..086f9f67023 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 9499de9f1be..0c95affb906 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 8d9f54d9346..6dec3689c18 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 9499de9f1be..0c95affb906 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 2f5d3196ce1..72a9da83c11 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 133cece43df..6548a7563b7 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 5d8a9cb9d46..7af4daf1352 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 a621dcafc76..2a679f12fe4 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 211bdb698ae..01eefb3edb8 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 90837a4f244..ce52ee7beb8 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 70a361298a3..ceef43cbcf3 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 44ed032575e..01f3687e474 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 c79b16ea506..67fa6971a23 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 5e6182ab8e1..2f02f1807e4 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 70a361298a3..ceef43cbcf3 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 44ed032575e..01f3687e474 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 33f9639f0a1..445d053ebef 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 378b5de8bab..96d712f9f47 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 33f9639f0a1..445d053ebef 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 378b5de8bab..96d712f9f47 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 d5e5e71c54f..59b060fc577 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 0d47f27881d..a8d5d4246f7 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 f4b8f1b115b..5fded2db8c1 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 b4f5c2f83f0..13b0505cc28 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 d5e5e71c54f..59b060fc577 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 0d47f27881d..a8d5d4246f7 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 d5e5e71c54f..59b060fc577 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 0d47f27881d..a8d5d4246f7 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 6337e7b4dba..3548d848715 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 d71238b2514..f42667d21c4 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 a2e8924a403..fe4fc2f5d64 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 0c3b8bcd2a6..c50efa05942 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 493d216681b..3b87b2e3a50 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 58049767209..20a0f20505c 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 1cff7f1e220..9189204716a 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 4226201d4a9..3417dabd0f2 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 27327e24bf0..a83ded548bb 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 fe169610b55..7ef78880fa8 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 4ea57de11f7..8cc0940c9b7 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 37eeb715697..e85e59fabd7 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 d924cf6cbd2..bf3968eb435 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 77d8cb48e73..8bdf79086c9 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 40ec9fd5932..53df2f5718c 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 4b8955c8315..a0c315467ac 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 2c88dcf28a2..52e48195ed6 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 fd2dd159415..13774d5612f 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 6908d207c2e..00f4f536963 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 0591504c8ff..5176e4fbfcb 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 40ec9fd5932..53df2f5718c 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 4b8955c8315..a0c315467ac 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 a986554fe77..6cf70c0ae29 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 4b8955c8315..a0c315467ac 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 4d0172628ca..291f1ef3259 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 21bc320a085..31dc96cc8fb 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 8f5b9e1e406..96d033e49ca 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 34c3dc6f920..9fc4dc2c050 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 52d547391c3..e08c2512428 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 0591504c8ff..5176e4fbfcb 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 943e74c1e87..5e29113bfbf 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 188bbeebaca..8f16ebe4cb7 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 be0e269e832..f69047f36fe 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 499add98691..65e0744e50c 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 1e412f6fba2..f4c1f0faf2e 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 972588b8b56..82402f1ebf9 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 0e3e436b022..00f56edbdd8 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 81903e25951..e710ded00bd 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 455f6227ee2..ff628d61790 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 817323eef66..40dae126c93 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 81f77068f84..248284399dc 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 e2ba13efeab..330c5554e58 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 f993489cea9..7e155774b7f 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 a9419ac6c4c..756217d585d 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 458089b6d24..0baa5dbf681 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 7700d7a1aa6..09b5d745371 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 b558f012831..f167a8ae134 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 8a2b1c88b64..c3f5c8b8a95 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 5affbf715e3..1902e4195a9 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 d7c40f8bd8e..f02309ec5e5 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 327771fbde0..9572a6edd7f 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 9bdc1755597..5ef31b8ec28 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 3f9518cfafc..f4b65cbcd62 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 d71238b2514..f42667d21c4 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 82bfd16b4a2..9d95adbf4ab 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 0c3b8bcd2a6..c50efa05942 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 966a1c586c8..a4c482e776f 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 e2ba13efeab..330c5554e58 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 6ded89681f6..2bf7b7b79bc 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 a9419ac6c4c..756217d585d 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 3ce8549c045..61b642d2564 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 d7c40f8bd8e..f02309ec5e5 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 04a7a0993a2..900865a85be 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 be4434a117b..9ee7de913a5 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 04a7a0993a2..900865a85be 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 be4434a117b..9ee7de913a5 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 04a7a0993a2..900865a85be 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 be4434a117b..9ee7de913a5 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 27357364a2d..e478453f297 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 677df774796..9e928e0d91b 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 9b75f28b552..983258f7d98 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 c57b9b88f29..8de78f8df18 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 b7fa8df5a79..b90be74fdb0 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 927f4f33dc2..e25e93cf9c3 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 bc173d19de9..dc6c2598d60 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 dfe2d1b796b..42dcac834a7 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 1b95216980c..3fde40e0dfa 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 074e1ab00d4..b176bf3b5ab 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 2ec58fb18c8..f4d2a633124 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 a981ee0f30c..b6f77a8ef05 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 b66b74b4955..644f77ac4e3 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 4452f6916dc..b2f7d3842b4 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 7977616a886..79430d0bf92 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 be4434a117b..9ee7de913a5 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 7977616a886..79430d0bf92 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 be4434a117b..9ee7de913a5 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 7977616a886..79430d0bf92 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 be4434a117b..9ee7de913a5 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 8b2ec8b8579..aa247c01fe5 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 ac82e5dc34e..bf4e1c0815f 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 559b7bacbae..1740c6a7682 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 ac82e5dc34e..bf4e1c0815f 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 354992ba598..1e15c4cc502 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 b8947478a1a..2c446132ded 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 27729deb478..7ddc2bc27e7 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 17e0fe3cda5..2bb6c8196f2 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 29bee9dbd48..5a3993e3d99 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 6082afc8e1b..bd0983615ae 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 12c8387d857..c29ded6898b 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 4ad8b3ce01b..15ff0b55214 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 5a8dd5156a7..8f6cb8b9c7b 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 0d82148ab00..0703edb00c0 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 5a8dd5156a7..8f6cb8b9c7b 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 0d82148ab00..0703edb00c0 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 ccb5fd07756..4679b16dffc 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 02d998e4c5a..39154815d8d 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 b271a71270f..d812d26be62 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 e21035ea86c..3c4f3a3bf58 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 f648126e894..de6c1b60e14 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 44d840baacc..50e314ddabd 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 de098715e25..8f8d94d4f0c 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 309e38fd684..50438a99155 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 1dc7b1c9ade..64a562f7708 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 10030ebdb0e..ac080437abd 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 bd775a456ca..b981cb1f889 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 e06f52d2ca4..42a2abfb768 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 2b2bdf77b2a..f189b658d40 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 b5877d73aab..0929d7a2362 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 846c06dffaf..8e666b36eaa 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 b9d9bc1adf0..89ce84909b1 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 a472715d440..947ad6886bd 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 dfc8d36dde7..58514afaf22 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 eee0bf25dd0..e45c2cee155 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 ace7a0cc315..c45a990b05f 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 57cf705aaa4..344bb1655a9 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 abb25c674d9..82915d0a03f 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 fa9a0bea7d2..d58dff38ca6 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 677df774796..9e928e0d91b 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 fa9a0bea7d2..d58dff38ca6 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 677df774796..9e928e0d91b 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 fa9a0bea7d2..d58dff38ca6 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 677df774796..9e928e0d91b 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 1ab9cf6abed..41fd2f62fb4 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 c57b9b88f29..8de78f8df18 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 ce54c3f8676..9019e31cb4f 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 927f4f33dc2..e25e93cf9c3 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 42520b799c2..5a6f75ec442 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 124f1cdf643..c6a3a65e422 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 49accbe4083..e7b769a82c3 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 4fa567a994d..78afbd2242d 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 d43ccc4c268..4ff063ff6f8 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 2b3ede2e8fb..658792a4283 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 03fb356e920..b6040fa53aa 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 cfdb05b98d2..b035347fbc5 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 471db6e5ec9..14e91eb2136 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 a403888a55a..f86ec0196c5 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 77d1f9561f4..7c480a7bc12 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 c1665cd766f..a044cc27fff 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 5dedd4baa85..e95d4415f3f 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 76ced0f24da..542dc6191dd 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 dec274c3046..726b4edc08e 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 f26d2d23ea3..9ba6eadb567 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 80b447a5a41..d9daeb725fc 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 481f5c5805c..020a38dc8fd 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 799069a4a22..fc02621c967 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 6f119f4a1b7..c52db971349 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 ef368156787..710fc720b9b 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 6aa467877c1..6dc6933a765 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 47cf5d6e0f6..35a91195ec2 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 0ae5c583013..2d2f00c4fc1 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 4ae7dfa36d0..19895c01061 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 e0022839bd5..9d52a105772 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 57f696c345d..7ac3e3cd5f0 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 4dd6709316a..b74178b18fe 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 a7ecd70a790..f9350346c7b 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 f0a8ecc0222..eaa7a944350 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 0f250c152e4..15136261720 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 a700c561f9c..b29bd3dd3b5 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 d0812c14be9..c0388e33287 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 728c05d8cbf..19cd8139322 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 533f2a6d9d6..07c20645dee 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 84d3981c773..1ea121e1a94 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 78412f784af..7fc643fb62c 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 d46008c2d16..3d5cb2dbfac 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 03e3d13a81c..0367097ee30 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 0bc2d4d71d2..2abf57c2321 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 a43ac308a7d..02d46b87a36 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 1c5f611c79c..e689479e88a 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 d40c11e54b3..09b56c67961 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 f1660c97e6c..0047b5f07c0 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 a8614e37e8b..1ae716c71b1 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 7bdcb93536b..5a9635563c3 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 be5ae1c2615..9b9787a5bbc 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 39262a53675..c8d2693df75 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 4bbaaffae11..01fbab36654 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 25a3bd0a2e6..95e781dddac 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 0e4a2fb49ff..dc9cb834e46 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 db34b03e0ab..536d49f5f18 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 43259e4c65f..643e60624e7 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 3e8419aecc9..14c23892485 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 5a2367eaacf..1ec8316d608 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 d0dd2a6247a..473cf37ef5b 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 f30391b0ea8..0724af23249 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 8371c3dfd21..a90da915241 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 f42a129443d..808eeeb272f 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 7dc6db2cc61..984c0a8c360 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 a46dad5a447..96ce66e91a4 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 964c2848c98..ea5440bb208 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 d416051b1b0..0ef9e138c66 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 f304da0cb42..55dd4291765 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 707bc929fec..df7a432f01c 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 7020d863d84..876bcb8f27d 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 6cea6806fac..b01d6d0a510 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 aee3692ac03..791bb84441c 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 03ca6306af4..41c1678ba30 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 76d684db0cf..e08decb10e8 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 f0b891712ab..df3d70221a3 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 20abbe2c5eb..d13a9d65b8e 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 b3343185d87..6dc56f8cad7 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 a700c561f9c..b29bd3dd3b5 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 bb299021b4c..8f8ace6f783 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 37c8ac36e4a..f8f0607d26e 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 e0f0ea9086f..4d4058e6f6e 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 8d54f4d56fd..1286e0fb78f 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 33f2a13a53b..3afec37a14d 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 61904d32887..237b7aec440 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 903c71558d5..a7bc6f55c7e 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 8d54f4d56fd..1286e0fb78f 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 365a0b75c5a..618a7e0779a 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 1a19b03e4a2..fe86aafda97 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 7e1cd4942e8..bfeb856cfec 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 c026b4b6994..4c15e7021fc 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 c17ceed431f..e3d2613580b 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 4cb4af9a1fe..70a04131711 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 88fd77cf1ce..0204252bee0 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 f1660c97e6c..0047b5f07c0 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 88b67a81d1c..03d1345267b 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 907f4e2dd57..5a0df1af621 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 0e2fd4e67e5..cd68ca795bb 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 090e2240bd2..c97a600d484 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 c6dc6819d16..951ec617f44 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 e0a2fb0a7e9..15ce4fe49f1 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 985959b1715..4f382a0795d 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 bb6ea631603..5709bd2458d 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 b061dd27253..c3d217478a1 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 fd30fd57234..40a424e2d41 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 75110292e84..2b06f4344bf 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 a700c561f9c..b29bd3dd3b5 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 44374c1b65c..a65859c020f 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 ab8a9d919b9..d5627e93684 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 786bf0b14f8..d51b21271e5 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 a700c561f9c..b29bd3dd3b5 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 348eac4e2c7..d2b53243b09 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 38d64ff3e38..ada172f0ae4 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 a734477560f..e07d93cd92e 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 eb1ca7ee70b..365cf57b5af 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 72d6c7b3089..a858444d17f 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 d4efd4546a2..09106af69fb 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 bc71937119d..ea8cbd35fc6 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 9fd6f14e602..5b18d757677 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 f276cc7f943..82b0eb9e328 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 88e05f7ef2d..3f2b712df10 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 435e06c261f..e01db583e11 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 ba22b614530..9bd74b2b872 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 1ef4ab4af8d..07f772b1f43 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 5101e73c16c..a46fd2a5415 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 6022bef19c9..3fc9c366292 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 4da7cc34e23..837bfcebb10 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 76e849f684a..77a39059578 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 41982b57a3a..1627a491fe8 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 b35bfc6edb1..b145ff63eb6 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 4dd6709316a..b74178b18fe 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 279c2f3a908..a1c308b80df 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 6944a5d55c9..d02f3ce8be7 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 2169b537dc0..6bbb4d40aaa 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 a700c561f9c..b29bd3dd3b5 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 9dd39671555..6871e28fcd4 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 e1fc4791b5d..65c7d62d36d 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 6b189063511..cbd7a2c97c4 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 a700c561f9c..b29bd3dd3b5 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 efeecd44ba0..b9592d13706 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 e1fc4791b5d..65c7d62d36d 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 014be844191..056deca49e6 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 65dddb267b2..34a4942047d 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 df0a56522c3..f6a0eb0e987 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 1e7c15182b2..cab8afc6225 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 486d003df10..83cd31e994c 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 dc193bd4765..4008c30b68b 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 1ae3c8cbd2c..9d8fa23d06e 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 37e9f7cbd3e..b9e0f262a87 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 221cecd3b0a..4f1a9ddf356 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 8e7ba8154ea..5200696808d 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 710605213c1..61f97f3ef47 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 56c02a899c9..25c98581912 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 c0f6e90e08a..a630bb85e4d 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 570c31a24fb..1bb72bbf6e7 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 0fa74b914e7..cacc70cfc2d 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 15f666d53cc..ccced3a16d9 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 df6a166c69d..792e6129e3f 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 20ff8aad0e0..89230e73485 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 be1d5d06230..12e44e5aec3 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 eee7c976418..b6d333058aa 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 571b886d17a..aef3759a5be 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 a700c561f9c..b29bd3dd3b5 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 da1e4ae842e..29681a0dfd7 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 9b0a1930f70..a3810aa14d1 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 e3cec1cb1dc..9a805f1c5cc 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 a683b3449cc..02d5655fe0b 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 756396bd0f3..da6f36f0f75 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 5d832010b28..b361e103502 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 12e3218c155..f9786090716 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 5b548b66385..4fcb9306651 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 334207db994..5760da1502f 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 45ec2f277b8..bc78af477dc 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 9fd647b86f2..87b1be5d6a9 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 f9bf4afc8a4..30961bbb99d 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 9e963ec79f2..4fbed4a33f2 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 f0c80ca4ac1..92cf949b9a1 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 52bcacddf91..cf6a930e16d 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 031e09f1426..e25ea6e2c79 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 d35670cdb26..e42825cca8f 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 76e4957da7c..0af9216af95 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 22be8421b8f..2b49105ffc5 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 ba47c6d6486..ad8194b7282 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 72452970799..38656228a4f 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 bc9320e41bf..9b436de6a8d 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 e80b87d671d..6290b39e324 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 27acadfb465..592a79d4705 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 a79d10e0dca..5532f650556 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 d9edd687c48..8d3fe9e981f 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 0edd8ded69b..e6e581047c6 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 70b0a45c3f9..5184cc60a52 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 6eb50b95434..b6cd8bf1875 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 973f1fd68bf..18a18b20edf 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 7a5fafd998b..395defe3da4 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 b0b1582fb20..2fc39ca7722 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 59e0b15ef1d..822720a3187 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 d1aa1aa6efc..52bb39bf0e3 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 b64fffff7e9..582c0ceed60 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 a016bee9c33..09aa105de38 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 5aee923b510..60db720de5f 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 87b260f4fad..b1841dbff8c 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 e4a5d471bfc..40a0adf74fb 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 1912f3bacf5..57aa6c79de6 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 7ca260da615..e7b7bdb2f20 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 6aca84e57d6..a2f2bb2f006 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 681bc47ef56..463650f59f2 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 c3193a8259f..629f6c3e9e2 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 6c20246fa53..1eea0c11b07 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 561163128e3..ed4c4a2e460 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 491a3dd4970..bdc067ea864 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 e5e16c3f437..f0c5cdb44a8 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 14bbd7c714f..e2c46dc3b69 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 27acadfb465..592a79d4705 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 bb3f42ee72d..0efc8b926ed 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 188bbeebaca..8f16ebe4cb7 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 6eb9818ac99..87d589579a4 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 2fbfbee4e89..4f13ab5f2ef 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 42518a218ae..25b5ff8d79d 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 c2661f464be..b61e46e67e9 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 ba8068234d4..b7cb4eeda3b 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 489611dbc83..2ff8348cbd7 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 587c7d6d3d1..cf145ac0dd8 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 0981cc36f13..1dcde6c7295 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 3ec01935946..3053129b653 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 da9bf3824d5..0ec0df45de8 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 8c2faec804d..87dc1764c7a 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 9642db3cba0..62d02177aad 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 1b9b23778d9..ec7461fe9e0 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 9dfc0d4e2f1..d5ea7d43419 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 98181517f69..55ce5fed63c 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 5558487a034..17be178f977 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 697a4e33f22..aa5ee6df455 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 d58accfb2ce..577109a27d6 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 7998c62acd3..746548e3be3 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 9884c45e304..07ae07e353b 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 45261fcd5e2..8d20cc76756 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 52dd652fbd4..001f1a4b878 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 53961e64a00..0c7d530247a 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 8f43b107aca..686df317a61 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 b6ee36f85d7..60f7e36ca50 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 fc3007ce12f..c705f7e62a5 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 186b65d57b6..cc9d15fefc9 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 17c813e8099..c8ddecd93e4 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 60c3b3c3703..7f07883b847 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 9fd6f14e602..5b18d757677 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 710638dd036..ffdbd7cd5fd 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 d5908d53350..5a403c9e93a 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 451075e1889..03da64b9342 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 209f0ebb9e8..f4a6a751542 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 cc78f055467..db05fbf734d 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 32f16550563..7afcea4b2ee 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 45261fcd5e2..8d20cc76756 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 52dd652fbd4..001f1a4b878 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 53961e64a00..0c7d530247a 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 8f43b107aca..686df317a61 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 95a4cd52cc3..17a19938446 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 8d54f4d56fd..1286e0fb78f 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 4dfcbe06a58..cd65571ca9c 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 844b2fa14b8..383716e195e 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 c88d448e16f..b63470d143d 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 0e4ad9d3e09..6bca05887fb 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 3f104232f91..23556404503 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 ebe8218dd3a..9e199256cdb 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 3deee70b72d..c43a7b091ba 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 0b373241f93..87f5e93fa03 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 d27923d23dc..dc2961fd150 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 790d299c1ca..6a91bb960dc 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 f3f1e99a3e2..f4e3144ab36 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 2f443b1e289..052851f46d7 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 3558f5b0e8f..a9c006ed38a 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 e50b2e55905..77706059cf0 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 36fa89bf496..bbbced1486c 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 8d54f4d56fd..1286e0fb78f 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 3dd72e70110..a1ff8c72fbf 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 d31d2420646..0d858517189 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 2641301fde7..df9cb205227 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 162992990fc..0cac7532e33 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 6beb6d28da7..91530ef3307 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 7f1fee753aa..2425c1b4c20 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 d1ec1302a0b..29b3d260dc7 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 5acaa694a66..076594af920 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 162e086fc1e..f0c982e9fda 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 db027760307..aa5c1d6e0ea 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 65c65d0c6dc..8619f2b6155 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 e9dbfece795..88eb8092624 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 48344e5fd0b..abe609ed5d2 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 0dddc8b6f74..aea06fbc82b 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 9e2099c6d32..a4b3632988e 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 a700c561f9c..b29bd3dd3b5 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 69a1ea4f353..f1ca50d188a 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 19e0d4b7151..df853fc9a0d 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 cac704c58e2..85afcb9c6f7 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 162992990fc..0cac7532e33 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 a2d15c4cf85..31991436e26 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 7f1fee753aa..2425c1b4c20 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 4dfb169b136..bcabe365352 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 0e4ad9d3e09..6bca05887fb 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 029c5506e20..fd1d10fe453 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 2f8df874b66..8ebca745401 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 5c9edcd57ec..805bdb44cf9 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 a662f218295..c21e66bace3 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 09476a1a462..2fbfbeca391 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 8935acc5f4b..02c39608c70 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 c3445c7fa5f..8514e49040b 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 2034a1b0893..d9048caf74f 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 60531fd7b35..274afa3c6e2 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 acada5b8f30..1657b531f10 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 e7251b1b88f..615e04b7a20 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 e9c5890aea5..912bfa89e59 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 d7f5fe39708..b4eaec2c521 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 79e3d4a8579..ab3e7919599 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 3ce02be9c34..8b73e1b55ed 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 cbe81f41516..66e2eec5e54 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 70f9278ca03..4e419a320a1 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 523f0569fca..dcd762024b2 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 ea3b5d523fb..25e86a0e44e 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 109a7429712..0610160a165 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 d91e5b40a3a..6b56c2e6aad 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 1a5a63eb8bc..8826b4f8d59 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 d4776c73772..52081ac2e33 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 16a5a4fe72e..8ede0e1af1b 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 7e315b6dfd5..8373d6f22fa 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 ab1c9cf5108..51d627f700c 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 6ace70a4c85..7396823fdea 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 e207503bda0..a07a427cc1a 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 bf07ebcafe8..2c68e689cf2 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 789ba02dc18..5ec49482f07 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 7b9a0d555ef..416bbf483d4 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 40b39368cb3..00251dca0f7 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 c87caac5827..7248793bb2c 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 ade3dbbdf93..758dac323a4 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 9699d5b64c2..84425c2e61d 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 ba669f17120..513d0701680 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 e1c833546b6..2f07c59e0cb 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 859f43a5a3b..84fc5f70451 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 e057b5f2740..3dba9a25ff5 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 a2774fce5bd..b8ed34b9b18 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 4e6fa88dcf5..3c714993064 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 677df774796..9e928e0d91b 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 9d20351a6bb..6799a8195ea 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 7fe2d2342b6..9010cf46451 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 e856416c649..cd237fe8fe8 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 f2b4cc5ccf9..e78acc68bf3 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 632b29fc262..3684395538e 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 59539d9dafc..9f1dbf27072 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 8c6b546454f..67db707a05d 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 843c62d5714..aa8d14f64aa 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 a7ee2d372c4..f514e610dcd 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 3d6cb7e2770..b1e6ef92474 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 38dbcf54085..1a8040e2139 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 9f0e2a18a11..b641ddbcb8d 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 3f8fe099627..75df10e5e3f 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 84838d8ce99..2ac26f61bcd 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 0c0cd55809b..7ad03b1b1ea 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 6f119f4a1b7..c52db971349 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 ef368156787..710fc720b9b 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 6aa467877c1..6dc6933a765 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 5c4504c2623..d84f64269ee 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 1f04a70ead8..ef5f3250bf6 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 2956582c214..c532bc3b943 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 647ad42ecda..b7d9a70a458 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 edd97f43be5..835b7f8171a 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 ae809417577..feec83d3e25 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 33170c0db62..baca3b9f030 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 e57fc63becd..f4e6f9fde12 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 25c6fb65eb5..69408639444 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 3d775878d69..8d1b18b2ce1 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 14b41eebf00..75bb9e01564 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 1da79e21d35..d00d42979e3 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 da66f49025a..be9e8c7eb01 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 5fde6d156a1..b431ca208f8 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 cf2e4840823..3ebbc0863d1 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 6d2ac0d7c1b..258e75395a3 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 975980ea12a..f027072848b 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 890110c2579..1278995b4f6 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 3b7df12b00a..8c2958f681c 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 d5c89803b2e..80d3a69531c 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 554012066b2..8d90a59d2ef 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 8b2dd19c773..1fe31a5d282 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 167364f2494..85bf29d6cf5 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 b837aafff77..a40fc7db067 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 1124657a823..a8248d524ad 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 10b588ff992..851fb3c46f0 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 dc119eee34d..c015269fb03 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 a786399f7a3..27e393a96cd 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 7f2947a1f42..578fceedf1b 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 7980e32e132..1c94b2cdca1 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 7a5e5e99c48..504fa29fca9 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 5701f030805..7ddb33fb132 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 3d10b566720..5cc7a59b58c 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 490f8be6557..a2e0ab47151 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 773defeb3dd..1891a061833 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 9e14014c13d..f21dcfd5878 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 e2902ff7541..2223f6e92aa 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 27acadfb465..592a79d4705 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 988df5a03b1..39284d11cf4 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 f5264dd4d12..0f2d48960a4 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 80fc702e516..2213e5bfa7f 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 e4a12909615..3b40329d792 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 6d3f15689e9..8a9fe6689be 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 cae5be84a27..a332166d0bf 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 864309e0e17..20443d50007 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 3bc9603aeab..21f4debe747 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 a84a334f7dd..43130d42fbe 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 715d205e1e8..b99c2d15a3b 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 74759255d9f..f96ce6be371 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 bad611171d6..d6c655efb44 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 d924cf6cbd2..bf3968eb435 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 77d8cb48e73..8bdf79086c9 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 13eea40cba5..b9aa972c5e2 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 570ac979b94..6005c71d02a 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 3a4f87a8bb2..72036b998ae 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 41cb8d36596..67212efac06 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 a425b16d742..c435c06e194 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 641229db2f4..dbb111166e8 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 bf60d56d1d3..c3a2b1b70f9 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 0286007893e..d9d508cd83e 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 bf60d56d1d3..c3a2b1b70f9 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 0286007893e..d9d508cd83e 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 79fbae6e1a1..1befc127a68 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 1c2df7e1aa4..0ae952071b7 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 5ab309c962e..d14cdca49e9 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 7ca4f51a53a..7e1fa7766df 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 8ba234e928a..bd1aaa2e56c 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 08c304b79bc..6344663cab5 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 09db6dc7216..f98d21cd71a 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 f450a10a892..286e7517597 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 8bd4658093a..eefefe85d17 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 f450a10a892..286e7517597 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 bd114138337..dd8e87ce485 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 f450a10a892..286e7517597 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 26d6bc7d2ca..87fed8ee612 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 f450a10a892..286e7517597 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 8b224fda0fa..fc7ae59a415 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 bbcea7f2b51..c603c148fbb 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 10031ec9c44..070c6716dff 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 bbcea7f2b51..c603c148fbb 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 b22af69b66c..b5605a39c78 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 7a2b959dfd2..5186288c51c 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 d20c915315d..fcdef45b23b 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 766dd5d2d4c..2837dc43ce5 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 ab8c0a15d90..412165237d8 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 1c970f7eecd..c4f509afe64 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 282a84f07a8..2d1a204e171 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 1c970f7eecd..c4f509afe64 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 d04b46567f2..1ec2b155fe8 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 e8b11256d93..cd13e750121 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 507c04fa228..3caa8b55c77 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 f2fedf61cc2..93a4a4b7081 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 4af2664ff69..b195b99a27c 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 4e2aa301ff6..9e14db31aa6 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 d5f9add42d1..7f42e8c8418 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 4e2aa301ff6..9e14db31aa6 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 510885f8b86..f7a9b025292 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 9b6e3eec483..5a1d440d001 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 510885f8b86..f7a9b025292 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 9b6e3eec483..5a1d440d001 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 6b9782b5584..58291588cbd 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 e8b11256d93..cd13e750121 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 6b9782b5584..58291588cbd 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 e8b11256d93..cd13e750121 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 2d904f44e40..8d362461f42 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 227f8c54cee..ad95898e208 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 2d904f44e40..8d362461f42 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 227f8c54cee..ad95898e208 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 8fdbee75b41..9af49e5645a 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 217fd3769f9..8abc2ba0d7d 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 72113f7429b..973e99c1600 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 217fd3769f9..8abc2ba0d7d 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 efe92bcab54..84dcc6aec18 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 dde6ac247e6..fce15230377 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 472f717416b..5152610fafc 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 dde6ac247e6..fce15230377 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 5ed68b3a549..f3f00ab318c 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 1d0eb47f311..ec3df431d9a 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 5ed68b3a549..f3f00ab318c 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 1d0eb47f311..ec3df431d9a 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 5e1978fe7b5..879049e2d4e 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 2be4262e005..11779beecd0 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 cc3bdde45d4..d222e05cd98 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 e78fb23e2b4..a193b2e85a8 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 b1be195c0a2..b78349af833 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 c1bdf21bf7b..841c811d2b1 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 b1be195c0a2..b78349af833 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 c1bdf21bf7b..841c811d2b1 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 0c9f720be33..006bde05079 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 0558c47787b..077dc2877ed 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 6d759aa3a62..5bb016d2944 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 b95e5a7fe8f..c55036e0615 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 f37d363a79c..8f3b53ed29e 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 956520b3625..556c2a01911 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 e4b18b2ff6b..42241ee2cb9 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 d028328f42e..930e456871b 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 796116071c5..aed715677f2 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 1905c199147..59db8308fa8 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 6c7f9d9f442..ac73a57cf2a 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 fdff68a3781..54063791c39 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 c1cc8501ad7..653bbb1c948 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 e448675952d..d6eefdb12c8 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 d500593874e..c68c8d6330f 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 410b0dafcd8..db72ab33f98 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 eef0b506d6d..d716e86b5f2 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 26fddd7ea39..63236c2195e 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 f1ed8a89894..7f60c6242cd 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 c499c45119a..a30b14877b2 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 939fb26a206..0ab06b546f5 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 4dd6709316a..b74178b18fe 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 be255d57383..e108d044a8a 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 0c671598b70..e67147b03e4 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 daf33af6a5f..bc9e65989a9 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 7da92a5fc92..1b2ebe825ec 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 06e10549e2c..a0147cdc516 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 007306ad4fd..a1ed5bf03c7 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 084a7c02b1a..762a0b670e0 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 fa68039acb8..c663d75906b 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 5adf8b20d7f..bddd6e6db4f 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 2b49db7427b..74b82e3f1ad 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 91c250a40b4..e7af0b99b91 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 e0ac6ba9896..7b9e8b26df5 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 c722ac7fca0..eb4edfc27f1 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 7605ecbd6fd..f37180e70b5 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 fff6fe131d7..ed6121d969f 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 50e99f12356..797e1baee3b 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 696c9b20a98..fbf6057462c 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 828aa3fecff..25f75d1a931 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 47b670cec11..7ba45789599 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 2e80a176d3b..284f08bf9da 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 a1cabad6e7b..02a4f11d5f7 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 601e0f3518a..60adf231c6f 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 b2e20013e92..e7c8e7e7efb 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 5fb78ef2fc6..6a787d6e69d 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 8d259e7e65d..2d1cce7b8cb 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 75caaaed2fd..bd464e524ae 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 6ebd51faf98..c1982839305 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 e2fc3796ee4..a294c824591 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 73446559231..f11da26b74d 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 a0f26b03f53..8fb2a080d5a 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 ccf986feafa..a981107d7bc 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 8af5be8ef56..d472389d0f0 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 3e09155111c..d7e8cfdf175 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 71d401ee87b..fecccd8e337 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 9ec7e42e668..132cf9f2c99 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 59f6dd45ffb..f585305eb10 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 bf7f78825d1..414c67e537b 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 260e03706d3..b57c081203a 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 954e7a33961..fa4d2b833cc 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 7cb0592d570..ce9631f5556 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 0edd036553e..0b8c6ad56a1 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 caf69e50274..452825f2ca9 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 1cf6ef6fd5e..f3e3768a9bf 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 fe0c848595b..ac5df8ed64c 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 3d16cc5324e..382e5dd86e8 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 fe0c848595b..ac5df8ed64c 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 2c072a20c2e..25aa948ff83 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 d692e588c28..2ab9a85dcc1 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 7e4d2074632..24972812732 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 bd38779955d..91f6928b244 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 cb2c3ed378a..3f2b53b417c 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 3eed6f4cbfc..08e0fb99cb2 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 9b97f328a70..eefaa5d03f1 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 3f0e34a9115..c6c5226e34b 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 83b138acd2f..94b4050f3fc 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 9263c9ef382..288a6ea09d3 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 bd4c8d2a61e..581fcbf7cdd 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 84d8407d63d..b119fdadabe 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 16f76005f54..ee913d8a0a6 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 1cade84e82c..731ccd5f4fb 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 9cd100027c3..c140033f033 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 9263c9ef382..288a6ea09d3 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 665c54f26ab..6b89cf4463d 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 8256ead66fd..7402993819c 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 2c072a20c2e..25aa948ff83 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 d692e588c28..2ab9a85dcc1 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 7e4d2074632..24972812732 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 bd38779955d..91f6928b244 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 9b97f328a70..eefaa5d03f1 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 3f0e34a9115..c6c5226e34b 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 2f486700258..2d76383b905 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 9ae656007ec..f10e6b76b04 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 cd0f104370d..a4cebf7f2ea 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 fd74216da6b..f9ac7d60274 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 7032df38b44..928da89c2a9 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 c30395459ca..d4151fc27c1 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 4238c1f51a7..00c2ca07391 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 ff165a9f506..0463594a807 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 72bad9f1f81..117e8a327af 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 2771b89882b..2d8ed556f34 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 3260c73c8c3..6146e997ce5 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 93fe914a877..1a1aa7adf63 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 10a5f221c89..aac03191826 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 672ed839a14..188f60a800f 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 27384e3de02..97e9b65d3c7 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 51970cf3a33..b64fd46a808 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 d66783d6f88..aa9503831f6 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 8c112ccd827..dfa1cb832f9 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 fa25e4f3f7f..83ccfdb5204 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 adfa6aa5206..4ed559b4059 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 82ac0b93469..0ea62dd2404 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 c78ffc02c52..05c3b61b491 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 ec28c0d0ec2..af91469683a 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 ce3668a2afe..e1ba436a5c7 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 ef11185ec52..fd3ac9f6e8f 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 58049767209..20a0f20505c 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 93167cdb30a..f4eeacfa050 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 4ad2081fc6f..8905bb1dd89 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 00cbda485d4..676f12254f6 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 9130270a1a9..57a71f700e6 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 f095f83f497..8fafd103403 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 9924745cb24..bfada449c37 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 9784029f093..6091df11fb9 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 e06cf2d0aa9..b608505487c 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 9f31273b8ff..9b633db67b8 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 63933c2ab1e..97145af20be 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 24fa578bc07..c94058421b6 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 da23c20297c..d60bb590717 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 5d13546b31e..581afdc9279 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 3515aa4ac32..9bf87857158 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 3df3b3071ec..c2c6fd9ba49 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 60cbd878fa1..fd0e5702107 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 bf21b9e593f..683e12cba82 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 05b6a3b3e33..8da719490f2 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 cf8c095127f..3ef3d08fd41 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 24d77262974..b0e315c0bf2 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 1e226d09cd4..61875578522 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 d8de30c6b07..b465581069c 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 6230e029b81..7e40bb42bea 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 adaa6cd5e0f..1070c586e0c 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 a0446e93bdd..5813e272de4 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 1e4a18a1fff..838b31ff2cc 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 e0e8ab7b24e..fef28412e8d 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 d01060ee5a2..1c0bac56c9e 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 826e48a2014..8613f2bbd22 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 677df774796..9e928e0d91b 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 b96784f47b5..8a506e88e1c 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 ac910adb599..e4903dd23a5 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 fcfcf3cb436..9e96fa5b06d 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 8d49da7e9dc..e6f336f3b59 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 b5f61b28c70..7f75afd3428 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 03d035fcda1..f5fba00a5a3 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 d0f0d50e25f..1549be8a218 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 5ce54a9edab..7a533c57a46 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 672b7a339f2..15d619db7e2 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 366d8f54667..ec07c299009 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 9b23f9d80c0..0b111150edd 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 efa4ee413b0..a315d0dca1e 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 9b23f9d80c0..0b111150edd 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 efa4ee413b0..a315d0dca1e 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 9b23f9d80c0..0b111150edd 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 efa4ee413b0..a315d0dca1e 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 01fa854f0c4..4d2156af89e 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 3d702fff128..67485ccbc7e 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 01fa854f0c4..4d2156af89e 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 3d702fff128..67485ccbc7e 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 01fa854f0c4..4d2156af89e 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 3d702fff128..67485ccbc7e 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 01fa854f0c4..4d2156af89e 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 3d702fff128..67485ccbc7e 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 17b55683300..fadcf75703b 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 a063139e7a5..975ee36a063 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 ca8c52c141f..4fd89037a0c 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 e2a660a7dc7..5d5b018a09d 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 3738e943bfc..c5eef0eebcd 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 aaae7f462d7..232787390b2 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 0a0a0b10f1a..f7d7fd6920f 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 7becc668055..5ca25da3c5e 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 901593a0097..d2525cdd9f5 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 6c6e0406a43..61d8d90e034 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 1a0005f5f16..0150a12a38e 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 1a0005f5f16..0150a12a38e 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 c6748cc1e1f..b0aa95d360c 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 703da0e4289..f55a746215c 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 54a25a60ce8..671b01fe3b4 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 7721a952d7b..997a58693bc 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 256428a776c..dd7e204004f 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 a987326f10c..4fbc878a4dc 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 165c131a5b0..989eee8c413 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 ec03325b8c0..2fd2c246160 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 476260ac6e2..13076aa68ea 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 e6222fa5b6d..997074e9464 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 810d3752ddc..4ec19881d88 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 a5739ed2dd4..803935d70a8 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 17f29607d55..fcb12085ef7 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 abbea846e88..2fe8105b5b2 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 7a797ddd38b..dd3f94d42e1 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 c6f36fcdc78..7bf4a720f5b 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 17f29607d55..fcb12085ef7 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 abbea846e88..2fe8105b5b2 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 1b0395412b1..42b25febe31 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 4c42a5c8066..035e7340a26 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 1b0395412b1..42b25febe31 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 4c42a5c8066..035e7340a26 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 f60ac74423c..0e3392fbcf7 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 edb0a852a7f..f16b907c891 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 f60ac74423c..0e3392fbcf7 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 edb0a852a7f..f16b907c891 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 c5796616fef..8ac45bea43f 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 1c43b37e8fd..b439992aa58 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 1fc049bf766..3b6ba2c52b2 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 3629bf587c3..534cc43a12f 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 05400e31928..db50985d42b 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 1df42804fc2..744fbcd6d68 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 c8c757454f6..76bc1321c70 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 5d36925f85b..45006d6a81a 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 58a7f86191e..5f8b0675430 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 98463967ee0..dfa12a641ae 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 8b4363125cc..872c4c1e643 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 6d6c422461c..787b7669595 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 fa9a0bea7d2..d58dff38ca6 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 677df774796..9e928e0d91b 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 41d7a5623a0..93e4ee4bb43 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 b0e11b5559f..91b0c7cb776 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 5ab0f44e1ea..6d2fbd0f1d8 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 c9266161782..14239e515f4 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 818e6a0a8da..80491ebdb22 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 aeca893c15f..86b83e79f1d 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 818e6a0a8da..80491ebdb22 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 aeca893c15f..86b83e79f1d 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 65193886ec2..596142dd121 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 8a50ec14b18..7a85ec89fb5 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 f1ccaceb082..1975ff32cf2 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 2e0dffb2f50..d7b2298745e 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 d64b66cc0fd..3115be9d135 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 a37cb180d83..384b2394d6f 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 838670581c1..46723e292a3 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 9955623cecc..56e17f407c4 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 838670581c1..46723e292a3 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 9955623cecc..56e17f407c4 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 6597edba578..8651469fc72 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 aef49eb607b..f737158a9a9 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 634c8bb7379..ab1af391b64 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 4375c577ac9..94189d3d186 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 8b4c580a849..754f50083de 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 a44b92db6eb..64299a49dfc 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 180fcf1930c..50f817c633b 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 fc1e1976138..69a45712dc7 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 05dacb1e96e..0153c0a4db7 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 fc1e1976138..69a45712dc7 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 9cd730f4018..1c83c8c9abe 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 187b73e2f6e..1faf726b67c 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 ce482270b01..7d9e000b13e 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 ec00eee5892..6aec3570ce4 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 0ff1d1c4b1a..38db7d3b974 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 4ea6bfacd81..844f6bb656c 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 e47c4597a3c..f03bbe64855 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 f686e6c08b0..0f9c38a73a6 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 9b23f9d80c0..0b111150edd 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 efa4ee413b0..a315d0dca1e 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 e697aedbf9f..31481240463 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 56de735ae01..0f065556764 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 1671371241c..92f830b9f64 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 268a2b2c870..9cd37d0b0f3 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 ce66ea30b73..d58b484c57c 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 7e3d4776cbb..8cf6614344b 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 d31b028f794..406ccbba20a 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 be5495854b5..907af7ddceb 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 46569c8e5c5..acd1d8a1135 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 d63459d8130..52fe08e1280 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 183dac56ee3..62932ec9a23 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 b3dbc26698f..7943bfa4a98 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 8cfe8cbf805..c952057cabc 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 b3dbc26698f..7943bfa4a98 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 2eab878d223..e942730fa7d 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 f0acf96a180..064640c2fe2 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 3aa3146140f..b0e16b5948b 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 e70e023c038..d3ec403b0ea 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 25973c386c6..1631c3b3d33 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 e70e023c038..d3ec403b0ea 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 65d562918c6..68f8d7297c8 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 b10900dad2b..10ddc7e94a9 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 65d562918c6..68f8d7297c8 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 b10900dad2b..10ddc7e94a9 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 a6d536ebead..840593a5331 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 770aff00705..079386098c7 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 a6d536ebead..840593a5331 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 770aff00705..079386098c7 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 443fcb63e84..b78e2a07fcb 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 9eb1de4b10d..8d725ac9a87 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 443fcb63e84..b78e2a07fcb 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 9eb1de4b10d..8d725ac9a87 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 d360c9b2bf0..8de4dcf7a93 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 b6422081ad1..c7642c637d0 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 d360c9b2bf0..8de4dcf7a93 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 b6422081ad1..c7642c637d0 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 5bab588ed96..82476b170ba 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 2ab10544c9f..2c5ad486409 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 5bab588ed96..82476b170ba 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 2ab10544c9f..2c5ad486409 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 c1b2a7fb0cc..e80a18bed04 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 d891676c040..4c6b5927f18 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 9dfc5ba5cee..318cdcc93dd 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 d891676c040..4c6b5927f18 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 5ba8fb64da4..e4331765f28 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 e8bf15cb323..92dd7021c81 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 28354561e06..c8c4b9b2c1e 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 e8bf15cb323..92dd7021c81 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 99bad763972..8f2f5216cf2 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 a997eb50728..ea239f28101 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 f46c12875da..fac1beb7108 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 a997eb50728..ea239f28101 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 8505f6db667..d07c8a208ea 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 8fb744d6720..2d8b3bd930c 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 8505f6db667..d07c8a208ea 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 8fb744d6720..2d8b3bd930c 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 73372f36c85..4d5befe2a9b 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 ad596d24dd3..00ef9808180 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 2a737f12a3b..f05ed52adbd 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 583c1d5b986..8f7750d3a7a 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 73372f36c85..4d5befe2a9b 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 ad596d24dd3..00ef9808180 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 4cdb118be48..c259fec1fe2 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 59a5f2af57b..bf97d7b8e6b 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 b10561a0ab8..9224708eb34 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 3148d192a83..afcbff64723 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 fd18e76368e..a7e4b7ed069 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 f66379b66c2..6c066e0a043 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 f83565ec7db..5ceb7e92a7d 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 eeda62d007f..b082899cbe8 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 f445cd6a6c6..3497a6d4f08 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 eeda62d007f..b082899cbe8 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 c7f1f655df6..f3c6c9265c6 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 eff8d5dfd44..64639f9663f 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 87ba5778a66..7784f78f7ee 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 eff8d5dfd44..64639f9663f 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 74011cab412..42c9c7a7e63 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 e0e954f94d5..e83b499cf30 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 8411a2c5c97..412622dcbc2 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 e0e954f94d5..e83b499cf30 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 981e01df7fb..6b6f7bee1ac 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 9772956c89c..75e736537f8 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 6eee3503c6b..c1c0932a5b0 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 9772956c89c..75e736537f8 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 834db9524a1..50b7a3bce80 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 76496ac1546..4eebe3be9aa 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 94041fd6cd6..da8013ccfc1 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 76496ac1546..4eebe3be9aa 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 e27dae42054..2c01fb927d0 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 2eb14de4a70..e0c6e06d31c 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 e401efaa7e2..2ccd8abb2ee 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 f42d459bc67..5a2c8076ae7 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 e27dae42054..2c01fb927d0 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 2eb14de4a70..e0c6e06d31c 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 e401efaa7e2..2ccd8abb2ee 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 f42d459bc67..5a2c8076ae7 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 e2e7f1c30a4..f615fc9aff4 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 7a007485d65..e32817017bc 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 903337facc0..f3242e4019e 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 ecbf69d9898..5e67a68b1e5 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 e2e7f1c30a4..f615fc9aff4 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 7a007485d65..e32817017bc 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 903337facc0..f3242e4019e 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 ecbf69d9898..5e67a68b1e5 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 11b27ba0c13..a4eaa3b6848 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 9c5c66b02f7..92cb2338fab 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 24e7f7a2e53..b69208f0b18 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 58b274d4591..137502c26e3 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 05d0301082e..f8309c84f9d 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 40e7a735f40..4c5735a2113 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 dc45618f1b2..97964753325 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 d507d51f68a..fd4d661bce5 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 5bd3be9221c..5272a44f624 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 6f0c5be31c8..cb9751f1380 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 7689d73c960..2b08719a5dc 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 98c1eb1360e..1df9c9f8415 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 7c384fd0560..8e6bff225e6 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 c50ec22b46a..209e8240a7c 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 61eb9055fdd..efa5a88a57b 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 08c03bfd1d9..3a0f6148e11 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 b2a0a61a06f..4a7c464a1a2 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 6936aaad360..a8ccf7a6699 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 ee1a4aae8e1..47ff2a6b6cf 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 a6f964ee5c6..91f23ebe7e8 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 f377c3c30bb..9a851bfd92c 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 97ec0aa83d4..68d74431fb7 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 cfc51a2bd7b..9126a9b7413 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 82f28b74993..793353a3af5 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 def59fc7064..773791a6869 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 1406cf6663c..65c82355307 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 56d6a182b36..860fc8875c0 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 ee463296b2f..5e277f9aff6 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 b920a3f170b..4765d276616 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 324b5b1419e..d20d3012375 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 69de91e57a9..7e5c80e8cf4 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 cecd06f1152..a2f08085fef 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 4e09bb1e5c9..18394ca698e 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 cab22e921f7..fd9f800ff84 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 a6e7168f949..255ff91e06d 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 4befadbc6f5..852fdee14b8 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 ca55cd8c5a7..e2a4624f85b 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 4befadbc6f5..852fdee14b8 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 6cd800076da..c4fa6639316 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 015c97d34e0..79e5f0f7429 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 068511efed9..b355d6faf00 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 86b8f4851cc..2b34fda6cae 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 d8a912ebbd4..6a7808cbb48 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 5f76bc98b22..53c997ab4b8 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 c3942d84aab..335d31ce454 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 bd92a7ca805..7be0d99e012 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 96b81a74f3b..b41f2b302d5 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 d87d948923c..8065cd6f752 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 8b319ecb09b..88692648abc 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 7f5b20425d0..6e789956597 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 1f213df9761..b66d32cd4e6 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 c9900939b45..54be9922636 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 12c47bed045..5ac871759ac 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 dc9bd09ae82..1950d19f16d 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 f25f9b2e76c..72948536576 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 9ecd00d9e18..e01485bfd25 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 f25f9b2e76c..72948536576 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 9ecd00d9e18..e01485bfd25 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 b7f256d2a24..85f91b9802c 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 953e2dba2a6..65b51afa4ce 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 b7f256d2a24..85f91b9802c 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 953e2dba2a6..65b51afa4ce 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 2f9719cf4d5..6c145503bbc 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 015c97d34e0..79e5f0f7429 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 49a8e3e2fff..72f04a27530 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 f3b0d67a5cf..5c70f50e1ef 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 01336155b0d..8af4dcdd341 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 9bcd24b5a2e..db9cdccea06 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 01336155b0d..8af4dcdd341 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 9bcd24b5a2e..db9cdccea06 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 26fe37cf4a2..9d4e336e52b 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 9bcd24b5a2e..db9cdccea06 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 3738672c147..e96f3276796 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 13a2d997912..3151a40622b 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 f6811de817d..925ba641459 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 e03172cd5bb..52205e96a45 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 b83ad5764ac..ed86c3a6bb7 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 7aefc1ba586..46af544479f 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 b83ad5764ac..ed86c3a6bb7 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 7aefc1ba586..46af544479f 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 76d5cef1d73..efc4ead4c24 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 d627acfbf06..60de0b14a65 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 34205e7c9b3..3007f2f38a3 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 d627acfbf06..60de0b14a65 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 9c8ea5ef416..dd9f29af6a0 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 db12670a52e..78497fe7065 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 7e077c360fd..28faf96c55a 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 497c6bed0ec..f85f880ee92 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 10d8a027782..dd4bccd455c 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 6eedb0ce129..45e4d7b9147 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 ec9c9fa685b..192ab26168e 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 69182dbf32e..1a524ef20de 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 ec9c9fa685b..192ab26168e 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 69182dbf32e..1a524ef20de 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 bdbf2d06927..4f36cf1afe7 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 9545f6d01f4..a3c65b8ffd8 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 ed50333a143..c72a11d82cc 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 0e49d8049be..af46aa6c7e5 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 a0cdb48c54f..f3b011a5b96 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 67bc7780928..74ba6d04c8f 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 c881ec95808..acf24d162a3 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 74ec8a8817e..2e5c77c32e7 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 c1930247e1e..63e80c23a82 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 9cc5b10e579..c6e6e138b91 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 93f3e13abdc..8e6cff52232 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 6dfad7107d8..8fb731be710 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 0b2916a778f..bc9639555d1 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 9cc5b10e579..c6e6e138b91 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 2ac4e58accf..22c87d673a7 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 6dfad7107d8..8fb731be710 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 5db77a83721..8c53d8df062 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 f18f971e340..e609c609dea 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 dcd72c3644b..7d8228d9df2 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 7bd57dced92..7680ca8e2c5 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 5db77a83721..8c53d8df062 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 f18f971e340..e609c609dea 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 dcd72c3644b..7d8228d9df2 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 7bd57dced92..7680ca8e2c5 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 5db77a83721..8c53d8df062 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 f18f971e340..e609c609dea 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 dcd72c3644b..7d8228d9df2 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 7bd57dced92..7680ca8e2c5 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 5db77a83721..8c53d8df062 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 f18f971e340..e609c609dea 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 dcd72c3644b..7d8228d9df2 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 7bd57dced92..7680ca8e2c5 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 f9074cbc449..b4779862a31 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 9cc5b10e579..c6e6e138b91 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 9bf69a68d5e..5eb27165cc8 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 6dfad7107d8..8fb731be710 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 cafc1ed3692..43cbcb8683e 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 9cc5b10e579..c6e6e138b91 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 148bc3d7018..6176c25221e 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 6dfad7107d8..8fb731be710 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 d85c21eef6b..ccf7fe44441 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 6c365b448e7..673930f72fc 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 1cc3983a9bd..1b6a407d74d 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 81c0a36dce7..8f34f5782e9 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 60b3fc4b2e8..561f6635fff 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 e765d62c894..fdaff6f5dd4 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 579cffac110..e72c20a36a3 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 6eedb0ce129..45e4d7b9147 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 ec9c9fa685b..192ab26168e 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 69182dbf32e..1a524ef20de 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 ec9c9fa685b..192ab26168e 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 69182dbf32e..1a524ef20de 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 765c0bd9b54..da9b34677d5 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 6357843c101..c88ae17488f 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 765c0bd9b54..da9b34677d5 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 6357843c101..c88ae17488f 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 f868f6da383..b4befc78b52 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 9167a8f8728..3f843f91ce8 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 f868f6da383..b4befc78b52 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 9167a8f8728..3f843f91ce8 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 12d8264eb50..226ecd1cd51 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 c2eee51133d..58812a1a463 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 12d8264eb50..226ecd1cd51 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 c2eee51133d..58812a1a463 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 9979944c01b..38c3fd7bfa8 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 0647f6d85c8..749d3a93dd1 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 0b01adac67f..bd0575437ad 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 39ac6a1cf61..bc14e126c8c 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 efd756140ef..928fdfbe6b3 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 042a1fa1f82..092be0626f4 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 6e72c8b0e37..09785aae9b2 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 605499201fa..12d2688315a 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 ced9b104512..77ff4151bb9 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 ad111d27808..953b52ae969 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 3e46e764ad6..ed176892965 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 49ed155c1e8..6566a5e6665 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 2759b9721bf..4cb030c9f06 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 bd4f765af6e..c7dd9e0fabc 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 a978b6d15e5..32b2382ba62 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 62ee9094f0f..3e99fb069f1 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 861e4ba7c38..4248e3894cf 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 dfd0049134b..7c76150b74d 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 cc4fdb3c0df..c12a18b5955 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 5f99b963797..e82fea9dbf2 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 9303b661c55..ca6dc76e35a 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 afe87ab9ef3..8d19a0b518b 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 2396696b80c..314dd9fafe0 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 56adfb5dd1d..63fe305a797 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 7c5e34c86f0..359db3f1bf7 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 f76bc362062..7af0eeb6296 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 112297acf6c..b505bca4dfc 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 8eb8d1ef052..ba85a5d7b94 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 00dd9f2b4e3..bdaa3ee0ef8 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 968922be3bc..571ac104863 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 96ec02607aa..5b080d5ce36 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 973d0269501..e8492d0e09a 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 857f41ff4c0..620d00b7df4 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 4e9622216fa..b8cbe1e72c0 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 024f638b66d..a0078097414 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 1c430542095..547ed0988b2 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 b5a0100c639..0102068c711 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 c4e4ce2d14a..51b4e533ba2 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 15bfd949a76..50a2ba359eb 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 53a375c8b26..08a56983761 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 65e057972e0..29bd2b77722 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 789e3386941..04f9a429996 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 7b9deedde58..053cdc3a1df 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 242bab593ac..27d72b82761 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 394e1016d1d..8c8d04a30c7 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 b84f8c8cd24..ef635b0f73f 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 49e254a267b..e06ea1903d2 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 ed9757150f6..739698830d8 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 c737483ea4b..464f4090bb1 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 5784b28a411..bc9441ca6e6 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 67969e95ca5..406e55e6f54 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 66ecb091f95..7407a1c10b3 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 9b9ff73f75f..1fed2fd33ef 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 838e2a93368..500abeda22f 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 0711a957f85..85666d4cd52 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 a9d6c973d76..02d5383ff90 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 b3e60b46c39..8fc33c9eeee 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 b00d9f4887c..dea13b8c071 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 b2ff1ea2abc..d5b1623215a 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 2361c777b73..8f8d1ecbc58 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 225acc3ed2a..f27cde16a51 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 5d5c2dc63bc..f3bac10442e 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 96a3e35cfd0..ecbf9c4306e 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 33055c3de51..099b033f282 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 307ab72fc1a..cd5f0c23bf8 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 139a3059e0a..17505fcb46c 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 8eddcc5359f..5e211ffd361 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 71199647f95..bfe2ed9d483 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 50fa6428daa..8451ce30da7 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 953e2dba2a6..65b51afa4ce 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 51be213b8d7..d2ca609f625 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 71199647f95..bfe2ed9d483 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 b42da7228d1..ba7527a0d01 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 953e2dba2a6..65b51afa4ce 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 be8037477b4..55c67718091 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 de54c3b9ea2..ec40e826fb0 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 0b79e4c2161..17a89c42fef 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 25dfed58425..474e69891aa 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 3d46be05603..5480a949809 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 13773b4a7bd..b4939c5fe3d 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 c3551090318..e25e86a754a 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 45d9716e42a..9209119effc 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 6160ba36b26..5cd83a687e5 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 b26bf3deda3..a0b7f18b605 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 6051307ba2b..5143e3efb6f 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 889c16c2f63..87a4a106939 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 589cac6d955..d237596da29 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 d39c3829744..099a00432d4 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 3bebb3d0234..0eed9776339 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 c37f5ddc3f1..b18b9920f5a 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 4bd1590153e..62d15145301 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 27d796e10ca..8bb692e22e6 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 5bf3b684459..1f1b017bfe7 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 c5a6c2727db..fcd6af0c75c 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 52e91d199f4..4cbf4455aac 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 b1923b99cfb..d150cc337a1 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 b5168192199..3ad780ea42e 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 9cc5b10e579..c6e6e138b91 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 0821584c354..29fa6fbaf97 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 6dfad7107d8..8fb731be710 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 d4ccdece2a7..0dc7f69ff9e 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 9cc5b10e579..c6e6e138b91 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 9712cb8fd33..d41b78867e8 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 6dfad7107d8..8fb731be710 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 ff383adb88f..5638e1846df 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 9cc5b10e579..c6e6e138b91 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 9a025bcf964..7274b4a2018 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 6dfad7107d8..8fb731be710 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 d1c8f4c33ce..42e0f10c82d 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 9cc5b10e579..c6e6e138b91 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 2b49f721d2a..2c2646a2f67 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 6dfad7107d8..8fb731be710 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 86cf9521aad..1f6d178c0d2 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 9cc5b10e579..c6e6e138b91 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 6fc4f9f9b8c..ae1b30208c5 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 6dfad7107d8..8fb731be710 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 69ffd912df8..333ff617da1 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 855a862882a..98732b65cb4 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 4bc6960de35..f882cea0c6b 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 3dd7db6eea6..6d0d9f3f283 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 b827abf28fe..732e2b1a3cc 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 3dd7db6eea6..6d0d9f3f283 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 7778b667cc6..955c3013b4e 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 e676c20f0de..6d958ef0525 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 ab093909ee7..688637d98fc 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 d4a961f015a..7d190f4b61c 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 b7a7740e9e0..9f627db0617 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 d4a961f015a..7d190f4b61c 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 ed1859e0ecc..7e5f1f8b693 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 4e0c5132a7d..9ac2d613083 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 ed5e671d958..37b2a388fa0 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 7ee484a5be4..1c614b39c2d 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 c50e6d66ea7..cc5c092d108 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 44bcf1507e7..bd2c1f4ed7b 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 767d2469d81..320ee813470 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 844723daeef..1d8caecace4 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 c33b2c03451..de13470af8a 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 844723daeef..1d8caecace4 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 379b2ddf9cb..8629ccf85ea 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 8360afe46ea..927e9cea714 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 556822b3184..e4b50afdf20 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 30b971d2f46..d27b6b9232b 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 ad30c3f2bf4..2c1915c3d14 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 b72f9ddb1a4..153635f7265 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 e8e7ad7fcef..a1a8b02d6c0 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 8b45840b05e..8b2dae07406 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 e3ebd7d3ca3..3cdbd49afe4 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 b2af1ec478d..4dda69654d9 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 aa8e62e6180..9237e0eae49 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 5fec1650098..5fd008881f5 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 63c3722438e..08baab2364b 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 20490dfa3c9..5c0b30731ab 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 092b56a4380..bcdb98d3018 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 68f6bc754cd..338119b7d33 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 03244c91499..06093231549 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 e3d71d5149e..cafb0ec4e61 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 9180f23b3c8..c2270dcedf4 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 fc21e65a9d1..363315627bd 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 2f9ccd78193..23d322f7368 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 6cc4efcf9b4..3bc16045a16 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 fed039a458f..38bc39adcad 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 b08dd9a9c29..d32616569a0 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 c718ea3c8b2..c01a23e206b 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 300357764cc..b2790c599b1 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 b41f3e4e32e..35a4c826ce8 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 4ffa8c1cf1c..5e273aa6ca6 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 881f5ac520c..c4048cc35bb 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 e9e4709746a..ee4a5240d5f 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 ce244161879..79352575d4a 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 1f019134048..e610cf8d3ff 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 b22484bbbb2..2f55efd1b2f 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 b9c815e85df..93368d3cff9 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 1ca6516861a..f9996295552 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 706f4ff183f..24bb8b15ac8 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 4b9223bace0..088d54fe021 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 346a77c81aa..56e0de90a60 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 69a922c33ec..0b2e105ba19 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 13ec4d86ada..6a5f33d8b63 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 9a5e1d5635b..2781ba11acd 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 63d75464240..daa12a9a081 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 30a654f36c6..d55f92372e8 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 7dd0b57f08e..9692c3c26c7 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 a13544e59d5..71b53fc863c 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 7027d2b7962..8ab5c4198b0 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 45a8d244281..4e867617e3b 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 5f00d9244f5..2d52ef263b7 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 00229b8f823..77835414684 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 3bdc432d860..835e4dff3f2 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 ed410750a16..3355d1c85e1 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 8be9ecff44f..241b7917bbb 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 e3c406a00ab..08eff85c23c 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 8df06a56e3a..66d07e54dd8 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 6b3f294a202..23b857eb889 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 9b706841521..9b5b507c5d3 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 07cbb64f56f..a51f3cb050d 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 146c9e0d368..d7832b6415f 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 443009584a4..7dddba38ac9 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 c80e42550e5..ef1c36369b4 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 505874ebd26..b6fc29779ea 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 fe2116f7a25..be41009394d 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 ad893e1b4db..e40cf21d3f3 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 677df774796..9e928e0d91b 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 966834fca94..33c61bf858e 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 d52a5b70788..b5ef8063788 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 18cc01ab973..dc1a19ffc9a 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 d52a5b70788..b5ef8063788 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 627ee556f5d..b922a1f68ff 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 677df774796..9e928e0d91b 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 d5d8d98fb22..03c9a416412 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 de6229e440c..cc68ad68923 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 b4d16b66f15..6c6ca2ce17e 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 677df774796..9e928e0d91b 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 18c353125f6..f6e5b5dfbef 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 d95712ffed9..9d1c1502c93 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 94946821d1d..554675a0319 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 a641339eec9..5fc7997acc8 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 54b9457cdf0..c00ec00a470 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 eb98e05a7d2..3be21b24f8c 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 89626efa984..e2479feb8cd 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 dd935ff9462..1284bc9446b 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 53e845dd332..b8f22e0738c 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 1863c9f8c79..8633813171e 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 df05cc91ce2..0e02354978f 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 39025278535..748ba918a3f 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 b8dc895f556..c1f9775cb07 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 6003f6ce3db..5d3461f0511 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 868365b7251..5bd504e26f2 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 4968511892c..2d63f1cea33 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 bc7ac24b6cf..c7d4ed0f797 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 7aa6eb49b52..d4f19337933 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 9973fc4024d..5f939a54b8b 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 1179aaa0d8f..3b25e54fd5c 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 05557ea3cdb..7af20b6a163 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 54ff60065cb..4e127283b3d 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 8d66871f4b9..5c5399fcdea 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 5bc82e12512..2969894451b 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 21c909f622c..813453562f9 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 f34eb73ca0e..5fde771ba99 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 3eb698959e9..30974c71a8f 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 9e977f5d2fe..12d3a958b13 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 1899c89b647..0a8eee358d4 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 d0a49b9c06c..95e4b493974 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 37af5732b31..c7fc2994696 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 0df1e79354d..df7d635d38d 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 9ceb0dbac89..70efd17841f 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 ac4311ad386..00f0fa56348 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 c30ef816781..6fd010d93d6 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 34309eae834..b57a8e6d53e 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 2643a2e887b..0522cd989df 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 8770f55c5f9..948b8a87019 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 4ca3dacb20d..3d571a03253 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 51111dc5499..cde12748cc9 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 6d11c49c29d..1594e77b95f 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 8770f55c5f9..948b8a87019 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 0742ae837f5..2c55a790e89 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 51111dc5499..cde12748cc9 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 acaf8399d13..d0c8e9391c7 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 6de30d7dba9..e977ccc7150 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 c46c2f31f19..103a023b325 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 98efcd52d95..c292538bcff 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 5d8ab4a5ea2..a467cd4bb14 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 b9df1006f48..55ce67f03bc 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 5a1a48c4384..79a390cbdde 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 477740e10e2..a846e7e4a64 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 9c117553453..74b22877fd6 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 9e71e2614a4..ede7134da82 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 2191abf5dcb..df19f079a0b 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 4e243811784..043431888e0 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 4b2b42995f6..2c4ffcac8c3 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 b5f9c25dbc5..56835ade78e 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 8fecb4dc14c..46dcfaa1357 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 3ab5f554f50..241d544f497 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 5c5ac9ac6ff..b0497e205b9 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 32179abe297..040ebd0d067 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 6e65a93a0f3..946117f70fe 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 2aef37743d9..d3ff2de5f69 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 0aac050e8da..59a33efc0ac 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 677df774796..9e928e0d91b 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 fbd6555a5dc..381485f1f4b 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 018c078a7c2..2c98d6f2a72 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 196d493d723..8d75af50a39 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 1519bdba714..de6b34f7edf 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 77f65bc4cfd..c179764af8d 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 a75643958de..339bf92a9a2 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 b4e3ef39c00..f33c7ec3f68 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 d83d9bdfd44..88d9c3dd408 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 59debb9fe34..3de7afa3a88 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 a621dcafc76..2a679f12fe4 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 cb5a75ab660..3a85599da2e 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 f7fad7adb90..f0ae7587e22 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 bffbc09f41f..a53ab06fdf2 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 f9af0274245..120565d211b 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 95cf1323ae4..d13a0aea74b 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 4ba39480d55..78430531b40 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 c867f607204..1ccdff2fd59 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 63c36166607..b18c427580d 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 42bb3878719..751a72f78dc 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 8db68882c74..ce531605e2c 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 9461891ba99..a61696e3ab6 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 4fa6a5e9c9f..7c8e3245bf8 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 ee91a020676..0b307fff065 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 40c7c402d1e..0c667db5e0e 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 ae69facba30..2f30ae675da 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 01c6a37b7e9..91ca63410ae 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 e9067a324a4..f4d38c0e0a4 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 de6cf0dd36d..f75ec8efbb1 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 10550059d5b..37f7c9dac02 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 96ab3eef019..e55855dcc56 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 46a8af1da67..a42d40ac475 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 f42334c2cc8..2b3892f6267 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 dfa203df2a6..60ca29c2d52 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 f5fe1d27da3..74da1eea02e 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 05834c7f286..28f5c5075c3 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 8fdebeb6448..8a75e656f6a 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 9b5a96dd812..283a98ec926 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 14e0d247485..783bbd85497 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 ee17bf33cd1..023893423b3 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 677df774796..9e928e0d91b 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 086d12e49bd..6b42bf71502 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 7a2182bda9f..dd877876de2 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 93baf736915..7326b5e12f7 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 b25d2781def..b78a5aaac5d 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 4095d8e0eab..d7a38cd0dbe 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 2787a8bda2c..f35c0ec9467 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 90d12d199da..e0f4783bbcc 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 adc243faf60..3a663da7ae3 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 310e5ec68a6..e050b378718 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 69452632992..d734497b764 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 22efad62ded..b9f9ee9f4d3 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 2d290164fb5..09b90bc5fce 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 653c360846b..111d0c78952 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 f1f7b2fa455..2f92097dcae 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 ba9878231e2..987fea54e40 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 c5ff4a090ac..0e3859abf65 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 533d2205d1a..5dacb836460 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 0c9046695a2..b7fe9426919 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 5a6557891c1..998e69958f4 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 aea5f83694d..86e076753f3 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 d9ca022b440..f77cab358e4 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 6f855fb0f66..9c6862322aa 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 3cf2a8c2081..35d4a522e65 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 b0df1077558..4dcb1b16d4e 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 890a447feb5..45ca2ffa716 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 ef5e1713d5c..01badd98087 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 9202ef14dad..cec4612872b 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 aef2ca78f6c..d43a24b89e6 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 8c91954b63b..943aec80241 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 2657c1f18c3..500bf52381a 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 6516f9faa19..a16ecb66b5e 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 b0df1077558..4dcb1b16d4e 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 9ab101e3b74..a29c6d712ac 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 ef5e1713d5c..01badd98087 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 9a2ed94a728..6eb22ee386c 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 1519bdba714..de6b34f7edf 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 1756f952fce..5cc75aaf5a6 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 8ac5caa945d..edb43b7967b 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 7c47a3826f0..0e531e4a194 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 8ac5caa945d..edb43b7967b 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 098da0c50fd..17cf75fa568 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 8ac5caa945d..edb43b7967b 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 ae66d03ce6c..1c1254e337b 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 5bfbc38637a..d27438a86b1 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 c495eddf2dd..c2a8b0e15ad 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 7e606797806..926bc3dc93e 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 873bc1f8217..5969a8e8997 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 f66da0a77a2..0c1179781a8 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 f98531c5c20..6df76d10971 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 a0d5a90d7c1..7fcb8e9fbfe 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 8cbe7a539f2..9e95c75c26e 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 96e72e06fbf..e39da669074 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 e3c95e28346..51c92fabe1d 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 252bfbe92e4..ac214dc0c4b 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 bec136a6dd0..6c5b5be5867 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 1c2913cccb0..f8d735bcd4c 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 b09df6195c5..6339dbdd439 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 e9fb8e242f6..29d93b7613c 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 df1979d754e..709642a04d8 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 d1364fd36cf..40e4d6f9e90 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 62bccc1499e..45c38ce1622 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 1e6bec9d3e5..3f7bd3563a0 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 bfa74e72fee..3d7a62d6c22 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 ca69f0732a1..986f1dec448 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 71e0f10649f..b7be1ce59cf 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 88bb2a5d7cc..e5767df31c6 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 14b11c11747..c04b40ace26 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 2e6978c5507..90aa9b565f5 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 166a57589fc..d661f33a562 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 c87082fd7d9..abded667fdf 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 9a72b11fc89..794ae4d8379 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 2fb06aae22f..3633c951154 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 47fd955c8c6..e606a760e5e 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 b414e3d6cf4..e5f7de6eb6b 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 84981302978..7abee51d65f 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 677df774796..9e928e0d91b 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 2e2b9b07c0c..f619c5b62df 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 e687f2dbcae..5b42dedf499 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 987f64cd30d..cbecbb1a2cf 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 bf0dbab3471..2259f2330ff 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 cf6fe33dcb9..fda1a845898 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 8d0b334f973..331d6b57562 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 62e3deb03d9..7bb8253008f 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 bf0dbab3471..2259f2330ff 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 66b8a541418..43165d29e49 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 8d0b334f973..331d6b57562 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 5d33d00677d..5fb021a9ec8 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 ab9b7a4b1ce..1ea81e3c89d 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 1fd69899fdb..31c938a0862 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 54e4f106c47..5354c544f60 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 44cc5d4f2de..f6b8e8afeba 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 82d6003d82e..d18c2b804b0 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 8bc49809bd6..6da5ef54c8e 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 677df774796..9e928e0d91b 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 86c243f6e2c..fcfbfc64087 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 b3e9d26042d..4f7275d5c56 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 c8d2353d297..2e23718a49c 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 3910468b186..32b3505a36d 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 ec67a686248..4b2e56e353d 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 112ebc793c1..9caea2eb13e 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 f0d9ef33144..3b3518fccdb 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 b695262812b..735e45ab013 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 39afb460905..3672a9e0365 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 7c8897c3552..6e9d138290f 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 9b2abb9e005..e598bc8c3a0 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 c1665cd766f..a044cc27fff 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 5e78d1917bd..3a652c0bc29 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 76ced0f24da..542dc6191dd 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 b38e5721391..0cb6086f3fd 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 f26d2d23ea3..9ba6eadb567 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 2323ebcf34b..e227d34ec8f 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 9490f2b845b..05a1581f91c 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 5c2300aaf86..606991d0285 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 9901ec6290b..39aaa12e884 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 0e357280005..bb2b4adcb34 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 578eaf33934..cb1ed859368 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 fc68b410bf1..59526a5c124 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 2b651096476..b6f1808090e 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 5daba6b301a..eec9a0248cc 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 d753b42e1f2..4d5ec3e5ee8 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 bba89629967..1c53b2d3bb9 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 de33db5b842..419b1482e86 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 Expr { let src = self.resolve(src); + if let Some(suffix) = src.strip_prefix("@swc/helpers/src/") { + if let Some(prefix) = suffix.strip_suffix(".mjs") { + return self.make_require_call( + unresolved_mark, + format!("@swc/helpers/lib/{}.js", prefix).into(), + src_span, + ); + } + } + Expr::Call(CallExpr { span: DUMMY_SP, callee: quote_ident!(DUMMY_SP.apply_mark(unresolved_mark), "require").as_callee(), diff --git a/crates/swc_ecma_transforms_module/src/util.rs b/crates/swc_ecma_transforms_module/src/util.rs index d69b7b9f9e0..8b44dd4e3fb 100644 --- a/crates/swc_ecma_transforms_module/src/util.rs +++ b/crates/swc_ecma_transforms_module/src/util.rs @@ -412,7 +412,7 @@ impl Scope { } ImportSpecifier::Default(i) => { // Helpers are special. - if import.src.value.starts_with("@swc/helpers/lib") { + if import.src.value.starts_with("@swc/helpers/src/") { let ident = i.local.clone(); self.imports diff --git a/packages/swc-helpers/src/_apply_decorated_descriptor.js b/packages/swc-helpers/src/_apply_decorated_descriptor.mjs similarity index 100% rename from packages/swc-helpers/src/_apply_decorated_descriptor.js rename to packages/swc-helpers/src/_apply_decorated_descriptor.mjs diff --git a/packages/swc-helpers/src/_array_like_to_array.js b/packages/swc-helpers/src/_array_like_to_array.mjs similarity index 100% rename from packages/swc-helpers/src/_array_like_to_array.js rename to packages/swc-helpers/src/_array_like_to_array.mjs diff --git a/packages/swc-helpers/src/_array_with_holes.js b/packages/swc-helpers/src/_array_with_holes.mjs similarity index 100% rename from packages/swc-helpers/src/_array_with_holes.js rename to packages/swc-helpers/src/_array_with_holes.mjs diff --git a/packages/swc-helpers/src/_array_without_holes.js b/packages/swc-helpers/src/_array_without_holes.mjs similarity index 100% rename from packages/swc-helpers/src/_array_without_holes.js rename to packages/swc-helpers/src/_array_without_holes.mjs diff --git a/packages/swc-helpers/src/_assert_this_initialized.js b/packages/swc-helpers/src/_assert_this_initialized.mjs similarity index 100% rename from packages/swc-helpers/src/_assert_this_initialized.js rename to packages/swc-helpers/src/_assert_this_initialized.mjs diff --git a/packages/swc-helpers/src/_async_generator.js b/packages/swc-helpers/src/_async_generator.mjs similarity index 100% rename from packages/swc-helpers/src/_async_generator.js rename to packages/swc-helpers/src/_async_generator.mjs diff --git a/packages/swc-helpers/src/_async_generator_delegate.js b/packages/swc-helpers/src/_async_generator_delegate.mjs similarity index 100% rename from packages/swc-helpers/src/_async_generator_delegate.js rename to packages/swc-helpers/src/_async_generator_delegate.mjs diff --git a/packages/swc-helpers/src/_async_iterator.js b/packages/swc-helpers/src/_async_iterator.mjs similarity index 100% rename from packages/swc-helpers/src/_async_iterator.js rename to packages/swc-helpers/src/_async_iterator.mjs diff --git a/packages/swc-helpers/src/_async_to_generator.js b/packages/swc-helpers/src/_async_to_generator.mjs similarity index 100% rename from packages/swc-helpers/src/_async_to_generator.js rename to packages/swc-helpers/src/_async_to_generator.mjs diff --git a/packages/swc-helpers/src/_await_async_generator.js b/packages/swc-helpers/src/_await_async_generator.mjs similarity index 100% rename from packages/swc-helpers/src/_await_async_generator.js rename to packages/swc-helpers/src/_await_async_generator.mjs diff --git a/packages/swc-helpers/src/_await_value.js b/packages/swc-helpers/src/_await_value.mjs similarity index 100% rename from packages/swc-helpers/src/_await_value.js rename to packages/swc-helpers/src/_await_value.mjs diff --git a/packages/swc-helpers/src/_check_private_redeclaration.js b/packages/swc-helpers/src/_check_private_redeclaration.mjs similarity index 100% rename from packages/swc-helpers/src/_check_private_redeclaration.js rename to packages/swc-helpers/src/_check_private_redeclaration.mjs diff --git a/packages/swc-helpers/src/_class_apply_descriptor_destructure.js b/packages/swc-helpers/src/_class_apply_descriptor_destructure.mjs similarity index 100% rename from packages/swc-helpers/src/_class_apply_descriptor_destructure.js rename to packages/swc-helpers/src/_class_apply_descriptor_destructure.mjs diff --git a/packages/swc-helpers/src/_class_apply_descriptor_get.js b/packages/swc-helpers/src/_class_apply_descriptor_get.mjs similarity index 100% rename from packages/swc-helpers/src/_class_apply_descriptor_get.js rename to packages/swc-helpers/src/_class_apply_descriptor_get.mjs diff --git a/packages/swc-helpers/src/_class_apply_descriptor_set.js b/packages/swc-helpers/src/_class_apply_descriptor_set.mjs similarity index 100% rename from packages/swc-helpers/src/_class_apply_descriptor_set.js rename to packages/swc-helpers/src/_class_apply_descriptor_set.mjs diff --git a/packages/swc-helpers/src/_class_apply_descriptor_update.js b/packages/swc-helpers/src/_class_apply_descriptor_update.mjs similarity index 100% rename from packages/swc-helpers/src/_class_apply_descriptor_update.js rename to packages/swc-helpers/src/_class_apply_descriptor_update.mjs diff --git a/packages/swc-helpers/src/_class_call_check.js b/packages/swc-helpers/src/_class_call_check.mjs similarity index 100% rename from packages/swc-helpers/src/_class_call_check.js rename to packages/swc-helpers/src/_class_call_check.mjs diff --git a/packages/swc-helpers/src/_class_check_private_static_access.js b/packages/swc-helpers/src/_class_check_private_static_access.mjs similarity index 100% rename from packages/swc-helpers/src/_class_check_private_static_access.js rename to packages/swc-helpers/src/_class_check_private_static_access.mjs diff --git a/packages/swc-helpers/src/_class_check_private_static_field_descriptor.js b/packages/swc-helpers/src/_class_check_private_static_field_descriptor.mjs similarity index 100% rename from packages/swc-helpers/src/_class_check_private_static_field_descriptor.js rename to packages/swc-helpers/src/_class_check_private_static_field_descriptor.mjs diff --git a/packages/swc-helpers/src/_class_extract_field_descriptor.js b/packages/swc-helpers/src/_class_extract_field_descriptor.mjs similarity index 100% rename from packages/swc-helpers/src/_class_extract_field_descriptor.js rename to packages/swc-helpers/src/_class_extract_field_descriptor.mjs diff --git a/packages/swc-helpers/src/_class_name_tdz_error.js b/packages/swc-helpers/src/_class_name_tdz_error.mjs similarity index 100% rename from packages/swc-helpers/src/_class_name_tdz_error.js rename to packages/swc-helpers/src/_class_name_tdz_error.mjs diff --git a/packages/swc-helpers/src/_class_private_field_destructure.js b/packages/swc-helpers/src/_class_private_field_destructure.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_field_destructure.js rename to packages/swc-helpers/src/_class_private_field_destructure.mjs diff --git a/packages/swc-helpers/src/_class_private_field_get.js b/packages/swc-helpers/src/_class_private_field_get.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_field_get.js rename to packages/swc-helpers/src/_class_private_field_get.mjs diff --git a/packages/swc-helpers/src/_class_private_field_init.js b/packages/swc-helpers/src/_class_private_field_init.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_field_init.js rename to packages/swc-helpers/src/_class_private_field_init.mjs diff --git a/packages/swc-helpers/src/_class_private_field_loose_base.js b/packages/swc-helpers/src/_class_private_field_loose_base.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_field_loose_base.js rename to packages/swc-helpers/src/_class_private_field_loose_base.mjs diff --git a/packages/swc-helpers/src/_class_private_field_loose_key.js b/packages/swc-helpers/src/_class_private_field_loose_key.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_field_loose_key.js rename to packages/swc-helpers/src/_class_private_field_loose_key.mjs diff --git a/packages/swc-helpers/src/_class_private_field_set.js b/packages/swc-helpers/src/_class_private_field_set.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_field_set.js rename to packages/swc-helpers/src/_class_private_field_set.mjs diff --git a/packages/swc-helpers/src/_class_private_field_update.js b/packages/swc-helpers/src/_class_private_field_update.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_field_update.js rename to packages/swc-helpers/src/_class_private_field_update.mjs diff --git a/packages/swc-helpers/src/_class_private_method_get.js b/packages/swc-helpers/src/_class_private_method_get.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_method_get.js rename to packages/swc-helpers/src/_class_private_method_get.mjs diff --git a/packages/swc-helpers/src/_class_private_method_init.js b/packages/swc-helpers/src/_class_private_method_init.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_method_init.js rename to packages/swc-helpers/src/_class_private_method_init.mjs diff --git a/packages/swc-helpers/src/_class_private_method_set.js b/packages/swc-helpers/src/_class_private_method_set.mjs similarity index 100% rename from packages/swc-helpers/src/_class_private_method_set.js rename to packages/swc-helpers/src/_class_private_method_set.mjs diff --git a/packages/swc-helpers/src/_class_static_private_field_destructure.js b/packages/swc-helpers/src/_class_static_private_field_destructure.mjs similarity index 100% rename from packages/swc-helpers/src/_class_static_private_field_destructure.js rename to packages/swc-helpers/src/_class_static_private_field_destructure.mjs diff --git a/packages/swc-helpers/src/_class_static_private_field_spec_get.js b/packages/swc-helpers/src/_class_static_private_field_spec_get.mjs similarity index 100% rename from packages/swc-helpers/src/_class_static_private_field_spec_get.js rename to packages/swc-helpers/src/_class_static_private_field_spec_get.mjs diff --git a/packages/swc-helpers/src/_class_static_private_field_spec_set.js b/packages/swc-helpers/src/_class_static_private_field_spec_set.mjs similarity index 100% rename from packages/swc-helpers/src/_class_static_private_field_spec_set.js rename to packages/swc-helpers/src/_class_static_private_field_spec_set.mjs diff --git a/packages/swc-helpers/src/_class_static_private_field_update.js b/packages/swc-helpers/src/_class_static_private_field_update.mjs similarity index 100% rename from packages/swc-helpers/src/_class_static_private_field_update.js rename to packages/swc-helpers/src/_class_static_private_field_update.mjs diff --git a/packages/swc-helpers/src/_construct.js b/packages/swc-helpers/src/_construct.mjs similarity index 100% rename from packages/swc-helpers/src/_construct.js rename to packages/swc-helpers/src/_construct.mjs diff --git a/packages/swc-helpers/src/_create_class.js b/packages/swc-helpers/src/_create_class.mjs similarity index 100% rename from packages/swc-helpers/src/_create_class.js rename to packages/swc-helpers/src/_create_class.mjs diff --git a/packages/swc-helpers/src/_create_super.js b/packages/swc-helpers/src/_create_super.mjs similarity index 100% rename from packages/swc-helpers/src/_create_super.js rename to packages/swc-helpers/src/_create_super.mjs diff --git a/packages/swc-helpers/src/_decorate.js b/packages/swc-helpers/src/_decorate.mjs similarity index 100% rename from packages/swc-helpers/src/_decorate.js rename to packages/swc-helpers/src/_decorate.mjs diff --git a/packages/swc-helpers/src/_defaults.js b/packages/swc-helpers/src/_defaults.mjs similarity index 100% rename from packages/swc-helpers/src/_defaults.js rename to packages/swc-helpers/src/_defaults.mjs diff --git a/packages/swc-helpers/src/_define_enumerable_properties.js b/packages/swc-helpers/src/_define_enumerable_properties.mjs similarity index 100% rename from packages/swc-helpers/src/_define_enumerable_properties.js rename to packages/swc-helpers/src/_define_enumerable_properties.mjs diff --git a/packages/swc-helpers/src/_define_property.js b/packages/swc-helpers/src/_define_property.mjs similarity index 100% rename from packages/swc-helpers/src/_define_property.js rename to packages/swc-helpers/src/_define_property.mjs diff --git a/packages/swc-helpers/src/_extends.js b/packages/swc-helpers/src/_extends.mjs similarity index 100% rename from packages/swc-helpers/src/_extends.js rename to packages/swc-helpers/src/_extends.mjs diff --git a/packages/swc-helpers/src/_get.js b/packages/swc-helpers/src/_get.mjs similarity index 100% rename from packages/swc-helpers/src/_get.js rename to packages/swc-helpers/src/_get.mjs diff --git a/packages/swc-helpers/src/_get_prototype_of.js b/packages/swc-helpers/src/_get_prototype_of.mjs similarity index 100% rename from packages/swc-helpers/src/_get_prototype_of.js rename to packages/swc-helpers/src/_get_prototype_of.mjs diff --git a/packages/swc-helpers/src/_inherits.js b/packages/swc-helpers/src/_inherits.mjs similarity index 100% rename from packages/swc-helpers/src/_inherits.js rename to packages/swc-helpers/src/_inherits.mjs diff --git a/packages/swc-helpers/src/_inherits_loose.js b/packages/swc-helpers/src/_inherits_loose.mjs similarity index 100% rename from packages/swc-helpers/src/_inherits_loose.js rename to packages/swc-helpers/src/_inherits_loose.mjs diff --git a/packages/swc-helpers/src/_initializer_define_property.js b/packages/swc-helpers/src/_initializer_define_property.mjs similarity index 100% rename from packages/swc-helpers/src/_initializer_define_property.js rename to packages/swc-helpers/src/_initializer_define_property.mjs diff --git a/packages/swc-helpers/src/_initializer_warning_helper.js b/packages/swc-helpers/src/_initializer_warning_helper.mjs similarity index 100% rename from packages/swc-helpers/src/_initializer_warning_helper.js rename to packages/swc-helpers/src/_initializer_warning_helper.mjs diff --git a/packages/swc-helpers/src/_instanceof.js b/packages/swc-helpers/src/_instanceof.mjs similarity index 100% rename from packages/swc-helpers/src/_instanceof.js rename to packages/swc-helpers/src/_instanceof.mjs diff --git a/packages/swc-helpers/src/_interop_require_default.js b/packages/swc-helpers/src/_interop_require_default.mjs similarity index 100% rename from packages/swc-helpers/src/_interop_require_default.js rename to packages/swc-helpers/src/_interop_require_default.mjs diff --git a/packages/swc-helpers/src/_interop_require_wildcard.js b/packages/swc-helpers/src/_interop_require_wildcard.mjs similarity index 100% rename from packages/swc-helpers/src/_interop_require_wildcard.js rename to packages/swc-helpers/src/_interop_require_wildcard.mjs diff --git a/packages/swc-helpers/src/_is_native_function.js b/packages/swc-helpers/src/_is_native_function.mjs similarity index 100% rename from packages/swc-helpers/src/_is_native_function.js rename to packages/swc-helpers/src/_is_native_function.mjs diff --git a/packages/swc-helpers/src/_is_native_reflect_construct.js b/packages/swc-helpers/src/_is_native_reflect_construct.mjs similarity index 100% rename from packages/swc-helpers/src/_is_native_reflect_construct.js rename to packages/swc-helpers/src/_is_native_reflect_construct.mjs diff --git a/packages/swc-helpers/src/_iterable_to_array.js b/packages/swc-helpers/src/_iterable_to_array.mjs similarity index 100% rename from packages/swc-helpers/src/_iterable_to_array.js rename to packages/swc-helpers/src/_iterable_to_array.mjs diff --git a/packages/swc-helpers/src/_iterable_to_array_limit.js b/packages/swc-helpers/src/_iterable_to_array_limit.mjs similarity index 100% rename from packages/swc-helpers/src/_iterable_to_array_limit.js rename to packages/swc-helpers/src/_iterable_to_array_limit.mjs diff --git a/packages/swc-helpers/src/_iterable_to_array_limit_loose.js b/packages/swc-helpers/src/_iterable_to_array_limit_loose.mjs similarity index 100% rename from packages/swc-helpers/src/_iterable_to_array_limit_loose.js rename to packages/swc-helpers/src/_iterable_to_array_limit_loose.mjs diff --git a/packages/swc-helpers/src/_jsx.js b/packages/swc-helpers/src/_jsx.mjs similarity index 100% rename from packages/swc-helpers/src/_jsx.js rename to packages/swc-helpers/src/_jsx.mjs diff --git a/packages/swc-helpers/src/_new_arrow_check.js b/packages/swc-helpers/src/_new_arrow_check.mjs similarity index 100% rename from packages/swc-helpers/src/_new_arrow_check.js rename to packages/swc-helpers/src/_new_arrow_check.mjs diff --git a/packages/swc-helpers/src/_non_iterable_rest.js b/packages/swc-helpers/src/_non_iterable_rest.mjs similarity index 100% rename from packages/swc-helpers/src/_non_iterable_rest.js rename to packages/swc-helpers/src/_non_iterable_rest.mjs diff --git a/packages/swc-helpers/src/_non_iterable_spread.js b/packages/swc-helpers/src/_non_iterable_spread.mjs similarity index 100% rename from packages/swc-helpers/src/_non_iterable_spread.js rename to packages/swc-helpers/src/_non_iterable_spread.mjs diff --git a/packages/swc-helpers/src/_object_spread.js b/packages/swc-helpers/src/_object_spread.mjs similarity index 100% rename from packages/swc-helpers/src/_object_spread.js rename to packages/swc-helpers/src/_object_spread.mjs diff --git a/packages/swc-helpers/src/_object_spread_props.js b/packages/swc-helpers/src/_object_spread_props.mjs similarity index 100% rename from packages/swc-helpers/src/_object_spread_props.js rename to packages/swc-helpers/src/_object_spread_props.mjs diff --git a/packages/swc-helpers/src/_object_without_properties.js b/packages/swc-helpers/src/_object_without_properties.mjs similarity index 100% rename from packages/swc-helpers/src/_object_without_properties.js rename to packages/swc-helpers/src/_object_without_properties.mjs diff --git a/packages/swc-helpers/src/_object_without_properties_loose.js b/packages/swc-helpers/src/_object_without_properties_loose.mjs similarity index 100% rename from packages/swc-helpers/src/_object_without_properties_loose.js rename to packages/swc-helpers/src/_object_without_properties_loose.mjs diff --git a/packages/swc-helpers/src/_possible_constructor_return.js b/packages/swc-helpers/src/_possible_constructor_return.mjs similarity index 100% rename from packages/swc-helpers/src/_possible_constructor_return.js rename to packages/swc-helpers/src/_possible_constructor_return.mjs diff --git a/packages/swc-helpers/src/_read_only_error.js b/packages/swc-helpers/src/_read_only_error.mjs similarity index 100% rename from packages/swc-helpers/src/_read_only_error.js rename to packages/swc-helpers/src/_read_only_error.mjs diff --git a/packages/swc-helpers/src/_set.js b/packages/swc-helpers/src/_set.mjs similarity index 100% rename from packages/swc-helpers/src/_set.js rename to packages/swc-helpers/src/_set.mjs diff --git a/packages/swc-helpers/src/_set_prototype_of.js b/packages/swc-helpers/src/_set_prototype_of.mjs similarity index 100% rename from packages/swc-helpers/src/_set_prototype_of.js rename to packages/swc-helpers/src/_set_prototype_of.mjs diff --git a/packages/swc-helpers/src/_skip_first_generator_next.js b/packages/swc-helpers/src/_skip_first_generator_next.mjs similarity index 100% rename from packages/swc-helpers/src/_skip_first_generator_next.js rename to packages/swc-helpers/src/_skip_first_generator_next.mjs diff --git a/packages/swc-helpers/src/_sliced_to_array.js b/packages/swc-helpers/src/_sliced_to_array.mjs similarity index 100% rename from packages/swc-helpers/src/_sliced_to_array.js rename to packages/swc-helpers/src/_sliced_to_array.mjs diff --git a/packages/swc-helpers/src/_sliced_to_array_loose.js b/packages/swc-helpers/src/_sliced_to_array_loose.mjs similarity index 100% rename from packages/swc-helpers/src/_sliced_to_array_loose.js rename to packages/swc-helpers/src/_sliced_to_array_loose.mjs diff --git a/packages/swc-helpers/src/_super_prop_base.js b/packages/swc-helpers/src/_super_prop_base.mjs similarity index 100% rename from packages/swc-helpers/src/_super_prop_base.js rename to packages/swc-helpers/src/_super_prop_base.mjs diff --git a/packages/swc-helpers/src/_tagged_template_literal.js b/packages/swc-helpers/src/_tagged_template_literal.mjs similarity index 100% rename from packages/swc-helpers/src/_tagged_template_literal.js rename to packages/swc-helpers/src/_tagged_template_literal.mjs diff --git a/packages/swc-helpers/src/_tagged_template_literal_loose.js b/packages/swc-helpers/src/_tagged_template_literal_loose.mjs similarity index 100% rename from packages/swc-helpers/src/_tagged_template_literal_loose.js rename to packages/swc-helpers/src/_tagged_template_literal_loose.mjs diff --git a/packages/swc-helpers/src/_throw.js b/packages/swc-helpers/src/_throw.mjs similarity index 100% rename from packages/swc-helpers/src/_throw.js rename to packages/swc-helpers/src/_throw.mjs diff --git a/packages/swc-helpers/src/_to_array.js b/packages/swc-helpers/src/_to_array.mjs similarity index 100% rename from packages/swc-helpers/src/_to_array.js rename to packages/swc-helpers/src/_to_array.mjs diff --git a/packages/swc-helpers/src/_to_consumable_array.js b/packages/swc-helpers/src/_to_consumable_array.mjs similarity index 100% rename from packages/swc-helpers/src/_to_consumable_array.js rename to packages/swc-helpers/src/_to_consumable_array.mjs diff --git a/packages/swc-helpers/src/_to_primitive.js b/packages/swc-helpers/src/_to_primitive.mjs similarity index 100% rename from packages/swc-helpers/src/_to_primitive.js rename to packages/swc-helpers/src/_to_primitive.mjs diff --git a/packages/swc-helpers/src/_to_property_key.js b/packages/swc-helpers/src/_to_property_key.mjs similarity index 100% rename from packages/swc-helpers/src/_to_property_key.js rename to packages/swc-helpers/src/_to_property_key.mjs diff --git a/packages/swc-helpers/src/_ts_decorate.js b/packages/swc-helpers/src/_ts_decorate.mjs similarity index 100% rename from packages/swc-helpers/src/_ts_decorate.js rename to packages/swc-helpers/src/_ts_decorate.mjs diff --git a/packages/swc-helpers/src/_ts_metadata.js b/packages/swc-helpers/src/_ts_metadata.mjs similarity index 100% rename from packages/swc-helpers/src/_ts_metadata.js rename to packages/swc-helpers/src/_ts_metadata.mjs diff --git a/packages/swc-helpers/src/_ts_param.js b/packages/swc-helpers/src/_ts_param.mjs similarity index 100% rename from packages/swc-helpers/src/_ts_param.js rename to packages/swc-helpers/src/_ts_param.mjs diff --git a/packages/swc-helpers/src/_type_of.js b/packages/swc-helpers/src/_type_of.mjs similarity index 100% rename from packages/swc-helpers/src/_type_of.js rename to packages/swc-helpers/src/_type_of.mjs diff --git a/packages/swc-helpers/src/_unsupported_iterable_to_array.js b/packages/swc-helpers/src/_unsupported_iterable_to_array.mjs similarity index 100% rename from packages/swc-helpers/src/_unsupported_iterable_to_array.js rename to packages/swc-helpers/src/_unsupported_iterable_to_array.mjs diff --git a/packages/swc-helpers/src/_wrap_async_generator.js b/packages/swc-helpers/src/_wrap_async_generator.mjs similarity index 100% rename from packages/swc-helpers/src/_wrap_async_generator.js rename to packages/swc-helpers/src/_wrap_async_generator.mjs diff --git a/packages/swc-helpers/src/_wrap_native_super.js b/packages/swc-helpers/src/_wrap_native_super.mjs similarity index 100% rename from packages/swc-helpers/src/_wrap_native_super.js rename to packages/swc-helpers/src/_wrap_native_super.mjs diff --git a/packages/swc-helpers/src/index.js b/packages/swc-helpers/src/index.mjs similarity index 100% rename from packages/swc-helpers/src/index.js rename to packages/swc-helpers/src/index.mjs