diff --git a/crates/swc/tests/fixture/issues-2xxx/2606/1/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2606/1/output/index.ts index 25ca197b94c..ea5b7c38bd8 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2606/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2606/1/output/index.ts @@ -9,9 +9,9 @@ function _export(target, all) { }); } _export(exports, { + warn: ()=>warn, test: ()=>test, - test2: ()=>test2, - warn: ()=>warn + test2: ()=>test2 }); function warn() { throw new Error("this should not be called"); diff --git a/crates/swc/tests/fixture/issues-2xxx/2964/case-2/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2964/case-2/output/index.ts index 2129af35407..6364938c026 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2964/case-2/output/index.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2964/case-2/output/index.ts @@ -10,8 +10,8 @@ function _export(target, all) { } _export(exports, { badIstanbul: ()=>badIstanbul, - downloadDocument: ()=>downloadDocument, - noop: ()=>noop + noop: ()=>noop, + downloadDocument: ()=>downloadDocument }); const _objectWithoutProperties = require("@swc/helpers/lib/_object_without_properties.js").default; //top comment diff --git a/crates/swc/tests/fixture/issues-2xxx/2964/case-5/input/.swcrc b/crates/swc/tests/fixture/issues-2xxx/2964/case-5/input/.swcrc new file mode 100644 index 00000000000..0c0c7de1cfe --- /dev/null +++ b/crates/swc/tests/fixture/issues-2xxx/2964/case-5/input/.swcrc @@ -0,0 +1,33 @@ +{ + "sourceMaps": false, + "module": { + "type": "commonjs" + }, + "jsc": { + "parser": { + "syntax": "typescript", + "tsx": true, + "dynamicImport": true, + "decorators": false + }, + "transform": { + "react": { + "pragma": "React.createElement", + "pragmaFrag": "React.Fragment", + "throwIfNamespace": true, + "development": false, + "useBuiltins": false + } + }, + "target": "es2015", + "loose": false, + "externalHelpers": false, + "keepClassNames": false, + "minify": { + "compress": false, + "mangle": false + }, + "preserveAllComments": true + }, + "minify": false +} diff --git a/crates/swc/tests/fixture/issues-2xxx/2964/case-5/input/index.ts b/crates/swc/tests/fixture/issues-2xxx/2964/case-5/input/index.ts new file mode 100644 index 00000000000..0d35636e140 --- /dev/null +++ b/crates/swc/tests/fixture/issues-2xxx/2964/case-5/input/index.ts @@ -0,0 +1,3 @@ +export const a = 1; +export const b = 2; +export const { ...foo } = { a: 1, b: 2 }; diff --git a/crates/swc/tests/fixture/issues-2xxx/2964/case-5/output/index.ts b/crates/swc/tests/fixture/issues-2xxx/2964/case-5/output/index.ts new file mode 100644 index 00000000000..256daa74932 --- /dev/null +++ b/crates/swc/tests/fixture/issues-2xxx/2964/case-5/output/index.ts @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { + value: true +}); +function _export(target, all) { + for(var name in all)Object.defineProperty(target, name, { + enumerable: true, + get: all[name] + }); +} +_export(exports, { + foo: ()=>foo, + a: ()=>a, + b: ()=>b +}); +const _extends = require("@swc/helpers/lib/_extends.js").default; +const a = 1; +const b = 2; +var foo = _extends({}, { + a: 1, + b: 2 +}); diff --git a/crates/swc/tests/fixture/issues-3xxx/3782/output/index.map b/crates/swc/tests/fixture/issues-3xxx/3782/output/index.map index 8287477afd5..790da795f03 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3782/output/index.map +++ b/crates/swc/tests/fixture/issues-3xxx/3782/output/index.map @@ -1,8 +1,8 @@ { - "mappings": "AACA;;;;;;;;IAIaA,IAAI,MAAJA,IAAI;IAJLC,GAAG;;qBAAM,OAAO;AAIrB,MAAMD,IAAI,GAAG,CAACE,EAAU,GAAsB;IACjD,sBAAsB;IACtB,OAAO,IAAIC,OAAO,CAAC,CAACC,OAAO,GACvBC,UAAU,CAAC,IAAM;YACbD,OAAO,CAAC,QAAQ,CAAC,CAAC;SACrB,EAAE,IAAI,CAAC,CACX,CAAC;CACL,AAAC", + "mappings": "AACA;;;;;;;;IAAYA,GAAG;IAIFC,IAAI,MAAJA,IAAI;;qBAJI,OAAO;AAIrB,MAAMA,IAAI,GAAG,CAACC,EAAU,GAAsB;IACjD,sBAAsB;IACtB,OAAO,IAAIC,OAAO,CAAC,CAACC,OAAO,GACvBC,UAAU,CAAC,IAAM;YACbD,OAAO,CAAC,QAAQ,CAAC,CAAC;SACrB,EAAE,IAAI,CAAC,CACX,CAAC;CACL,AAAC", "names": [ - "byID", "get", + "byID", "id", "Promise", "resolve", diff --git a/crates/swc/tests/fixture/issues-3xxx/3782/output/index.ts b/crates/swc/tests/fixture/issues-3xxx/3782/output/index.ts index ad03d67684c..bd2636c0ece 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3782/output/index.ts +++ b/crates/swc/tests/fixture/issues-3xxx/3782/output/index.ts @@ -6,8 +6,8 @@ function _export(target, all) { }); } _export(exports, { - byID: ()=>byID, - get: ()=>_get + get: ()=>_get, + byID: ()=>byID }); const _get = require("./get"); const byID = (id)=>{ diff --git a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map index 0c5fa350797..de5ff1d0430 100644 --- a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map +++ b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.map @@ -1,15 +1,15 @@ { - "mappings": "AAAA;;;;;;;;;;;IA6BaA,MAAM,MAANA,MAAM;IAMNC,MAAM,MAANA,MAAM;IARPC,IAAI;IAKHC,MAAM,MAANA,MAAM;IAaNC,GAAG,MAAHA,GAAG;IARHC,MAAM,MAANA,MAAM;IAKNC,OAAO,MAAPA,OAAO;IATPC,KAAK,MAALA,KAAK;IAHLC,QAAQ,MAARA,QAAQ;;;;;;;kCA9B+B,oBAAoB;8BACxB,iBAAiB;gCAC3C,kBAAkB;sEAwB1B,oBAAoB;AAG3B,MAAMR,MAAM,GAA+B,IAAM,IAAIS,WAAW,EAAE,AAAC;AACnE,MAAMD,QAAQ,GAAmC,IACpD,IAAIE,eAAe,EAAE,AAAC;AACnB,MAAMP,MAAM,GAAiC,IAA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OAAK,EAAGA,KAAK,CAACO,GAAG,CAACC,aAAW,YAAA,CAAC,EAAC;QACrC,OAAO,IAAI,CAAC;KACf;IAEDK,MAAM,CAAC,GAAGA,MAAM,AAA0B,EAAQ;oCACxCA,QAAM,EAAGA,MAAM,CAACN,GAAG,CAACC,aAAW,YAAA,CAAC,EAAC;QACvC,OAAO,IAAI,CAAC;KACf;IAEDG,KAAK,GAAmB;QACpB,OAAO;YACHX,KAAK,wBAAE,IAAI,EAAEA,OAAK;YAClBa,MAAM,wBAAE,IAAI,EAAEA,QAAM;SACvB,CAAC;KACL;;;QAlBD,6BAAA,OAAM;;mBAAoB,EAAE;UAAC,CAAA;QAC7B,6BAAA,QAAO;;mBAAoB,EAAE;UAAC,CAAA;;CAkBjC", "names": [ - "create", - "header", "node", + "create", + "trustBox", "opener", - "seq", + "stage", + "header", "source", "sources", - "stage", - "trustBox", + "seq", "BodyBuilder", "TrustBoxBuilder", "OpenerBuilder", diff --git a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.ts b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.ts index 4d35503fc45..04930b65041 100644 --- a/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.ts +++ b/crates/swc/tests/fixture/sourcemap/issue-3854/1-true/output/index.ts @@ -9,15 +9,15 @@ function _export(target, all) { }); } _export(exports, { - create: ()=>create, - header: ()=>header, node: ()=>_bodyNodesBuilder, + create: ()=>create, + trustBox: ()=>trustBox, opener: ()=>opener, - seq: ()=>seq, + stage: ()=>stage, + header: ()=>header, source: ()=>source, sources: ()=>sources, - stage: ()=>stage, - trustBox: ()=>trustBox + seq: ()=>seq }); const _classPrivateFieldGet = require("@swc/helpers/lib/_class_private_field_get.js").default; const _classPrivateFieldInit = require("@swc/helpers/lib/_class_private_field_init.js").default; diff --git a/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts b/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts index 8c149086602..5499c398c01 100644 --- a/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts +++ b/crates/swc/tests/fixture/sourcemap/issue-3854/2-inline/output/index.ts @@ -9,15 +9,15 @@ function _export(target, all) { }); } _export(exports, { - create: ()=>create, - header: ()=>header, node: ()=>_bodyNodesBuilder, + create: ()=>create, + trustBox: ()=>trustBox, opener: ()=>opener, - seq: ()=>seq, + stage: ()=>stage, + header: ()=>header, source: ()=>source, sources: ()=>sources, - stage: ()=>stage, - trustBox: ()=>trustBox + seq: ()=>seq }); const _classPrivateFieldGet = require("@swc/helpers/lib/_class_private_field_get.js").default; const _classPrivateFieldInit = require("@swc/helpers/lib/_class_private_field_init.js").default; @@ -316,4 +316,4 @@ class ArticleSourcesBuilder extends _abstractBuilders.AbstractBuilder { } } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2lucHV0L2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFic3RyYWN0QnVpbGRlciwgQWJzdHJhY3RTZXFCdWlsZGVyIH0gZnJvbSBcIi4vQWJzdHJhY3RCdWlsZGVyc1wiO1xuaW1wb3J0IHsgaGFzaCwgbWFwQnVpbGRBcmcsIG1hcEJ1aWxkQXJncyB9IGZyb20gXCIuL0J1aWxkZXIudXRpbHNcIjtcbmltcG9ydCB7IGltYWdlIH0gZnJvbSBcIi4vRWxlbWVudEJ1aWxkZXJcIjtcblxuaW1wb3J0IHR5cGUge1xuICAgIEJvZHksXG4gICAgQm9keVN0YWdlLFxuICAgIFRydXN0Qm94LFxuICAgIFJpY2hUZXh0LFxuICAgIE9wZW5lcixcbiAgICBCb2R5SGVhZGVyLFxuICAgIFN0YWdlLFxuICAgIEFydGljbGVTb3VyY2UsXG4gICAgQXJ0aWNsZVNvdXJjZXMsXG59IGZyb20gXCJAcGFwZXIvbW9kZWxzXCI7XG5pbXBvcnQgdHlwZSB7XG4gICAgQnVpbG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gsTUFBTUUscUJBQXFCLFNBQVNHLGlCQUFlLGdCQUFBO0lBSS9DTCxLQUFLLENBQUMsR0FBR0EsS0FBSyxBQUEwQixFQUFRO29DQUN0Q0EsT0FBSyxFQUFHQSxLQUFLLENBQUNPLEdBQUcsQ0FBQ0MsYUFBVyxZQUFBLENBQUMsRUFBQztRQUNyQyxPQUFPLElBQUksQ0FBQztLQUNmO0lBRURLLE1BQU0sQ0FBQyxHQUFHQSxNQUFNLEFBQTBCLEVBQVE7b0NBQ3hDQSxRQUFNLEVBQUdBLE1BQU0sQ0FBQ04sR0FBRyxDQUFDQyxhQUFXLFlBQUEsQ0FBQyxFQUFDO1FBQ3ZDLE9BQU8sSUFBSSxDQUFDO0tBQ2Y7SUFFREcsS0FBSyxHQUFtQjtRQUNwQixPQUFPO1lBQ0hYLEtBQUssd0JBQUUsSUFBSSxFQUFFQSxPQUFLO1lBQ2xCYSxNQUFNLHdCQUFFLElBQUksRUFBRUEsUUFBTTtTQUN2QixDQUFDO0tBQ0w7OztRQWxCRCw2QkFBQSxPQUFNOzttQkFBb0IsRUFBRTtVQUFDLENBQUE7UUFDN0IsNkJBQUEsUUFBTzs7bUJBQW9CLEVBQUU7VUFBQyxDQUFBOztDQWtCakMifQ== diff --git a/crates/swc_ecma_transforms_module/src/amd.rs b/crates/swc_ecma_transforms_module/src/amd.rs index 5d52831c8c1..fba2c3d07af 100644 --- a/crates/swc_ecma_transforms_module/src/amd.rs +++ b/crates/swc_ecma_transforms_module/src/amd.rs @@ -400,7 +400,7 @@ impl Amd { let mut export_stmts = Default::default(); if !export_obj_prop_list.is_empty() && !is_export_assign { - export_obj_prop_list.sort_by(|a, b| a.0.cmp(&b.0)); + export_obj_prop_list.sort_by(|a, b| a.1.cmp(&b.1)); let features = self.available_features; let exports = self.exports(); diff --git a/crates/swc_ecma_transforms_module/src/common_js.rs b/crates/swc_ecma_transforms_module/src/common_js.rs index f76bf95442c..836020e48fb 100644 --- a/crates/swc_ecma_transforms_module/src/common_js.rs +++ b/crates/swc_ecma_transforms_module/src/common_js.rs @@ -352,7 +352,7 @@ impl Cjs { let mut export_stmts: Vec = Default::default(); if !export_obj_prop_list.is_empty() && !is_export_assign { - export_obj_prop_list.sort_by(|a, b| a.0.cmp(&b.0)); + export_obj_prop_list.sort_by(|a, b| a.1.cmp(&b.1)); if import_interop.is_node() { let export_id_list: Vec<(JsWord, Span)> = export_obj_prop_list diff --git a/crates/swc_ecma_transforms_module/src/umd.rs b/crates/swc_ecma_transforms_module/src/umd.rs index f65a17873c7..2fee6ff2aae 100644 --- a/crates/swc_ecma_transforms_module/src/umd.rs +++ b/crates/swc_ecma_transforms_module/src/umd.rs @@ -291,7 +291,7 @@ impl Umd { let mut export_stmts = Default::default(); if !export_obj_prop_list.is_empty() && !is_export_assign { - export_obj_prop_list.sort_by(|a, b| a.0.cmp(&b.0)); + export_obj_prop_list.sort_by(|a, b| a.1.cmp(&b.1)); let features = self.available_features; let exports = self.exports(); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.amd.js index 7a9d4aa4209..ed3fafa4573 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.amd.js @@ -13,10 +13,10 @@ define([ }); } _export(exports, { + foo: ()=>foo, bar: ()=>bar, baz: ()=>baz, bazbar: ()=>baz, - foo: ()=>foo, foobar: ()=>foo }); let foo = 1n; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.cjs index 37a0a392b46..f7fb19fef45 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.cjs @@ -9,10 +9,10 @@ function _export(target, all) { }); } _export(exports, { + foo: ()=>foo, bar: ()=>bar, baz: ()=>baz, bazbar: ()=>baz, - foo: ()=>foo, foobar: ()=>foo }); let foo = 1n; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.umd.js index 582e4bd5d47..7bd38c8e7fa 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/export-update/1/output.umd.js @@ -16,10 +16,10 @@ }); } _export(exports, { + foo: ()=>foo, bar: ()=>bar, baz: ()=>baz, bazbar: ()=>baz, - foo: ()=>foo, foobar: ()=>foo }); let foo = 1n; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.amd.js index bb6d1c36c64..50e40c5b3a9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - Cachier: ()=>Cachier, - default: ()=>_default + default: ()=>_default, + Cachier: ()=>Cachier }); var _default = new Cachier(); function Cachier(databaseName) {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs index 3be033c4b0e..65dad4a632a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.cjs @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = exports.Cachier = void 0; +exports.Cachier = exports.default = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, @@ -10,8 +10,8 @@ function _export(target, all) { }); } _export(exports, { - Cachier: ()=>Cachier, - default: ()=>_default + default: ()=>_default, + Cachier: ()=>Cachier }); var _default = new Cachier(); function Cachier(databaseName) {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.umd.js index 0cc140aeb20..f718546e542 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-11/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - Cachier: ()=>Cachier, - default: ()=>_default + default: ()=>_default, + Cachier: ()=>Cachier }); var _default = new Cachier(); function Cachier(databaseName) {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.amd.js index 1f7634c7b71..a0e0502b971 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.amd.js @@ -13,12 +13,12 @@ define([ }); } _export(exports, { + x: ()=>x, + y: ()=>y, f1: ()=>f1, f2: ()=>f2, f3: ()=>f3, - f4: ()=>f4, - x: ()=>x, - y: ()=>y + f4: ()=>f4 }); let x = 0; let y = 0; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs index e6ed32422cf..934b207088f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.cjs @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.y = exports.x = exports.f4 = exports.f3 = exports.f2 = exports.f1 = void 0; +exports.f4 = exports.f3 = exports.f2 = exports.f1 = exports.y = exports.x = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, @@ -10,12 +10,12 @@ function _export(target, all) { }); } _export(exports, { + x: ()=>x, + y: ()=>y, f1: ()=>f1, f2: ()=>f2, f3: ()=>f3, - f4: ()=>f4, - x: ()=>x, - y: ()=>y + f4: ()=>f4 }); let x = 0; let y = 0; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.umd.js index da9485c7bb3..2f9a4c6a48f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-destructured/output.umd.js @@ -16,12 +16,12 @@ }); } _export(exports, { + x: ()=>x, + y: ()=>y, f1: ()=>f1, f2: ()=>f2, f3: ()=>f3, - f4: ()=>f4, - x: ()=>x, - y: ()=>y + f4: ()=>f4 }); let x = 0; let y = 0; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.amd.js index 1c7e58eae88..e1d010e8a5f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.amd.js @@ -13,9 +13,9 @@ define([ }); } _export(exports, { - bar: ()=>bar, foo: ()=>foo, foo2: ()=>foo2, + bar: ()=>bar, foo3: ()=>foo3, foo4: ()=>foo4, foo5: ()=>foo5, diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs index c77f898ac49..647bca49219 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.cjs @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.foo9 = exports.foo8 = exports.foo7 = exports.foo6 = exports.foo5 = exports.foo4 = exports.foo3 = exports.foo2 = exports.foo = exports.bar = void 0; +exports.foo9 = exports.foo8 = exports.foo7 = exports.foo6 = exports.foo5 = exports.foo4 = exports.foo3 = exports.bar = exports.foo2 = exports.foo = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, @@ -10,9 +10,9 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>bar, foo: ()=>foo, foo2: ()=>foo2, + bar: ()=>bar, foo3: ()=>foo3, foo4: ()=>foo4, foo5: ()=>foo5, diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.umd.js index a8d2f9a9329..7f1084940d5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/exports-variable/output.umd.js @@ -16,9 +16,9 @@ }); } _export(exports, { - bar: ()=>bar, foo: ()=>foo, foo2: ()=>foo2, + bar: ()=>bar, foo3: ()=>foo3, foo4: ()=>foo4, foo5: ()=>foo5, diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.amd.js index a881a2c8532..5bfc2c43ce7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.amd.js @@ -14,8 +14,8 @@ define([ }); } _export(exports, { - isOdd: ()=>isOdd, - nextOdd: ()=>nextOdd + nextOdd: ()=>nextOdd, + isOdd: ()=>isOdd }); function nextOdd(n) { return (0, _evens.isEven)(n) ? n + 1 : n + 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs index c649f0560b0..433e0cff83a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.cjs @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.nextOdd = exports.isOdd = void 0; +exports.isOdd = exports.nextOdd = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, @@ -10,8 +10,8 @@ function _export(target, all) { }); } _export(exports, { - isOdd: ()=>isOdd, - nextOdd: ()=>nextOdd + nextOdd: ()=>nextOdd, + isOdd: ()=>isOdd }); const _evens = require("./evens"); function nextOdd(n) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.umd.js index 4a205f60b75..679e9f98f4e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/hoist-function-exports/output.umd.js @@ -17,8 +17,8 @@ }); } _export(exports, { - isOdd: ()=>isOdd, - nextOdd: ()=>nextOdd + nextOdd: ()=>nextOdd, + isOdd: ()=>isOdd }); function nextOdd(n) { return (0, _evens.isEven)(n) ? n + 1 : n + 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.amd.js index e3164989721..6fa796cc5d8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.amd.js @@ -13,11 +13,11 @@ define([ }); } _export(exports, { + test: ()=>test, a: ()=>a, c: ()=>b, e: ()=>d, - f: ()=>d, - test: ()=>test + f: ()=>d }); var test = 2; test = 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs index b1cd5a0b226..7667c3454c6 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.cjs @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.test = exports.f = exports.e = exports.c = exports.a = void 0; +exports.f = exports.e = exports.c = exports.a = exports.test = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, @@ -10,11 +10,11 @@ function _export(target, all) { }); } _export(exports, { + test: ()=>test, a: ()=>a, c: ()=>b, e: ()=>d, - f: ()=>d, - test: ()=>test + f: ()=>d }); var test = 2; test = 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.umd.js index 40c8331b597..ebc90999f7f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/remap/output.umd.js @@ -16,11 +16,11 @@ }); } _export(exports, { + test: ()=>test, a: ()=>a, c: ()=>b, e: ()=>d, - f: ()=>d, - test: ()=>test + f: ()=>d }); var test = 2; test = 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.amd.js index bb6d1c36c64..50e40c5b3a9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - Cachier: ()=>Cachier, - default: ()=>_default + default: ()=>_default, + Cachier: ()=>Cachier }); var _default = new Cachier(); function Cachier(databaseName) {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.cjs index 8b94a80d296..7e7ef460699 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { - Cachier: ()=>Cachier, - default: ()=>_default + default: ()=>_default, + Cachier: ()=>Cachier }); var _default = new Cachier(); function Cachier(databaseName) {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.umd.js index 0cc140aeb20..f718546e542 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-11/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - Cachier: ()=>Cachier, - default: ()=>_default + default: ()=>_default, + Cachier: ()=>Cachier }); var _default = new Cachier(); function Cachier(databaseName) {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.amd.js index 1f7634c7b71..a0e0502b971 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.amd.js @@ -13,12 +13,12 @@ define([ }); } _export(exports, { + x: ()=>x, + y: ()=>y, f1: ()=>f1, f2: ()=>f2, f3: ()=>f3, - f4: ()=>f4, - x: ()=>x, - y: ()=>y + f4: ()=>f4 }); let x = 0; let y = 0; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.cjs index 87e83277138..9ea97944cd7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.cjs @@ -9,12 +9,12 @@ function _export(target, all) { }); } _export(exports, { + x: ()=>x, + y: ()=>y, f1: ()=>f1, f2: ()=>f2, f3: ()=>f3, - f4: ()=>f4, - x: ()=>x, - y: ()=>y + f4: ()=>f4 }); let x = 0; let y = 0; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.umd.js index da9485c7bb3..2f9a4c6a48f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-destructured/output.umd.js @@ -16,12 +16,12 @@ }); } _export(exports, { + x: ()=>x, + y: ()=>y, f1: ()=>f1, f2: ()=>f2, f3: ()=>f3, - f4: ()=>f4, - x: ()=>x, - y: ()=>y + f4: ()=>f4 }); let x = 0; let y = 0; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.amd.js index 1c7e58eae88..e1d010e8a5f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.amd.js @@ -13,9 +13,9 @@ define([ }); } _export(exports, { - bar: ()=>bar, foo: ()=>foo, foo2: ()=>foo2, + bar: ()=>bar, foo3: ()=>foo3, foo4: ()=>foo4, foo5: ()=>foo5, diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.cjs index 890c8221dd9..db1a987ec8b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.cjs @@ -9,9 +9,9 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>bar, foo: ()=>foo, foo2: ()=>foo2, + bar: ()=>bar, foo3: ()=>foo3, foo4: ()=>foo4, foo5: ()=>foo5, diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.umd.js index a8d2f9a9329..7f1084940d5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/exports-variable/output.umd.js @@ -16,9 +16,9 @@ }); } _export(exports, { - bar: ()=>bar, foo: ()=>foo, foo2: ()=>foo2, + bar: ()=>bar, foo3: ()=>foo3, foo4: ()=>foo4, foo5: ()=>foo5, diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.amd.js index a881a2c8532..5bfc2c43ce7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.amd.js @@ -14,8 +14,8 @@ define([ }); } _export(exports, { - isOdd: ()=>isOdd, - nextOdd: ()=>nextOdd + nextOdd: ()=>nextOdd, + isOdd: ()=>isOdd }); function nextOdd(n) { return (0, _evens.isEven)(n) ? n + 1 : n + 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.cjs index 4923e2b867c..4219980296a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { - isOdd: ()=>isOdd, - nextOdd: ()=>nextOdd + nextOdd: ()=>nextOdd, + isOdd: ()=>isOdd }); const _evens = require("./evens"); function nextOdd(n) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.umd.js index 4a205f60b75..679e9f98f4e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/hoist-function-exports/output.umd.js @@ -17,8 +17,8 @@ }); } _export(exports, { - isOdd: ()=>isOdd, - nextOdd: ()=>nextOdd + nextOdd: ()=>nextOdd, + isOdd: ()=>isOdd }); function nextOdd(n) { return (0, _evens.isEven)(n) ? n + 1 : n + 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.amd.js index e3164989721..6fa796cc5d8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.amd.js @@ -13,11 +13,11 @@ define([ }); } _export(exports, { + test: ()=>test, a: ()=>a, c: ()=>b, e: ()=>d, - f: ()=>d, - test: ()=>test + f: ()=>d }); var test = 2; test = 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.cjs index d558fa46863..c01133a6ba1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.cjs @@ -9,11 +9,11 @@ function _export(target, all) { }); } _export(exports, { + test: ()=>test, a: ()=>a, c: ()=>b, e: ()=>d, - f: ()=>d, - test: ()=>test + f: ()=>d }); var test = 2; test = 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.umd.js index 40c8331b597..ebc90999f7f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/remap/output.umd.js @@ -16,11 +16,11 @@ }); } _export(exports, { + test: ()=>test, a: ()=>a, c: ()=>b, e: ()=>d, - f: ()=>d, - test: ()=>test + f: ()=>d }); var test = 2; test = 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.amd.js index e964f35dde9..ff2ab82ff32 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.amd.js @@ -13,12 +13,12 @@ define([ }); } _export(exports, { - addOne: ()=>addOne, - errors: ()=>errors, noassign: ()=>noassign, + warn: ()=>warn, + errors: ()=>errors, + addOne: ()=>addOne, someFunc: ()=>someFunc, - test: ()=>test, - warn: ()=>warn + test: ()=>test }); function log() { console.log("unexported"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.cjs index 3fd13776d6d..5d2f48ee00e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.cjs @@ -9,12 +9,12 @@ function _export(target, all) { }); } _export(exports, { - addOne: ()=>addOne, - errors: ()=>errors, noassign: ()=>noassign, + warn: ()=>warn, + errors: ()=>errors, + addOne: ()=>addOne, someFunc: ()=>someFunc, - test: ()=>test, - warn: ()=>warn + test: ()=>test }); function log() { console.log("unexported"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.umd.js index ba70520c8be..0c1fab338d1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2549/output.umd.js @@ -16,12 +16,12 @@ }); } _export(exports, { - addOne: ()=>addOne, - errors: ()=>errors, noassign: ()=>noassign, + warn: ()=>warn, + errors: ()=>errors, + addOne: ()=>addOne, someFunc: ()=>someFunc, - test: ()=>test, - warn: ()=>warn + test: ()=>test }); function log() { console.log("unexported"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.amd.js index 3773eba4bb1..93420e2f33c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.amd.js @@ -14,8 +14,8 @@ define([ } _export(exports, { default: ()=>someCall, - test: ()=>test, - warn: ()=>warn + warn: ()=>warn, + test: ()=>test }); function someCall() { throw new Error("this should not be called"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.cjs index 93eb482b92b..aa665a51dd7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.cjs @@ -10,8 +10,8 @@ function _export(target, all) { } _export(exports, { default: ()=>someCall, - test: ()=>test, - warn: ()=>warn + warn: ()=>warn, + test: ()=>test }); function someCall() { throw new Error("this should not be called"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.umd.js index fbe1104ba8d..fe025b420d8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2678/output.umd.js @@ -17,8 +17,8 @@ } _export(exports, { default: ()=>someCall, - test: ()=>test, - warn: ()=>warn + warn: ()=>warn, + test: ()=>test }); function someCall() { throw new Error("this should not be called"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.amd.js index 4a180332342..be4503b2e1c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.amd.js @@ -13,11 +13,11 @@ define([ }); } _export(exports, { - bar: ()=>bar, - bar2: ()=>bar, default: ()=>_default, - foo: ()=>foo, - foo1: ()=>foo + bar: ()=>bar, + foo1: ()=>foo, + bar2: ()=>bar, + foo: ()=>foo }); const foo = 1; let bar = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.cjs index d764a01863a..3719cc44ade 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.cjs @@ -9,11 +9,11 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>bar, - bar2: ()=>bar, default: ()=>_default, - foo: ()=>foo, - foo1: ()=>foo + bar: ()=>bar, + foo1: ()=>foo, + bar2: ()=>bar, + foo: ()=>foo }); const foo = 1; let bar = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.umd.js index 972d68579a6..dc818ad486c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/2/output.umd.js @@ -16,11 +16,11 @@ }); } _export(exports, { - bar: ()=>bar, - bar2: ()=>bar, default: ()=>_default, - foo: ()=>foo, - foo1: ()=>foo + bar: ()=>bar, + foo1: ()=>foo, + bar2: ()=>bar, + foo: ()=>foo }); const foo = 1; let bar = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.amd.js index 5af61d127ce..8070a935cff 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.amd.js @@ -14,10 +14,10 @@ define([ } _export(exports, { bar: ()=>bar, + foo1: ()=>foo, bar2: ()=>bar, - default: ()=>bar, foo: ()=>foo, - foo1: ()=>foo + default: ()=>bar }); const foo = 1; let bar = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.cjs index 852ad38a1bf..becfd298a2b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.cjs @@ -10,10 +10,10 @@ function _export(target, all) { } _export(exports, { bar: ()=>bar, + foo1: ()=>foo, bar2: ()=>bar, - default: ()=>bar, foo: ()=>foo, - foo1: ()=>foo + default: ()=>bar }); const foo = 1; let bar = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.umd.js index 13d07a5437e..d2909f0b7e6 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/3/output.umd.js @@ -17,10 +17,10 @@ } _export(exports, { bar: ()=>bar, + foo1: ()=>foo, bar2: ()=>bar, - default: ()=>bar, foo: ()=>foo, - foo1: ()=>foo + default: ()=>bar }); const foo = 1; let bar = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.amd.js index 3eaa4aebb7d..bd45cb12ccf 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - bar: ()=>foo, - default: ()=>foo + default: ()=>foo, + bar: ()=>foo }); foo = 1; function foo() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.cjs index 9f954238c9a..0c5e0f3ff71 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>foo, - default: ()=>foo + default: ()=>foo, + bar: ()=>foo }); foo = 1; function foo() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.umd.js index a7c9c55b957..94e651c6360 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/4/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - bar: ()=>foo, - default: ()=>foo + default: ()=>foo, + bar: ()=>foo }); foo = 1; function foo() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.amd.js index 789a5b7df81..c2ef2ad3ffd 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - bar: ()=>foo, - default: ()=>foo + default: ()=>foo, + bar: ()=>foo }); foo = 1; class foo { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.cjs index 7e74309d45a..4723d10eb4a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>foo, - default: ()=>foo + default: ()=>foo, + bar: ()=>foo }); foo = 1; class foo { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.umd.js index 7e78f4b904a..80f9ee093ae 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/5/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - bar: ()=>foo, - default: ()=>foo + default: ()=>foo, + bar: ()=>foo }); foo = 1; class foo { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.amd.js index 8bff5f38269..8e904bdc3ed 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.amd.js @@ -14,8 +14,8 @@ define([ }); } _export(exports, { - byID: ()=>byID, - get: ()=>_get + get: ()=>_get, + byID: ()=>byID }); _get = _interopRequireWildcard(_get); const byID = (id)=>{ diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.cjs index 2657ad3a08d..e3b65494c62 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { - byID: ()=>byID, - get: ()=>_get + get: ()=>_get, + byID: ()=>byID }); const _get = _interopRequireWildcard(require("./get")); const byID = (id)=>{ diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.umd.js index 28cece8a350..7c6296fb376 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3732/output.umd.js @@ -17,8 +17,8 @@ }); } _export(exports, { - byID: ()=>byID, - get: ()=>_get + get: ()=>_get, + byID: ()=>byID }); _get = _interopRequireWildcard(_get); const byID = (id)=>{ diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.amd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.amd.ts index 0a1f8fb2679..102aaa0bcb0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.amd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.amd.ts @@ -17,11 +17,11 @@ define([ }); } _export(exports, { - breakpoints: ()=>breakpoints, - clsx: ()=>_css.cx, - cx: ()=>_css.cx, default: ()=>_default, - keyframes: ()=>_css.keyframes + cx: ()=>_css.cx, + clsx: ()=>_css.cx, + keyframes: ()=>_css.keyframes, + breakpoints: ()=>breakpoints }); _styled = _interopRequireDefault(_styled); interface IStyledProp { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.cts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.cts index 9a3acea91ec..86466dee966 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.cts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.cts @@ -9,11 +9,11 @@ function _export(target, all) { }); } _export(exports, { - breakpoints: ()=>breakpoints, - clsx: ()=>_css.cx, - cx: ()=>_css.cx, default: ()=>_default, - keyframes: ()=>_css.keyframes + cx: ()=>_css.cx, + clsx: ()=>_css.cx, + keyframes: ()=>_css.keyframes, + breakpoints: ()=>breakpoints }); require("."); const _styled = _interopRequireDefault(require("@emotion/styled")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.umd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.umd.ts index ea301c2e65a..2f5d3c69701 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.umd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4456/1/output.umd.ts @@ -20,11 +20,11 @@ }); } _export(exports, { - breakpoints: ()=>breakpoints, - clsx: ()=>_css.cx, - cx: ()=>_css.cx, default: ()=>_default, - keyframes: ()=>_css.keyframes + cx: ()=>_css.cx, + clsx: ()=>_css.cx, + keyframes: ()=>_css.keyframes, + breakpoints: ()=>breakpoints }); _styled = _interopRequireDefault(_styled); interface IStyledProp { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.amd.js index b6492978221..c1d89b13c72 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - Foo: ()=>Foo, default: ()=>_default, + Foo: ()=>Foo, foo: ()=>foo }); class Foo { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.cjs index e1659ff95ea..e49f8644305 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { - Foo: ()=>Foo, default: ()=>_default, + Foo: ()=>Foo, foo: ()=>foo }); class Foo { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.umd.js index 30e99412ea5..ab464e49101 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5063/2/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - Foo: ()=>Foo, default: ()=>_default, + Foo: ()=>Foo, foo: ()=>foo }); class Foo { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.amd.js index c68cf374716..6e08fdd6e71 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.amd.js @@ -14,8 +14,8 @@ define([ }); } _export(exports, { - Foo: ()=>_moduleWithGetter.default, - baz: ()=>_moduleWithGetter.baz + baz: ()=>_moduleWithGetter.baz, + Foo: ()=>_moduleWithGetter.default }); _moduleWithGetter = _interopRequireWildcard(_moduleWithGetter); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.cjs index 86dbe6fde45..0249b0614b6 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.cjs @@ -9,7 +9,7 @@ function _export(target, all) { }); } _export(exports, { - Foo: ()=>_moduleWithGetter.default, - baz: ()=>_moduleWithGetter.baz + baz: ()=>_moduleWithGetter.baz, + Foo: ()=>_moduleWithGetter.default }); const _moduleWithGetter = _interopRequireWildcard(require("./moduleWithGetter")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.umd.js index d7607c8603e..e2b1be0e399 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/misc/copy-getters-setters/output.umd.js @@ -17,8 +17,8 @@ }); } _export(exports, { - Foo: ()=>_moduleWithGetter.default, - baz: ()=>_moduleWithGetter.baz + baz: ()=>_moduleWithGetter.baz, + Foo: ()=>_moduleWithGetter.default }); _moduleWithGetter = _interopRequireWildcard(_moduleWithGetter); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.amd.js index 93ea1ab7dee..a4faeebbedb 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const [foo, bar = 2] = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.cjs index 565afdac1c3..14ad89ebeb1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.cjs @@ -9,7 +9,7 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const [foo, bar = 2] = []; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.umd.js index af40c55d2b9..6e9d61dff83 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-default-params/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const [foo, bar = 2] = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.amd.js index 5d8f946276e..c6c0474b0dc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.amd.js @@ -13,9 +13,9 @@ define([ }); } _export(exports, { + foo: ()=>foo, bar: ()=>bar, - baz: ()=>baz, - foo: ()=>foo + baz: ()=>baz }); const [foo, bar, ...baz] = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.cjs index 6276e9836f0..19960cb2e46 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { + foo: ()=>foo, bar: ()=>bar, - baz: ()=>baz, - foo: ()=>foo + baz: ()=>baz }); const [foo, bar, ...baz] = []; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.umd.js index 8eaeecd7ed0..96574a4469b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array-rest/output.umd.js @@ -16,9 +16,9 @@ }); } _export(exports, { + foo: ()=>foo, bar: ()=>bar, - baz: ()=>baz, - foo: ()=>foo + baz: ()=>baz }); const [foo, bar, ...baz] = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.amd.js index d4ef06eaab7..3f7855c90ea 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const [foo, bar] = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.cjs index 49a627f99fd..fa415d130da 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.cjs @@ -9,7 +9,7 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const [foo, bar] = []; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.umd.js index b9cd4e52ffe..3a1d90fea29 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-array/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const [foo, bar] = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.amd.js index acbb19ef091..5628ce1c579 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const { foo , bar =1 } = {}; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.cjs index 411f37a728f..e9d0dd2782b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.cjs @@ -9,7 +9,7 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const { foo , bar =1 } = {}; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.umd.js index 2b8b0423c15..1d3b820fabc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-default-params/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const { foo , bar =1 } = {}; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.amd.js index 2e187d53f3b..cd183000a6d 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const { foo , ...bar } = {}; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.cjs index 34f1bfd3729..940e8aa0346 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.cjs @@ -9,7 +9,7 @@ function _export(target, all) { }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const { foo , ...bar } = {}; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.umd.js index 5b46fa5b2ea..a75126bc8d8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object-rest/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - bar: ()=>bar, - foo: ()=>foo + foo: ()=>foo, + bar: ()=>bar }); const { foo , ...bar } = {}; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.amd.js index c1ad873ca6e..c748c3ea746 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - diff: ()=>diff, - diffLevel: ()=>diffLevel + diffLevel: ()=>diffLevel, + diff: ()=>diff }); let diffLevel = 0; function diff() { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.cjs index 35c2c5387fc..5152a5f8672 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { - diff: ()=>diff, - diffLevel: ()=>diffLevel + diffLevel: ()=>diffLevel, + diff: ()=>diff }); let diffLevel = 0; function diff() { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.umd.js index b1d6b04a543..1b79f7fe21f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/negative-suffix/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - diff: ()=>diff, - diffLevel: ()=>diffLevel + diffLevel: ()=>diffLevel, + diff: ()=>diff }); let diffLevel = 0; function diff() { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.amd.js index 027066b79a4..35cf844a544 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.amd.js @@ -13,8 +13,8 @@ define([ }); } _export(exports, { - diff: ()=>diff, - diffLevel: ()=>diffLevel + diffLevel: ()=>diffLevel, + diff: ()=>diff }); let diffLevel = 0; function diff() { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.cjs index 844e4a20323..c61f3df70ab 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.cjs @@ -9,8 +9,8 @@ function _export(target, all) { }); } _export(exports, { - diff: ()=>diff, - diffLevel: ()=>diffLevel + diffLevel: ()=>diffLevel, + diff: ()=>diff }); let diffLevel = 0; function diff() { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.umd.js index 5c11932fe3e..efa8c2f7d17 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/update-expression/positive-suffix/output.umd.js @@ -16,8 +16,8 @@ }); } _export(exports, { - diff: ()=>diff, - diffLevel: ()=>diffLevel + diffLevel: ()=>diffLevel, + diff: ()=>diff }); let diffLevel = 0; function diff() {