From 9e162dcbae91a3dd4cef47ab0d80de14ada6d70d Mon Sep 17 00:00:00 2001 From: magic-akari Date: Fri, 1 Jul 2022 16:37:04 +0800 Subject: [PATCH] fix(es/modules): Improve compatibility with cjs lexer (#5080) --- .../swc/tests/fixture/codegen/escape/case-1/output/index.js | 4 ++-- .../swc/tests/fixture/codegen/escape/case-2/output/index.js | 4 ++-- .../deno/paths/issue-2126/output/packages/a/src/index.ts | 4 ++-- .../deno/paths/issue-2724/output/packages/a/src/index.ts | 4 ++-- .../deno/paths/issue-2844/output/src/core/utils/utilFile.ts | 4 ++-- .../fixture/deno/paths/issue-2844/output/src/utils/index.ts | 4 ++-- crates/swc/tests/fixture/interop/babel/output/index.js | 4 ++-- crates/swc/tests/fixture/interop/node/output/index.js | 4 ++-- crates/swc/tests/fixture/interop/none/output/index.js | 4 ++-- crates/swc/tests/fixture/interop/swc/output/index.js | 4 ++-- crates/swc/tests/fixture/issues-1xxx/1213/output/index.js | 4 ++-- crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts | 4 ++-- .../tests/fixture/issues-1xxx/1309/case1/output/index.map | 2 +- .../tests/fixture/issues-1xxx/1309/case1/output/index.ts | 4 ++-- .../tests/fixture/issues-1xxx/1333/case2/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1333/case3/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1362/case1/output/index.ts | 4 ++-- .../tests/fixture/issues-1xxx/1454/case1/output/index.ts | 4 ++-- .../tests/fixture/issues-1xxx/1454/case2/output/index.ts | 4 ++-- .../tests/fixture/issues-1xxx/1515/case1/output/input.ts | 4 ++-- .../tests/fixture/issues-1xxx/1554/case1/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1554/case2/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1568/case1/output/index.ts | 4 ++-- .../tests/fixture/issues-1xxx/1682/case1/output/index.ts | 4 ++-- .../tests/fixture/issues-1xxx/1682/case2/output/index.ts | 4 ++-- .../tests/fixture/issues-1xxx/1714/case1/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1799/case1/output/index.js | 4 ++-- .../fixture/issues-1xxx/1799/case2-no-loose/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1799/case2/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1799/case3/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1799/case4/output/index.js | 4 ++-- .../tests/fixture/issues-1xxx/1799/case5/output/index.js | 4 ++-- .../fixture/issues-1xxx/1799/case6-no-jsx/output/index.js | 4 ++-- .../fixture/issues-1xxx/1799/case7-no-async/output/index.js | 4 ++-- .../swc/tests/fixture/issues-1xxx/1859/case3/output/bar.ts | 4 ++-- .../swc/tests/fixture/issues-1xxx/1859/case3/output/foo.ts | 4 ++-- .../tests/fixture/issues-2xxx/2050/output/subfolder/A.ts | 4 ++-- .../tests/fixture/issues-2xxx/2050/output/subfolder/B.ts | 4 ++-- crates/swc/tests/fixture/issues-2xxx/2539/1/output/index.js | 4 ++-- crates/swc/tests/fixture/issues-2xxx/2606/1/output/index.ts | 4 ++-- crates/swc/tests/fixture/issues-2xxx/2858/2/output/index.js | 4 ++-- .../tests/fixture/issues-2xxx/2964/case-2/output/index.ts | 4 ++-- .../tests/fixture/issues-2xxx/2964/case-4/output/index.tsx | 4 ++-- crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts | 4 ++-- crates/swc/tests/fixture/issues-3xxx/3782/output/index.ts | 4 ++-- crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts | 4 ++-- crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts | 4 ++-- crates/swc/tests/fixture/issues-4xxx/4896/output/index.ts | 4 ++-- crates/swc/tests/fixture/issues-4xxx/4897/output/index.ts | 4 ++-- crates/swc/tests/fixture/issues-4xxx/4953/output/index.js | 4 ++-- crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts | 4 ++-- crates/swc/tests/fixture/jest/sourcemap-1/output/index.ts | 6 +++--- crates/swc/tests/fixture/shopify/002/output/index.js | 4 ++-- crates/swc/tests/fixture/shopify/003-env/output/index.js | 4 ++-- crates/swc/tests/fixture/shopify/004-jest/output/index.js | 4 ++-- crates/swc/tests/fixture/sourcemap/001/output/index.map | 2 +- crates/swc/tests/fixture/sourcemap/001/output/index.ts | 4 ++-- .../fixture/sourcemap/issue-3854/1-true/output/index.ts | 4 ++-- .../fixture/sourcemap/issue-3854/2-inline/output/index.ts | 4 ++-- .../tests/vercel/full/react-autowhatever/1/output/index.js | 4 ++-- .../tests/vercel/full/react-autowhatever/2/output/index.js | 4 ++-- crates/swc_ecma_transforms/tests/decorators.rs | 4 ++-- crates/swc_ecma_transforms/tests/es2015_function_name.rs | 4 ++-- crates/swc_ecma_transforms_module/src/util.rs | 2 +- .../tests/fixture/common/class-property/output.amd.js | 4 ++-- .../tests/fixture/common/class-property/output.cjs | 4 ++-- .../tests/fixture/common/class-property/output.umd.js | 4 ++-- .../common/cts-import-export/export-import/output.amd.ts | 4 ++-- .../common/cts-import-export/export-import/output.cts | 4 ++-- .../common/cts-import-export/export-import/output.umd.ts | 4 ++-- .../tests/fixture/common/custom/01/output.amd.js | 4 ++-- .../tests/fixture/common/custom/01/output.cjs | 4 ++-- .../tests/fixture/common/custom/01/output.umd.js | 4 ++-- .../tests/fixture/common/custom/02/output.amd.js | 4 ++-- .../tests/fixture/common/custom/02/output.cjs | 4 ++-- .../tests/fixture/common/custom/02/output.umd.js | 4 ++-- .../tests/fixture/common/custom/named-define/output.amd.js | 4 ++-- .../tests/fixture/common/custom/named-define/output.cjs | 4 ++-- .../tests/fixture/common/custom/named-define/output.umd.js | 4 ++-- .../fixture/common/custom/non-strict-mode/output.amd.js | 4 ++-- .../tests/fixture/common/custom/non-strict-mode/output.cjs | 4 ++-- .../fixture/common/custom/non-strict-mode/output.umd.js | 4 ++-- .../tests/fixture/common/export-update/1/output.amd.js | 4 ++-- .../tests/fixture/common/export-update/1/output.cjs | 4 ++-- .../tests/fixture/common/export-update/1/output.umd.js | 4 ++-- .../fixture/common/interop-node/export-all/output.amd.js | 4 ++-- .../tests/fixture/common/interop-node/export-all/output.cjs | 4 ++-- .../fixture/common/interop-node/export-all/output.umd.js | 4 ++-- .../common/interop-node/export-default-10/output.amd.js | 4 ++-- .../common/interop-node/export-default-10/output.cjs | 4 ++-- .../common/interop-node/export-default-10/output.umd.js | 4 ++-- .../common/interop-node/export-default-11/output.amd.js | 4 ++-- .../common/interop-node/export-default-11/output.cjs | 4 ++-- .../common/interop-node/export-default-11/output.umd.js | 4 ++-- .../common/interop-node/export-default-2/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default-2/output.cjs | 4 ++-- .../common/interop-node/export-default-2/output.umd.js | 4 ++-- .../common/interop-node/export-default-3/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default-3/output.cjs | 4 ++-- .../common/interop-node/export-default-3/output.umd.js | 4 ++-- .../common/interop-node/export-default-4/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default-4/output.cjs | 4 ++-- .../common/interop-node/export-default-4/output.umd.js | 4 ++-- .../common/interop-node/export-default-5/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default-5/output.cjs | 4 ++-- .../common/interop-node/export-default-5/output.umd.js | 4 ++-- .../common/interop-node/export-default-6/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default-6/output.cjs | 4 ++-- .../common/interop-node/export-default-6/output.umd.js | 4 ++-- .../common/interop-node/export-default-7/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default-7/output.cjs | 4 ++-- .../common/interop-node/export-default-7/output.umd.js | 4 ++-- .../common/interop-node/export-default-8/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default-8/output.cjs | 4 ++-- .../common/interop-node/export-default-8/output.umd.js | 4 ++-- .../common/interop-node/export-default-9/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default-9/output.cjs | 4 ++-- .../common/interop-node/export-default-9/output.umd.js | 4 ++-- .../common/interop-node/export-default/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-default/output.cjs | 4 ++-- .../common/interop-node/export-default/output.umd.js | 4 ++-- .../common/interop-node/export-destructured/output.amd.js | 4 ++-- .../common/interop-node/export-destructured/output.cjs | 4 ++-- .../common/interop-node/export-destructured/output.umd.js | 4 ++-- .../fixture/common/interop-node/export-from-2/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-from-2/output.cjs | 4 ++-- .../fixture/common/interop-node/export-from-2/output.umd.js | 4 ++-- .../fixture/common/interop-node/export-from-3/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-from-3/output.cjs | 4 ++-- .../fixture/common/interop-node/export-from-3/output.umd.js | 4 ++-- .../fixture/common/interop-node/export-from-4/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-from-4/output.cjs | 4 ++-- .../fixture/common/interop-node/export-from-4/output.umd.js | 4 ++-- .../fixture/common/interop-node/export-from-5/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-from-5/output.cjs | 4 ++-- .../fixture/common/interop-node/export-from-5/output.umd.js | 4 ++-- .../fixture/common/interop-node/export-from-6/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-from-6/output.cjs | 4 ++-- .../fixture/common/interop-node/export-from-6/output.umd.js | 4 ++-- .../fixture/common/interop-node/export-from-7/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-from-7/output.cjs | 4 ++-- .../fixture/common/interop-node/export-from-7/output.umd.js | 4 ++-- .../fixture/common/interop-node/export-from-8/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-from-8/output.cjs | 4 ++-- .../fixture/common/interop-node/export-from-8/output.umd.js | 4 ++-- .../common/interop-node/export-named-1/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-named-1/output.cjs | 4 ++-- .../common/interop-node/export-named-1/output.umd.js | 4 ++-- .../common/interop-node/export-named-2/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-named-2/output.cjs | 4 ++-- .../common/interop-node/export-named-2/output.umd.js | 4 ++-- .../common/interop-node/export-named-3/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-named-3/output.cjs | 4 ++-- .../common/interop-node/export-named-3/output.umd.js | 4 ++-- .../common/interop-node/export-named-4/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-named-4/output.cjs | 4 ++-- .../common/interop-node/export-named-4/output.umd.js | 4 ++-- .../common/interop-node/export-named-5/output.amd.js | 4 ++-- .../fixture/common/interop-node/export-named-5/output.cjs | 4 ++-- .../common/interop-node/export-named-5/output.umd.js | 4 ++-- .../common/interop-node/exports-variable/output.amd.js | 4 ++-- .../fixture/common/interop-node/exports-variable/output.cjs | 4 ++-- .../common/interop-node/exports-variable/output.umd.js | 4 ++-- .../interop-node/hoist-function-exports/output.amd.js | 4 ++-- .../common/interop-node/hoist-function-exports/output.cjs | 4 ++-- .../interop-node/hoist-function-exports/output.umd.js | 4 ++-- .../fixture/common/interop-node/overview/output.amd.js | 4 ++-- .../tests/fixture/common/interop-node/overview/output.cjs | 4 ++-- .../fixture/common/interop-node/overview/output.umd.js | 4 ++-- .../tests/fixture/common/interop-node/remap/output.amd.js | 4 ++-- .../tests/fixture/common/interop-node/remap/output.cjs | 4 ++-- .../tests/fixture/common/interop-node/remap/output.umd.js | 4 ++-- .../fixture/common/interop-none/export-from/output.amd.js | 4 ++-- .../fixture/common/interop-none/export-from/output.cjs | 4 ++-- .../fixture/common/interop-none/export-from/output.umd.js | 4 ++-- .../tests/fixture/common/interop/export-all/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-all/output.cjs | 4 ++-- .../tests/fixture/common/interop/export-all/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-10/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-10/output.cjs | 4 ++-- .../fixture/common/interop/export-default-10/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-11/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-11/output.cjs | 4 ++-- .../fixture/common/interop/export-default-11/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-2/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-2/output.cjs | 4 ++-- .../fixture/common/interop/export-default-2/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-3/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-3/output.cjs | 4 ++-- .../fixture/common/interop/export-default-3/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-4/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-4/output.cjs | 4 ++-- .../fixture/common/interop/export-default-4/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-5/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-5/output.cjs | 4 ++-- .../fixture/common/interop/export-default-5/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-6/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-6/output.cjs | 4 ++-- .../fixture/common/interop/export-default-6/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-7/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-7/output.cjs | 4 ++-- .../fixture/common/interop/export-default-7/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-8/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-8/output.cjs | 4 ++-- .../fixture/common/interop/export-default-8/output.umd.js | 4 ++-- .../fixture/common/interop/export-default-9/output.amd.js | 4 ++-- .../fixture/common/interop/export-default-9/output.cjs | 4 ++-- .../fixture/common/interop/export-default-9/output.umd.js | 4 ++-- .../fixture/common/interop/export-default/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-default/output.cjs | 4 ++-- .../fixture/common/interop/export-default/output.umd.js | 4 ++-- .../common/interop/export-destructured/output.amd.js | 4 ++-- .../fixture/common/interop/export-destructured/output.cjs | 4 ++-- .../common/interop/export-destructured/output.umd.js | 4 ++-- .../fixture/common/interop/export-from-2/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-from-2/output.cjs | 4 ++-- .../fixture/common/interop/export-from-2/output.umd.js | 4 ++-- .../fixture/common/interop/export-from-3/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-from-3/output.cjs | 4 ++-- .../fixture/common/interop/export-from-3/output.umd.js | 4 ++-- .../fixture/common/interop/export-from-4/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-from-4/output.cjs | 4 ++-- .../fixture/common/interop/export-from-4/output.umd.js | 4 ++-- .../fixture/common/interop/export-from-5/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-from-5/output.cjs | 4 ++-- .../fixture/common/interop/export-from-5/output.umd.js | 4 ++-- .../fixture/common/interop/export-from-6/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-from-6/output.cjs | 4 ++-- .../fixture/common/interop/export-from-6/output.umd.js | 4 ++-- .../fixture/common/interop/export-from-7/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-from-7/output.cjs | 4 ++-- .../fixture/common/interop/export-from-7/output.umd.js | 4 ++-- .../fixture/common/interop/export-from-8/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-from-8/output.cjs | 4 ++-- .../fixture/common/interop/export-from-8/output.umd.js | 4 ++-- .../fixture/common/interop/export-named-1/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-named-1/output.cjs | 4 ++-- .../fixture/common/interop/export-named-1/output.umd.js | 4 ++-- .../fixture/common/interop/export-named-2/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-named-2/output.cjs | 4 ++-- .../fixture/common/interop/export-named-2/output.umd.js | 4 ++-- .../fixture/common/interop/export-named-3/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-named-3/output.cjs | 4 ++-- .../fixture/common/interop/export-named-3/output.umd.js | 4 ++-- .../fixture/common/interop/export-named-4/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-named-4/output.cjs | 4 ++-- .../fixture/common/interop/export-named-4/output.umd.js | 4 ++-- .../fixture/common/interop/export-named-5/output.amd.js | 4 ++-- .../tests/fixture/common/interop/export-named-5/output.cjs | 4 ++-- .../fixture/common/interop/export-named-5/output.umd.js | 4 ++-- .../fixture/common/interop/exports-variable/output.amd.js | 4 ++-- .../fixture/common/interop/exports-variable/output.cjs | 4 ++-- .../fixture/common/interop/exports-variable/output.umd.js | 4 ++-- .../common/interop/hoist-function-exports/output.amd.js | 4 ++-- .../common/interop/hoist-function-exports/output.cjs | 4 ++-- .../common/interop/hoist-function-exports/output.umd.js | 4 ++-- .../tests/fixture/common/interop/overview/output.amd.js | 4 ++-- .../tests/fixture/common/interop/overview/output.cjs | 4 ++-- .../tests/fixture/common/interop/overview/output.umd.js | 4 ++-- .../tests/fixture/common/interop/remap/output.amd.js | 4 ++-- .../tests/fixture/common/interop/remap/output.cjs | 4 ++-- .../tests/fixture/common/interop/remap/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1043/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1043/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-1043/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1043/2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1043/2/output.cjs | 4 ++-- .../tests/fixture/common/issue-1043/2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1213/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1213/output.cjs | 4 ++-- .../tests/fixture/common/issue-1213/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1568/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1568/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-1568/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1568/2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1568/2/output.cjs | 4 ++-- .../tests/fixture/common/issue-1568/2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1780/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1780/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-1780/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1786/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1786/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-1786/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1799/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1799/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-1799/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-1799/2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-1799/2/output.cjs | 4 ++-- .../tests/fixture/common/issue-1799/2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-2101/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-2101/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-2101/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-2101/2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-2101/2/output.cjs | 4 ++-- .../tests/fixture/common/issue-2101/2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-235/output.amd.js | 4 ++-- .../tests/fixture/common/issue-235/output.cjs | 4 ++-- .../tests/fixture/common/issue-235/output.umd.js | 4 ++-- .../tests/fixture/common/issue-2548/case1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-2548/case1/output.cjs | 4 ++-- .../tests/fixture/common/issue-2548/case1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-2548/case2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-2548/case2/output.cjs | 4 ++-- .../tests/fixture/common/issue-2548/case2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-2548/case3/output.amd.js | 4 ++-- .../tests/fixture/common/issue-2548/case3/output.cjs | 4 ++-- .../tests/fixture/common/issue-2548/case3/output.umd.js | 4 ++-- .../tests/fixture/common/issue-2549/output.amd.js | 4 ++-- .../tests/fixture/common/issue-2549/output.cjs | 4 ++-- .../tests/fixture/common/issue-2549/output.umd.js | 4 ++-- .../tests/fixture/common/issue-2678/output.amd.js | 4 ++-- .../tests/fixture/common/issue-2678/output.cjs | 4 ++-- .../tests/fixture/common/issue-2678/output.umd.js | 4 ++-- .../tests/fixture/common/issue-332/output.amd.js | 4 ++-- .../tests/fixture/common/issue-332/output.cjs | 4 ++-- .../tests/fixture/common/issue-332/output.umd.js | 4 ++-- .../tests/fixture/common/issue-3439/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-3439/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-3439/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-3439/2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-3439/2/output.cjs | 4 ++-- .../tests/fixture/common/issue-3439/2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-3439/3/output.amd.js | 4 ++-- .../tests/fixture/common/issue-3439/3/output.cjs | 4 ++-- .../tests/fixture/common/issue-3439/3/output.umd.js | 4 ++-- .../tests/fixture/common/issue-3439/4/output.amd.js | 4 ++-- .../tests/fixture/common/issue-3439/4/output.cjs | 4 ++-- .../tests/fixture/common/issue-3439/4/output.umd.js | 4 ++-- .../tests/fixture/common/issue-3439/5/output.amd.js | 4 ++-- .../tests/fixture/common/issue-3439/5/output.cjs | 4 ++-- .../tests/fixture/common/issue-3439/5/output.umd.js | 4 ++-- .../tests/fixture/common/issue-369/output.amd.js | 4 ++-- .../tests/fixture/common/issue-369/output.cjs | 4 ++-- .../tests/fixture/common/issue-369/output.umd.js | 4 ++-- .../tests/fixture/common/issue-3732/output.amd.js | 4 ++-- .../tests/fixture/common/issue-3732/output.cjs | 4 ++-- .../tests/fixture/common/issue-3732/output.umd.js | 4 ++-- .../tests/fixture/common/issue-3898/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-3898/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-3898/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4064/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4064/output.cjs | 4 ++-- .../tests/fixture/common/issue-4064/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4313/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4313/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-4313/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4456/1/output.amd.ts | 4 ++-- .../tests/fixture/common/issue-4456/1/output.cts | 4 ++-- .../tests/fixture/common/issue-4456/1/output.umd.ts | 4 ++-- .../tests/fixture/common/issue-4534/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4534/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-4534/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-456/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-456/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-456/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-456/2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-456/2/output.cjs | 4 ++-- .../tests/fixture/common/issue-456/2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4567/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4567/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-4567/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4700/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4700/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-4700/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4799/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4799/output.cjs | 4 ++-- .../tests/fixture/common/issue-4799/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4866/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4866/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-4866/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4981/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4981/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-4981/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-4984/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-4984/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-4984/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-5042/1/output.amd.ts | 4 ++-- .../tests/fixture/common/issue-5042/1/output.cts | 4 ++-- .../tests/fixture/common/issue-5042/1/output.umd.ts | 4 ++-- .../tests/fixture/common/issue-5042/3/output.amd.ts | 4 ++-- .../tests/fixture/common/issue-5042/3/output.cts | 4 ++-- .../tests/fixture/common/issue-5042/3/output.umd.ts | 4 ++-- .../tests/fixture/common/issue-5054/1/output.amd.js | 4 ++-- .../tests/fixture/common/issue-5054/1/output.cjs | 4 ++-- .../tests/fixture/common/issue-5054/1/output.umd.js | 4 ++-- .../tests/fixture/common/issue-5063/2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-5063/2/output.cjs | 4 ++-- .../tests/fixture/common/issue-5063/2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-831/2/output.amd.js | 4 ++-- .../tests/fixture/common/issue-831/2/output.cjs | 4 ++-- .../tests/fixture/common/issue-831/2/output.umd.js | 4 ++-- .../tests/fixture/common/issue-895/output.amd.ts | 4 ++-- .../tests/fixture/common/issue-895/output.cts | 4 ++-- .../tests/fixture/common/issue-895/output.umd.ts | 4 ++-- .../tests/fixture/common/issue-962/output.amd.js | 4 ++-- .../tests/fixture/common/issue-962/output.cjs | 4 ++-- .../tests/fixture/common/issue-962/output.umd.js | 4 ++-- .../fixture/common/lazy/dep-reexport-default/output.amd.js | 4 ++-- .../fixture/common/lazy/dep-reexport-default/output.cjs | 4 ++-- .../fixture/common/lazy/dep-reexport-default/output.umd.js | 4 ++-- .../fixture/common/lazy/dep-reexport-named/output.amd.js | 4 ++-- .../tests/fixture/common/lazy/dep-reexport-named/output.cjs | 4 ++-- .../fixture/common/lazy/dep-reexport-named/output.umd.js | 4 ++-- .../common/lazy/dep-reexport-namespace/output.amd.js | 4 ++-- .../fixture/common/lazy/dep-reexport-namespace/output.cjs | 4 ++-- .../common/lazy/dep-reexport-namespace/output.umd.js | 4 ++-- .../tests/fixture/common/lazy/export-named/output.amd.js | 4 ++-- .../tests/fixture/common/lazy/export-named/output.cjs | 4 ++-- .../tests/fixture/common/lazy/export-named/output.umd.js | 4 ++-- .../common/lazy/local-reexport-default/output.amd.js | 4 ++-- .../fixture/common/lazy/local-reexport-default/output.cjs | 4 ++-- .../common/lazy/local-reexport-default/output.umd.js | 4 ++-- .../fixture/common/lazy/local-reexport-named/output.amd.js | 4 ++-- .../fixture/common/lazy/local-reexport-named/output.cjs | 4 ++-- .../fixture/common/lazy/local-reexport-named/output.umd.js | 4 ++-- .../common/lazy/local-reexport-namespace/output.amd.js | 4 ++-- .../fixture/common/lazy/local-reexport-namespace/output.cjs | 4 ++-- .../common/lazy/local-reexport-namespace/output.umd.js | 4 ++-- .../common/lazy/whitelist/reexport-default/output.amd.js | 4 ++-- .../common/lazy/whitelist/reexport-default/output.cjs | 4 ++-- .../common/lazy/whitelist/reexport-default/output.umd.js | 4 ++-- .../common/lazy/whitelist/reexport-named/output.amd.js | 4 ++-- .../fixture/common/lazy/whitelist/reexport-named/output.cjs | 4 ++-- .../common/lazy/whitelist/reexport-named/output.umd.js | 4 ++-- .../common/lazy/whitelist/reexport-namespace/output.amd.js | 4 ++-- .../common/lazy/whitelist/reexport-namespace/output.cjs | 4 ++-- .../common/lazy/whitelist/reexport-namespace/output.umd.js | 4 ++-- .../fixture/common/many-exports-chunked/1/output.amd.js | 4 ++-- .../tests/fixture/common/many-exports-chunked/1/output.cjs | 4 ++-- .../fixture/common/many-exports-chunked/1/output.umd.js | 4 ++-- .../fixture/common/misc/copy-getters-setters/output.amd.js | 4 ++-- .../fixture/common/misc/copy-getters-setters/output.cjs | 4 ++-- .../fixture/common/misc/copy-getters-setters/output.umd.js | 4 ++-- .../tests/fixture/common/pull-4688/output.amd.js | 4 ++-- .../tests/fixture/common/pull-4688/output.cjs | 4 ++-- .../tests/fixture/common/pull-4688/output.umd.js | 4 ++-- .../tests/fixture/common/regression/6733/output.amd.js | 4 ++-- .../tests/fixture/common/regression/6733/output.cjs | 4 ++-- .../tests/fixture/common/regression/6733/output.umd.js | 4 ++-- .../tests/fixture/common/strict/export-1/output.amd.js | 4 ++-- .../tests/fixture/common/strict/export-1/output.cjs | 4 ++-- .../tests/fixture/common/strict/export-1/output.umd.js | 4 ++-- .../tests/fixture/common/strict/export-2/output.amd.js | 4 ++-- .../tests/fixture/common/strict/export-2/output.cjs | 4 ++-- .../tests/fixture/common/strict/export-2/output.umd.js | 4 ++-- .../tests/fixture/common/strict/export-4/output.amd.js | 4 ++-- .../tests/fixture/common/strict/export-4/output.cjs | 4 ++-- .../tests/fixture/common/strict/export-4/output.umd.js | 4 ++-- .../destructuring-array-default-params/output.amd.js | 4 ++-- .../destructuring-array-default-params/output.cjs | 4 ++-- .../destructuring-array-default-params/output.umd.js | 4 ++-- .../export-const/destructuring-array-rest/output.amd.js | 4 ++-- .../strict/export-const/destructuring-array-rest/output.cjs | 4 ++-- .../export-const/destructuring-array-rest/output.umd.js | 4 ++-- .../strict/export-const/destructuring-array/output.amd.js | 4 ++-- .../strict/export-const/destructuring-array/output.cjs | 4 ++-- .../strict/export-const/destructuring-array/output.umd.js | 4 ++-- .../strict/export-const/destructuring-deep/output.amd.js | 4 ++-- .../strict/export-const/destructuring-deep/output.cjs | 4 ++-- .../strict/export-const/destructuring-deep/output.umd.js | 4 ++-- .../destructuring-object-default-params/output.amd.js | 4 ++-- .../destructuring-object-default-params/output.cjs | 4 ++-- .../destructuring-object-default-params/output.umd.js | 4 ++-- .../export-const/destructuring-object-rest/output.amd.js | 4 ++-- .../export-const/destructuring-object-rest/output.cjs | 4 ++-- .../export-const/destructuring-object-rest/output.umd.js | 4 ++-- .../strict/export-const/destructuring-object/output.amd.js | 4 ++-- .../strict/export-const/destructuring-object/output.cjs | 4 ++-- .../strict/export-const/destructuring-object/output.umd.js | 4 ++-- .../common/update-expression/negative-suffix/output.amd.js | 4 ++-- .../common/update-expression/negative-suffix/output.cjs | 4 ++-- .../common/update-expression/negative-suffix/output.umd.js | 4 ++-- .../common/update-expression/positive-suffix/output.amd.js | 4 ++-- .../common/update-expression/positive-suffix/output.cjs | 4 ++-- .../common/update-expression/positive-suffix/output.umd.js | 4 ++-- crates/swc_ecma_transforms_react/src/refresh/tests.rs | 4 ++-- node-swc/__tests__/transform/issue_4606_test.mjs | 4 ++-- 477 files changed, 952 insertions(+), 952 deletions(-) diff --git a/crates/swc/tests/fixture/codegen/escape/case-1/output/index.js b/crates/swc/tests/fixture/codegen/escape/case-1/output/index.js index 9fb4b89efc5..9dd17524696 100644 --- a/crates/swc/tests/fixture/codegen/escape/case-1/output/index.js +++ b/crates/swc/tests/fixture/codegen/escape/case-1/output/index.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { + enumerable: true, get: function() { return _default; - }, - enumerable: true + } }); var _default = "\nvoid main() {\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}\n"; diff --git a/crates/swc/tests/fixture/codegen/escape/case-2/output/index.js b/crates/swc/tests/fixture/codegen/escape/case-2/output/index.js index c6eddd03489..f2964358dc2 100644 --- a/crates/swc/tests/fixture/codegen/escape/case-2/output/index.js +++ b/crates/swc/tests/fixture/codegen/escape/case-2/output/index.js @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { + enumerable: true, get: function() { return _default; - }, - enumerable: true + } }); var _default = '\n// Analytical approximation of the DFG LUT, one half of the\n// split-sum approximation used in indirect specular lighting.\n// via \'environmentBRDF\' from "Physically Based Shading on Mobile"\n// https://www.unrealengine.com/blog/physically-based-shading-on-mobile - environmentBRDF for GGX on mobile\nvec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\n const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n vec4 r = roughness * c0 + c1;\n float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n return vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n // based upon Frostbite 3 Moving to Physically-based Rendering\n // page 32, equation 26: E[window1]\n // https://seblagarde.files.wordpress.com/2015/07/course_notes_moving_frostbite_to_pbr_v32.pdf\n // this is intended to be used on spot and point lights who are represented as luminous intensity\n // but who must be converted to luminous irradiance for surface lighting calculation\n float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n if( cutoffDistance > 0.0 ) {\n distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n }\n return distanceFalloff;\n#else\n if( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n return pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n }\n return 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n return RECIPROCAL_PI * diffuseColor;\n} // validated\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n // Original approximation by Christophe Schlick \'94\n // float fresnel = pow( 1.0 - dotLH, 5.0 );\n // Optimized variant (presented by Epic at SIGGRAPH \'13)\n // https://cdn2.unrealengine.com/Resources/files/2013SiggraphPresentationsNotes-26915738.pdf\n float fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n return ( 1.0 - specularColor ) * fresnel + specularColor;\n} // validated\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n // See F_Schlick\n float fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n vec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n return Fr * fresnel + F0;\n}\n// Microfacet Models for Refraction through Rough Surfaces - equation (34)\n// http://graphicrants.blogspot.com/2013/08/specular-brdf-reference.html\n// alpha is "roughness squared" in Disney\u2019s reparameterization\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n // geometry term (normalized) = G(l)\u22C5G(v) / 4(n\u22C5l)(n\u22C5v)\n // also see #12151\n float a2 = pow2( alpha );\n float gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n float gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n return 1.0 / ( gl * gv );\n} // validated\n// Moving Frostbite to Physically Based Rendering 3.0 - page 12, listing 2\n// https://seblagarde.files.wordpress.com/2015/07/course_notes_moving_frostbite_to_pbr_v32.pdf\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n float a2 = pow2( alpha );\n // dotNL and dotNV are explicitly swapped. This is not a mistake.\n float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n return 0.5 / max( gv + gl, EPSILON );\n}\n// Microfacet Models for Refraction through Rough Surfaces - equation (33)\n// http://graphicrants.blogspot.com/2013/08/specular-brdf-reference.html\n// alpha is "roughness squared" in Disney\u2019s reparameterization\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n float a2 = pow2( alpha );\n float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0; // avoid alpha = 0 with dotNH = 1\n return RECIPROCAL_PI * a2 / pow2( denom );\n}\n// GGX Distribution, Schlick Fresnel, GGX-Smith Visibility\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n float alpha = pow2( roughness ); // UE4\'s roughness\n vec3 halfDir = normalize( incidentLight.direction + viewDir );\n float dotNL = saturate( dot( normal, incidentLight.direction ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n vec3 F = F_Schlick( specularColor, dotLH );\n float G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n return F * ( G * D );\n} // validated\n// Rect Area Light\n// Real-Time Polygonal-Light Shading with Linearly Transformed Cosines\n// by Eric Heitz, Jonathan Dupuy, Stephen Hill and David Neubelt\n// code: https://github.com/selfshadow/ltc_code/\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n const float LUT_SIZE = 64.0;\n const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n const float LUT_BIAS = 0.5 / LUT_SIZE;\n float dotNV = saturate( dot( N, V ) );\n // texture parameterized by sqrt( GGX alpha ) and sqrt( 1 - cos( theta ) )\n vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n uv = uv * LUT_SCALE + LUT_BIAS;\n return uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n // Real-Time Area Lighting: a Journey from Research to Production (p.102)\n // An approximation of the form factor of a horizon-clipped rectangle.\n float l = length( f );\n return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n float x = dot( v1, v2 );\n float y = abs( x );\n // rational polynomial approximation to theta / sin( theta ) / 2PI\n float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n float b = 3.4175940 + ( 4.1616724 + y ) * y;\n float v = a / b;\n float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n return cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n // bail if point is on back side of plane of light\n // assumes ccw winding order of light vertices\n vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n vec3 lightNormal = cross( v1, v2 );\n if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n // construct orthonormal basis around N\n vec3 T1, T2;\n T1 = normalize( V - N * dot( V, N ) );\n T2 = - cross( N, T1 ); // negated from paper; possibly due to a different handedness of world coordinate system\n // compute transform\n mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n // transform rect\n vec3 coords[ 4 ];\n coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n // project rect onto sphere\n coords[ 0 ] = normalize( coords[ 0 ] );\n coords[ 1 ] = normalize( coords[ 1 ] );\n coords[ 2 ] = normalize( coords[ 2 ] );\n coords[ 3 ] = normalize( coords[ 3 ] );\n // calculate vector form factor\n vec3 vectorFormFactor = vec3( 0.0 );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n // adjust for horizon clipping\n float result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n/*\n // alternate method of adjusting for horizon clipping (see referece)\n // refactoring required\n float len = length( vectorFormFactor );\n float z = vectorFormFactor.z / len;\n const float LUT_SIZE = 64.0;\n const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n const float LUT_BIAS = 0.5 / LUT_SIZE;\n // tabulated horizon-clipped sphere, apparently...\n vec2 uv = vec2( z * 0.5 + 0.5, len );\n uv = uv * LUT_SCALE + LUT_BIAS;\n float scale = texture2D( ltc_2, uv ).w;\n float result = len * scale;\n*/\n return vec3( result );\n}\n// End Rect Area Light\n// ref: https://www.unrealengine.com/blog/physically-based-shading-on-mobile - environmentBRDF for GGX on mobile\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n vec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n return specularColor * brdf.x + brdf.y;\n} // validated\n// Fdez-Ag\xfcera\'s "Multiple-Scattering Microfacet Model for Real-Time Image Based Lighting"\n// Approximates multiscattering in order to preserve energy.\n// http://www.jcgt.org/published/0008/01/03/\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n float dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n vec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n vec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n vec3 FssEss = F * brdf.x + brdf.y;\n float Ess = brdf.x + brdf.y;\n float Ems = 1.0 - Ess;\n vec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619; // 1/21\n vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n singleScatter += FssEss;\n multiScatter += Fms * Ems;\n}\nfloat G_BlinnPhong_Implicit( /* const in float dotNL, const in float dotNV */ ) {\n // geometry term is (n dot l)(n dot v) / 4(n dot l)(n dot v)\n return 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n vec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n //float dotNL = saturate( dot( geometry.normal, incidentLight.direction ) );\n //float dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n float dotNH = saturate( dot( geometry.normal, halfDir ) );\n float dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n vec3 F = F_Schlick( specularColor, dotLH );\n float G = G_BlinnPhong_Implicit( /* dotNL, dotNV */ );\n float D = D_BlinnPhong( shininess, dotNH );\n return F * ( G * D );\n} // validated\n// source: http://simonstechblog.blogspot.ca/2011/12/microfacet-brdf.html\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n return ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n return sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n#if defined( USE_SHEEN )\n// https://github.com/google/filament/blob/master/shaders/src/brdf.fs#L94\nfloat D_Charlie(float roughness, float NoH) {\n // Estevez and Kulla 2017, "Production Friendly Microfacet Sheen BRDF"\n float invAlpha = 1.0 / roughness;\n float cos2h = NoH * NoH;\n float sin2h = max(1.0 - cos2h, 0.0078125); // 2^(-14/2), so sin2h^2 > 0 in fp16\n return (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\n// https://github.com/google/filament/blob/master/shaders/src/brdf.fs#L136\nfloat V_Neubelt(float NoV, float NoL) {\n // Neubelt and Pettineo 2013, "Crafting a Next-gen Material Pipeline for The Order: 1886"\n return saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n vec3 N = geometry.normal;\n vec3 V = geometry.viewDir;\n vec3 H = normalize( V + L );\n float dotNH = saturate( dot( N, H ) );\n return specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\n#endif\n'; diff --git a/crates/swc/tests/fixture/deno/paths/issue-2126/output/packages/a/src/index.ts b/crates/swc/tests/fixture/deno/paths/issue-2126/output/packages/a/src/index.ts index 145f4dee5a4..9da9592a7fa 100644 --- a/crates/swc/tests/fixture/deno/paths/issue-2126/output/packages/a/src/index.ts +++ b/crates/swc/tests/fixture/deno/paths/issue-2126/output/packages/a/src/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "displayA", { - get: ()=>displayA, - enumerable: true + enumerable: true, + get: ()=>displayA }); function displayA() { return "Display A"; diff --git a/crates/swc/tests/fixture/deno/paths/issue-2724/output/packages/a/src/index.ts b/crates/swc/tests/fixture/deno/paths/issue-2724/output/packages/a/src/index.ts index 145f4dee5a4..9da9592a7fa 100644 --- a/crates/swc/tests/fixture/deno/paths/issue-2724/output/packages/a/src/index.ts +++ b/crates/swc/tests/fixture/deno/paths/issue-2724/output/packages/a/src/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "displayA", { - get: ()=>displayA, - enumerable: true + enumerable: true, + get: ()=>displayA }); function displayA() { return "Display A"; diff --git a/crates/swc/tests/fixture/deno/paths/issue-2844/output/src/core/utils/utilFile.ts b/crates/swc/tests/fixture/deno/paths/issue-2844/output/src/core/utils/utilFile.ts index 8e5407a6a43..2706afab17b 100644 --- a/crates/swc/tests/fixture/deno/paths/issue-2844/output/src/core/utils/utilFile.ts +++ b/crates/swc/tests/fixture/deno/paths/issue-2844/output/src/core/utils/utilFile.ts @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "test", { - get: ()=>test, - enumerable: true + enumerable: true, + get: ()=>test }); function test() {} diff --git a/crates/swc/tests/fixture/deno/paths/issue-2844/output/src/utils/index.ts b/crates/swc/tests/fixture/deno/paths/issue-2844/output/src/utils/index.ts index cc7efc33e6c..af5badeaadb 100644 --- a/crates/swc/tests/fixture/deno/paths/issue-2844/output/src/utils/index.ts +++ b/crates/swc/tests/fixture/deno/paths/issue-2844/output/src/utils/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "utilFn", { - get: ()=>utilFn, - enumerable: true + enumerable: true, + get: ()=>utilFn }); const _utilFile = require("../core/utils/utilFile"); (0, _utilFile.test)(); diff --git a/crates/swc/tests/fixture/interop/babel/output/index.js b/crates/swc/tests/fixture/interop/babel/output/index.js index 71e0d39bfd8..f0bf1476095 100644 --- a/crates/swc/tests/fixture/interop/babel/output/index.js +++ b/crates/swc/tests/fixture/interop/babel/output/index.js @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/interop/node/output/index.js b/crates/swc/tests/fixture/interop/node/output/index.js index bf8b6a2bf17..07a8df64cf4 100644 --- a/crates/swc/tests/fixture/interop/node/output/index.js +++ b/crates/swc/tests/fixture/interop/node/output/index.js @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.y = exports.x = exports.default = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/interop/none/output/index.js b/crates/swc/tests/fixture/interop/none/output/index.js index 0dc44603556..a86b7761351 100644 --- a/crates/swc/tests/fixture/interop/none/output/index.js +++ b/crates/swc/tests/fixture/interop/none/output/index.js @@ -1,8 +1,8 @@ "use strict"; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/interop/swc/output/index.js b/crates/swc/tests/fixture/interop/swc/output/index.js index 71e0d39bfd8..f0bf1476095 100644 --- a/crates/swc/tests/fixture/interop/swc/output/index.js +++ b/crates/swc/tests/fixture/interop/swc/output/index.js @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/issues-1xxx/1213/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1213/output/index.js index 83e0778da84..687ebf6829e 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1213/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1213/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>NotOK, - enumerable: true + enumerable: true, + get: ()=>NotOK }); const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; const _foo = _interopRequireDefault(require("foo")); diff --git a/crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts index e0cdd542d93..8824e45867b 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1307/output/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; const _foo = _interopRequireWildcard(require("./foo")); diff --git a/crates/swc/tests/fixture/issues-1xxx/1309/case1/output/index.map b/crates/swc/tests/fixture/issues-1xxx/1309/case1/output/index.map index 1f99bca567b..44ac13a2ee7 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1309/case1/output/index.map +++ b/crates/swc/tests/fixture/issues-1xxx/1309/case1/output/index.map @@ -1,5 +1,5 @@ { - "mappings": "AAAA;;;;+BAAaA,KAAG;aAAHA,GAAG;;;AAAT,MAAMA,GAAG,GAAG,CAAC,AAAC", + "mappings": "AAAA;;;;+BAAaA,KAAG;;aAAHA,GAAG;;AAAT,MAAMA,GAAG,GAAG,CAAC,AAAC", "names": [ "foo" ], diff --git a/crates/swc/tests/fixture/issues-1xxx/1309/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1309/case1/output/index.ts index 308c329210d..fde84a8549a 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1309/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1309/case1/output/index.ts @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const foo = 1; diff --git a/crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js index 52cc9fa5b5a..175675668ac 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1333/case2/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Shard", { - get: ()=>Shard, - enumerable: true + enumerable: true, + get: ()=>Shard }); 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/issues-1xxx/1333/case3/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1333/case3/output/index.js index 37ec4ce3fee..c94d81a70c3 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1333/case3/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1333/case3/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "RequestHandler", { - get: ()=>RequestHandler, - enumerable: true + enumerable: true, + get: ()=>RequestHandler }); 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/issues-1xxx/1362/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1362/case1/output/index.ts index 5a0a95ac6c9..d7324241bf9 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1362/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1362/case1/output/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "AppController", { - get: ()=>AppController, - enumerable: true + enumerable: true, + get: ()=>AppController }); const _tsDecorate = require("@swc/helpers/lib/_ts_decorate.js").default; const _tsMetadata = require("@swc/helpers/lib/_ts_metadata.js").default; diff --git a/crates/swc/tests/fixture/issues-1xxx/1454/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1454/case1/output/index.ts index 18e77fa1e01..48ba516e7c5 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1454/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1454/case1/output/index.ts @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "AbstractProviderDeliveryService", { - get: ()=>AbstractProviderDeliveryService, - enumerable: true + enumerable: true, + get: ()=>AbstractProviderDeliveryService }); class AbstractProviderDeliveryService { } diff --git a/crates/swc/tests/fixture/issues-1xxx/1454/case2/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1454/case2/output/index.ts index 18e77fa1e01..48ba516e7c5 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1454/case2/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1454/case2/output/index.ts @@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "AbstractProviderDeliveryService", { - get: ()=>AbstractProviderDeliveryService, - enumerable: true + enumerable: true, + get: ()=>AbstractProviderDeliveryService }); class AbstractProviderDeliveryService { } diff --git a/crates/swc/tests/fixture/issues-1xxx/1515/case1/output/input.ts b/crates/swc/tests/fixture/issues-1xxx/1515/case1/output/input.ts index 5765c10b808..6becf428179 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1515/case1/output/input.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1515/case1/output/input.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "ServiceError", { - get: ()=>ServiceError, - enumerable: true + enumerable: true, + get: ()=>ServiceError }); class ServiceError extends Error { constructor(...args){ diff --git a/crates/swc/tests/fixture/issues-1xxx/1554/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1554/case1/output/index.js index 8fb85f39529..c4581b0c0db 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1554/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1554/case1/output/index.js @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/issues-1xxx/1554/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1554/case2/output/index.js index 061d2e84d58..75efb07b7db 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1554/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1554/case2/output/index.js @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/issues-1xxx/1568/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1568/case1/output/index.ts index b0200af1b62..a138f7f9c59 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1568/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1568/case1/output/index.ts @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { + enumerable: true, get: function() { return get; - }, - enumerable: true + } }); function get(key) { console.log(key); diff --git a/crates/swc/tests/fixture/issues-1xxx/1682/case1/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1682/case1/output/index.ts index 5af7fc6c679..e947655c0ab 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1682/case1/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1682/case1/output/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "getPackage", { - get: ()=>getPackage, - enumerable: true + enumerable: true, + get: ()=>getPackage }); const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; const _path = require("path"); diff --git a/crates/swc/tests/fixture/issues-1xxx/1682/case2/output/index.ts b/crates/swc/tests/fixture/issues-1xxx/1682/case2/output/index.ts index 5af7fc6c679..e947655c0ab 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1682/case2/output/index.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1682/case2/output/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "getPackage", { - get: ()=>getPackage, - enumerable: true + enumerable: true, + get: ()=>getPackage }); const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; const _path = require("path"); diff --git a/crates/swc/tests/fixture/issues-1xxx/1714/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1714/case1/output/index.js index 559d118de45..a81d8749ac1 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1714/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1714/case1/output/index.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { + enumerable: true, get: function() { return _customRender.customRender; - }, - enumerable: true + } }); var _exportStar = require("@swc/helpers/lib/_export_star.js").default; var _customRender = require("./customRender"); diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case1/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case1/output/index.js index 32febdffd3d..549252fc5da 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case1/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case1/output/index.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { + enumerable: true, get: function() { return Foo; - }, - enumerable: true + } }); var _asyncToGenerator = require("@swc/helpers/lib/_async_to_generator.js").default; var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case2-no-loose/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case2-no-loose/output/index.js index a3fdc78a51f..eb26d5bfe77 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case2-no-loose/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case2-no-loose/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const _asyncToGenerator = require("@swc/helpers/lib/_async_to_generator.js").default; const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case2/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case2/output/index.js index ded281d1125..eb8d8ec265c 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case2/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case2/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const _asyncToGenerator = require("@swc/helpers/lib/_async_to_generator.js").default; const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case3/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case3/output/index.js index ded281d1125..eb8d8ec265c 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case3/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case3/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const _asyncToGenerator = require("@swc/helpers/lib/_async_to_generator.js").default; const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case4/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case4/output/index.js index 8f430ba2c8e..3a26d47c877 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case4/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case4/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; const _react = _interopRequireDefault(require("react")); diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case5/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case5/output/index.js index c64285e876b..9e5adfa4c3b 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case5/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case5/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; const _react = _interopRequireDefault(require("react")); diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case6-no-jsx/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case6-no-jsx/output/index.js index 7c1b6b4e308..bcc926d35fc 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case6-no-jsx/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case6-no-jsx/output/index.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { + enumerable: true, get: function() { return Foo; - }, - enumerable: true + } }); var _asyncToGenerator = require("@swc/helpers/lib/_async_to_generator.js").default; var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; diff --git a/crates/swc/tests/fixture/issues-1xxx/1799/case7-no-async/output/index.js b/crates/swc/tests/fixture/issues-1xxx/1799/case7-no-async/output/index.js index 4a641de2dc7..48f7d83114b 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1799/case7-no-async/output/index.js +++ b/crates/swc/tests/fixture/issues-1xxx/1799/case7-no-async/output/index.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { + enumerable: true, get: function() { return Foo; - }, - enumerable: true + } }); var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; var _react = _interopRequireDefault(require("react")); diff --git a/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/bar.ts b/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/bar.ts index 4dc8e31d343..cd530a83628 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/bar.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/bar.ts @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "bar", { + enumerable: true, get: function() { return bar; - }, - enumerable: true + } }); var bar = function() {}; diff --git a/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/foo.ts b/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/foo.ts index 87c414af194..96e20619d15 100644 --- a/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/foo.ts +++ b/crates/swc/tests/fixture/issues-1xxx/1859/case3/output/foo.ts @@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { + enumerable: true, get: function() { return foo; - }, - enumerable: true + } }); var foo = function() {}; diff --git a/crates/swc/tests/fixture/issues-2xxx/2050/output/subfolder/A.ts b/crates/swc/tests/fixture/issues-2xxx/2050/output/subfolder/A.ts index f5e762441dd..3851aec8024 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2050/output/subfolder/A.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2050/output/subfolder/A.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "A", { - get: ()=>A, - enumerable: true + enumerable: true, + get: ()=>A }); const _b = require("./B"); console.log(_b.B); diff --git a/crates/swc/tests/fixture/issues-2xxx/2050/output/subfolder/B.ts b/crates/swc/tests/fixture/issues-2xxx/2050/output/subfolder/B.ts index 95cb66c38ed..e09e37d6a4f 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2050/output/subfolder/B.ts +++ b/crates/swc/tests/fixture/issues-2xxx/2050/output/subfolder/B.ts @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "B", { - get: ()=>B, - enumerable: true + enumerable: true, + get: ()=>B }); const B = 500; diff --git a/crates/swc/tests/fixture/issues-2xxx/2539/1/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2539/1/output/index.js index e213260d977..3ea555104d6 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2539/1/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2539/1/output/index.js @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = { foo: { 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 69edd124445..25ca197b94c 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/issues-2xxx/2858/2/output/index.js b/crates/swc/tests/fixture/issues-2xxx/2858/2/output/index.js index df7105f0975..b965bcc4ff4 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2858/2/output/index.js +++ b/crates/swc/tests/fixture/issues-2xxx/2858/2/output/index.js @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 5a8fb74d9ea..2129af35407 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/issues-2xxx/2964/case-4/output/index.tsx b/crates/swc/tests/fixture/issues-2xxx/2964/case-4/output/index.tsx index 63dc49d3acb..68e3897c18e 100644 --- a/crates/swc/tests/fixture/issues-2xxx/2964/case-4/output/index.tsx +++ b/crates/swc/tests/fixture/issues-2xxx/2964/case-4/output/index.tsx @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "AnElement", { - get: ()=>AnElement, - enumerable: true + enumerable: true, + get: ()=>AnElement }); const AnElement = ({ prop1 , prop2 , prop3 , num , data })=>{ return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(SomeElement, { diff --git a/crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts b/crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts index 69e80556e36..06d807e4b69 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-3xxx/3686/1/output/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "ServiceError", { - get: ()=>ServiceError, - enumerable: true + enumerable: true, + get: ()=>ServiceError }); const _tsDecorate = require("@swc/helpers/lib/_ts_decorate.js").default; const CD = ()=>{}; 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 e070acfb25f..ad03d67684c 100644 --- a/crates/swc/tests/fixture/issues-3xxx/3782/output/index.ts +++ b/crates/swc/tests/fixture/issues-3xxx/3782/output/index.ts @@ -1,8 +1,8 @@ "use strict"; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts index a86b3d7759d..8ad0503ec86 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4063/1/output/index.ts @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_class, - enumerable: true + enumerable: true, + get: ()=>_class }); _tsDecorate = _tsDecorate.default; function state() {} diff --git a/crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts index 1472d1c7b12..614d3e09a77 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4127/1/output/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_class, - enumerable: true + enumerable: true, + get: ()=>_class }); const _tsDecorate = require("@swc/helpers/lib/_ts_decorate.js").default; function test(constructor) { diff --git a/crates/swc/tests/fixture/issues-4xxx/4896/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4896/output/index.ts index 78fbe11d88c..69237846a46 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4896/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4896/output/index.ts @@ -5,7 +5,7 @@ define([ ], function(require, exports, _gettingStartedIcons) { "use strict"; Object.defineProperty(exports, "icons", { - get: ()=>_gettingStartedIcons, - enumerable: true + enumerable: true, + get: ()=>_gettingStartedIcons }); }); diff --git a/crates/swc/tests/fixture/issues-4xxx/4897/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4897/output/index.ts index 39074bb877a..1d887454fe7 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4897/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4897/output/index.ts @@ -5,8 +5,8 @@ define([ "use strict"; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/fixture/issues-4xxx/4953/output/index.js b/crates/swc/tests/fixture/issues-4xxx/4953/output/index.js index fe56d76cc99..d28e82ae925 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4953/output/index.js +++ b/crates/swc/tests/fixture/issues-4xxx/4953/output/index.js @@ -16,6 +16,6 @@ function a(a, b) { Object.defineProperty(exports, "__esModule", { value: !0 }), Object.defineProperty(exports, "default", { - get: ()=>a, - enumerable: !0 + enumerable: !0, + get: ()=>a }); diff --git a/crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts b/crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts index 088157a7d48..b5baa2148e3 100644 --- a/crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts +++ b/crates/swc/tests/fixture/issues-4xxx/4988/output/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "flakySuite", { - get: ()=>flakySuite, - enumerable: true + enumerable: true, + get: ()=>flakySuite }); const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default; const _testUtils = _interopRequireWildcard(require("vs/base/test/common/testUtils")); diff --git a/crates/swc/tests/fixture/jest/sourcemap-1/output/index.ts b/crates/swc/tests/fixture/jest/sourcemap-1/output/index.ts index 10032c8b4ed..2d89511ac14 100644 --- a/crates/swc/tests/fixture/jest/sourcemap-1/output/index.ts +++ b/crates/swc/tests/fixture/jest/sourcemap-1/output/index.ts @@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Button", { - get: ()=>Button, - enumerable: true + enumerable: true, + get: ()=>Button }); const _linaria = require("linaria"); const Button = _linaria.css` color: red; `; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2lucHV0L2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gXCJsaW5hcmlhXCI7XG5cbmV4cG9ydCBjb25zdCBCdXR0b24gPSBjc3NgXG4gICAgY29sb3I6IHJlZDtcbmA7XG4iXSwibmFtZXMiOlsiQnV0dG9uIiwiY3NzIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFFYUEsUUFBTTthQUFOQSxNQUFNOzs7eUJBRkMsU0FBUztBQUV0QixNQUFNQSxNQUFNLEdBQUdDLFFBQUcsSUFBQSxDQUFDOztBQUUxQixDQUFDLEFBQUMifQ== +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2lucHV0L2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gXCJsaW5hcmlhXCI7XG5cbmV4cG9ydCBjb25zdCBCdXR0b24gPSBjc3NgXG4gICAgY29sb3I6IHJlZDtcbmA7XG4iXSwibmFtZXMiOlsiQnV0dG9uIiwiY3NzIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFFYUEsUUFBTTs7YUFBTkEsTUFBTTs7eUJBRkMsU0FBUztBQUV0QixNQUFNQSxNQUFNLEdBQUdDLFFBQUcsSUFBQSxDQUFDOztBQUUxQixDQUFDLEFBQUMifQ== diff --git a/crates/swc/tests/fixture/shopify/002/output/index.js b/crates/swc/tests/fixture/shopify/002/output/index.js index e5766b1e640..40671053e26 100644 --- a/crates/swc/tests/fixture/shopify/002/output/index.js +++ b/crates/swc/tests/fixture/shopify/002/output/index.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "App", { + enumerable: true, get: function() { return App; - }, - enumerable: true + } }); var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; var _slicedToArray = require("@swc/helpers/lib/_sliced_to_array.js").default; diff --git a/crates/swc/tests/fixture/shopify/003-env/output/index.js b/crates/swc/tests/fixture/shopify/003-env/output/index.js index e5766b1e640..40671053e26 100644 --- a/crates/swc/tests/fixture/shopify/003-env/output/index.js +++ b/crates/swc/tests/fixture/shopify/003-env/output/index.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "App", { + enumerable: true, get: function() { return App; - }, - enumerable: true + } }); var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; var _slicedToArray = require("@swc/helpers/lib/_sliced_to_array.js").default; diff --git a/crates/swc/tests/fixture/shopify/004-jest/output/index.js b/crates/swc/tests/fixture/shopify/004-jest/output/index.js index e5766b1e640..40671053e26 100644 --- a/crates/swc/tests/fixture/shopify/004-jest/output/index.js +++ b/crates/swc/tests/fixture/shopify/004-jest/output/index.js @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "App", { + enumerable: true, get: function() { return App; - }, - enumerable: true + } }); var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default; var _slicedToArray = require("@swc/helpers/lib/_sliced_to_array.js").default; diff --git a/crates/swc/tests/fixture/sourcemap/001/output/index.map b/crates/swc/tests/fixture/sourcemap/001/output/index.map index 13c73f37d96..1fd6ebcf68d 100644 --- a/crates/swc/tests/fixture/sourcemap/001/output/index.map +++ b/crates/swc/tests/fixture/sourcemap/001/output/index.map @@ -1,5 +1,5 @@ { - "mappings": "AAAA;;;;+BAAaA,KAAG;aAAHA,GAAG;;;AAAT,MAAMA,GAAG,GAAG;IACfC,GAAG,EAAE,EAAE;CACV,AAAC", + "mappings": "AAAA;;;;+BAAaA,KAAG;;aAAHA,GAAG;;AAAT,MAAMA,GAAG,GAAG;IACfC,GAAG,EAAE,EAAE;CACV,AAAC", "names": [ "foo", "arr" diff --git a/crates/swc/tests/fixture/sourcemap/001/output/index.ts b/crates/swc/tests/fixture/sourcemap/001/output/index.ts index c8e5d1650d2..084b0302f83 100644 --- a/crates/swc/tests/fixture/sourcemap/001/output/index.ts +++ b/crates/swc/tests/fixture/sourcemap/001/output/index.ts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const foo = { arr: [] 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 76a152eda06..4d35503fc45 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 57103eeabf0..8c149086602 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc/tests/vercel/full/react-autowhatever/1/output/index.js b/crates/swc/tests/vercel/full/react-autowhatever/1/output/index.js index a91d2fbd02d..4cd9a9078c1 100644 --- a/crates/swc/tests/vercel/full/react-autowhatever/1/output/index.js +++ b/crates/swc/tests/vercel/full/react-autowhatever/1/output/index.js @@ -2,10 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: !0 }), Object.defineProperty(exports, "default", { + enumerable: !0, get: function() { return k; - }, - enumerable: !0 + } }); var a = require("@swc/helpers/lib/_class_call_check.js").default, b = require("@swc/helpers/lib/_inherits.js").default, c = require("@swc/helpers/lib/_interop_require_default.js").default, d = require("@swc/helpers/lib/_interop_require_wildcard.js").default, e = require("@swc/helpers/lib/_object_spread.js").default, f = require("@swc/helpers/lib/_object_spread_props.js").default, g = require("@swc/helpers/lib/_create_super.js").default, h = require("react/jsx-runtime"), i = d(require("react")), j = c(require("prop-types")), k = function(c) { "use strict"; diff --git a/crates/swc/tests/vercel/full/react-autowhatever/2/output/index.js b/crates/swc/tests/vercel/full/react-autowhatever/2/output/index.js index f509703f113..3756f823ff8 100644 --- a/crates/swc/tests/vercel/full/react-autowhatever/2/output/index.js +++ b/crates/swc/tests/vercel/full/react-autowhatever/2/output/index.js @@ -2,10 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: !0 }), Object.defineProperty(exports, "default", { + enumerable: !0, get: function() { return i; - }, - enumerable: !0 + } }); var a = require("@swc/helpers/lib/_class_call_check.js").default, b = require("@swc/helpers/lib/_inherits.js").default, c = require("@swc/helpers/lib/_interop_require_wildcard.js").default, d = require("@swc/helpers/lib/_object_spread.js").default, e = require("@swc/helpers/lib/_object_spread_props.js").default, f = require("@swc/helpers/lib/_create_super.js").default, g = require("react/jsx-runtime"), h = c(require("react")), i = function(c) { "use strict"; diff --git a/crates/swc_ecma_transforms/tests/decorators.rs b/crates/swc_ecma_transforms/tests/decorators.rs index be9e09334c3..2bd2cacbb1a 100644 --- a/crates/swc_ecma_transforms/tests/decorators.rs +++ b/crates/swc_ecma_transforms/tests/decorators.rs @@ -3936,10 +3936,10 @@ export default Test " \"use strict\"; Object.defineProperty(exports, \"default\", { + enumerable: true, get: function() { return _default; - }, - enumerable: true + } }); const Test = (version)=>{ return (target)=>{ diff --git a/crates/swc_ecma_transforms/tests/es2015_function_name.rs b/crates/swc_ecma_transforms/tests/es2015_function_name.rs index 87583bd1db7..2db67395d07 100644 --- a/crates/swc_ecma_transforms/tests/es2015_function_name.rs +++ b/crates/swc_ecma_transforms/tests/es2015_function_name.rs @@ -309,10 +309,10 @@ Object.defineProperty(exports, "__esModule", { }); Object.defineProperty(exports, "default", { + enumerable: true, get: function() { return Login; - }, - enumerable: true + } }); var _store = require("./store"); diff --git a/crates/swc_ecma_transforms_module/src/util.rs b/crates/swc_ecma_transforms_module/src/util.rs index 1395428e1bf..7e67ac8602c 100644 --- a/crates/swc_ecma_transforms_module/src/util.rs +++ b/crates/swc_ecma_transforms_module/src/util.rs @@ -208,7 +208,6 @@ pub(crate) fn object_define_enumerable( ObjectLit { span: DUMMY_SP, props: vec![ - prop, PropOrSpread::Prop(Box::new( KeyValueProp { key: quote_ident!("enumerable").into(), @@ -216,6 +215,7 @@ pub(crate) fn object_define_enumerable( } .into(), )), + prop, ], } .as_arg(), diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.amd.js index 3ca1647dda7..e4351b455bc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "Foo", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); class Foo { static prop = _simple.a; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.cjs index 4ac644257fd..1d46b8fb6c0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Foo", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const _simple = require("./files_with_swcrc/simple"); class Foo { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.umd.js index 745d9dbc69b..fc64da17b33 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/class-property/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "Foo", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); class Foo { static prop = _simple.a; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.amd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.amd.ts index 745bc9c5603..a9f6aa2da40 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.amd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.amd.ts @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.cts b/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.cts index 14a0d365776..b31a2b77f8a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.cts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.cts @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.umd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.umd.ts index 121ee0cea7a..2b3a8f2e067 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.umd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/cts-import-export/export-import/output.umd.ts @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.amd.js index 641feeb9ea9..4004e1eee93 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo = 1; var foo = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.cjs index 4da5bd38369..6f5b9e096e5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo = 1; var foo = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.umd.js index f2d4c261a8d..92af82cad89 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/01/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo = 1; var foo = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.amd.js index 061e43e096d..ad5f378be18 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "good", { - get: ()=>good, - enumerable: true + enumerable: true, + get: ()=>good }); const good = { a (bad1) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.cjs index 02bcedd511a..d96193d7ed7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "good", { - get: ()=>good, - enumerable: true + enumerable: true, + get: ()=>good }); const good = { a (bad1) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.umd.js index 62a13387bc3..f0dc0aaff35 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/02/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "good", { - get: ()=>good, - enumerable: true + enumerable: true, + get: ()=>good }); const good = { a (bad1) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.amd.js index 13cfc9b20bc..966d61bc8bb 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.amd.js @@ -8,7 +8,7 @@ define("moduleId", [ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_src.foo, - enumerable: true + enumerable: true, + get: ()=>_src.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.cjs index 2be5dc10de7..d61d45ae000 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_src.foo, - enumerable: true + enumerable: true, + get: ()=>_src.foo }); const _src = require("src"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.umd.js index 2bb89864fd0..c0f2d1019dc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/named-define/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_src.foo, - enumerable: true + enumerable: true, + get: ()=>_src.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.amd.js index 1e4ad2e24c5..3f8e77610b6 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.amd.js @@ -6,8 +6,8 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.cjs index 2c722f204ec..90a360f15d2 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.cjs @@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.umd.js index d210bd201d4..2a724ccc195 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/custom/non-strict-mode/output.umd.js @@ -9,8 +9,8 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} }); 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 9b3d841be07..7a9d4aa4209 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 9cf8944d2fa..37a0a392b46 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 ee470477a9b..582e4bd5d47 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.amd.js index 59cad0a0a03..e84014cb094 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); _react = _exportStar(_react, exports); var _default = _react; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.cjs index e4c8457b223..8a3efb726ee 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); const _react = _exportStar(require("react"), exports); var _default = _react; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.umd.js index c7fce329611..c21d43a4258 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-all/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); _react = _exportStar(_react, exports); var _default = _react; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.amd.js index 11fe86cdebc..1d6515bf7a9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = function() { return "foo"; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.cjs index 11079f2da05..d28d105101f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = function() { return "foo"; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.umd.js index 503c431cc32..4b1c5c8b71d 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-10/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = function() { return "foo"; 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 ca8cb0b3b6e..bb6d1c36c64 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 9d37195696d..3be033c4b0e 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 @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.default = exports.Cachier = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 1d00d5db7f1..0cc140aeb20 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.amd.js index 0819898574f..40aec1e891c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = {}; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.cjs index 5eee36d1782..fe758968651 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = {}; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.umd.js index c435daab8da..6fd556b5ff4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-2/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = {}; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.amd.js index bf953445521..cff403e7346 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.cjs index a10b7febe4c..d9d9f88da46 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = []; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.umd.js index d4bbb18aa23..1460722153b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-3/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.amd.js index 10ec510642a..09065cc2d93 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.cjs index eaf8ee7dc2a..f8f85340467 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.umd.js index 5f2c76f74b3..3ff77437b11 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-4/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.amd.js index efa0e34a00b..7b6ffb989e5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.cjs index 3837d7532ed..4a7bd6f0af5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.umd.js index bef3422103f..ea6a636940c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-5/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.amd.js index 0ceec52f4dc..301bc181a57 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); class _default { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.cjs index b53340bea4f..ce786a05e3a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); class _default { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.umd.js index 31a889e3783..1276637f83b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-6/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); class _default { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.amd.js index 031fb64edde..56ef4ea2006 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.cjs index b266dc6d9e0..15fc9185efe 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.umd.js index 43747ef1819..17e94ddbdc3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-7/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.amd.js index 510871f3c90..443ffb0248a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); class Foo { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.cjs index 92c1d19159e..6f49ea5d0bc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); class Foo { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.umd.js index 02ee94a386b..8e34af159c1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-8/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); class Foo { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.amd.js index e1f186c6312..6057e117470 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.cjs index 0cdfe1211bc..7e2e6f47e31 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.umd.js index 9228b25dc09..b29e6d1ad6c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default-9/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.amd.js index 021c462eeb3..1774fd003a4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = 42; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.cjs index 61da191a4b4..c435abbf726 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = 42; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.umd.js index aee902a2c6e..bfed6b32087 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-default/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = 42; }); 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 dfdcc420438..1f7634c7b71 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 ad8a4228e92..e6ed32422cf 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 @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.y = exports.x = exports.f4 = exports.f3 = exports.f2 = exports.f1 = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 5ed1b183a9f..da9485c7bb3 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.amd.js index 6313bf4a6e6..5434d18d8da 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.cjs index 3dec2665906..d93bc6114ba 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.foo = void 0; Object.defineProperty(exports, "foo", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.umd.js index 56bdfa8a97d..6aca2e188c1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-2/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.amd.js index 2947cadd8da..db876e42db3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.amd.js @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.cjs index 50f795d9cdb..aa8e9fa6b1a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.cjs @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.foo = exports.bar = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.umd.js index 3351e1a30cb..350fd395fba 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-3/output.umd.js @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.amd.js index de3a71674c5..579c4002c33 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.cjs index 96726f67c4a..bb855ec0266 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.bar = void 0; Object.defineProperty(exports, "bar", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.umd.js index 77ad92047bb..9395936b992 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-4/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.amd.js index 717706435f7..d17a8999001 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.cjs index 93e1a8ca9a0..08268b27e64 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.umd.js index e64415a7081..6b55814bbea 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-5/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.amd.js index fa12d5352ba..c28903318a5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.amd.js @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs index 9fdac8837b4..12625854dbe 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.cjs @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.default = exports.bar = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.umd.js index e899a309546..3a1910b072a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-6/output.umd.js @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.amd.js index d620c9abf10..4e12fc02265 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); _foo = _foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.cjs index 6d48893aa3f..82446cc02be 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.foo = void 0; Object.defineProperty(exports, "foo", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.umd.js index f3b924cc691..0050329c0e4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-7/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); _foo = _foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.amd.js index 89a924e066f..2dff4b02cf8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.amd.js @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs index 5ef27ba0ddd..04ae0c921c0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.cjs @@ -6,8 +6,8 @@ exports.foo98 = exports.foo97 = exports.foo96 = exports.foo95 = exports.foo94 = exports.foo99 = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.umd.js index 2f8c72af287..62da2d76c04 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-from-8/output.umd.js @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.amd.js index 4e41599ea2d..62efab7b93c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.cjs index 80034090596..e4bf4982d21 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.foo = void 0; Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.umd.js index 9389b665075..bdcc3df905c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.amd.js index 66f33255428..43e1e29215e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs index 56a5192ccc9..a88965175a2 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.cjs @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.foo = exports.bar = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.umd.js index 4683a3ab21c..15b446e63e4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-2/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.amd.js index a7495229ed1..db397e19b71 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.cjs index 427b483ff64..ebe74ff334e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.bar = void 0; Object.defineProperty(exports, "bar", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.umd.js index 6eea3216098..daee79eaf9b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-3/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.amd.js index e1f186c6312..6057e117470 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.cjs index 0cdfe1211bc..7e2e6f47e31 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.cjs @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.umd.js index 9228b25dc09..b29e6d1ad6c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-4/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.amd.js index 8e4b61e0b93..a9b8253f53b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs index 179e5c47fab..1b147e02a12 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.cjs @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.default = exports.bar = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.umd.js index 48d4e8d79ac..faf6a79d94e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/export-named-5/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 0ddf61d8f98..1c7e58eae88 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 eace5fdfef9..c77f898ac49 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 @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.foo9 = exports.foo8 = exports.foo7 = exports.foo6 = exports.foo5 = exports.foo4 = exports.foo3 = exports.foo2 = exports.foo = exports.bar = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 9bb41d04c7d..a8d2f9a9329 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 9d078c9bc46..a881a2c8532 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 @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 26c9b48f929..c649f0560b0 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 @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.nextOdd = exports.isOdd = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 e799113cd56..4a205f60b75 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 @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.amd.js index 5875f496260..4ec93d39a0f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.amd.js @@ -15,8 +15,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs index 1b4820dceca..12a04f033e8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.cjs @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.test2 = exports.test = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.umd.js index 9f648d95b85..a3a474ac318 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-node/overview/output.umd.js @@ -18,8 +18,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 d31e145f078..e3164989721 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 286ef275c8b..b1cd5a0b226 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 @@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", { exports.test = exports.f = exports.e = exports.c = exports.a = void 0; function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 0704bfa857f..40c8331b597 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.amd.js index 159f0945d3b..a8e2357efad 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.amd.js @@ -5,7 +5,7 @@ define([ ], function(require, exports, _foo) { "use strict"; Object.defineProperty(exports, "default", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.cjs index 1e79d8618ab..41fffea6abe 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.cjs @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "default", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.umd.js index c1af82b851e..cdaa261a6f9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop-none/export-from/output.umd.js @@ -8,7 +8,7 @@ })(this, function(exports, _foo) { "use strict"; Object.defineProperty(exports, "default", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.amd.js index 4c941b3fd99..0f9e475dedc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); _react = _interopRequireDefault(_exportStar(_react, exports)); var _default = _react.default; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.cjs index 417c5b7cc4d..81908e0998a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); const _react = _interopRequireDefault(_exportStar(require("react"), exports)); var _default = _react.default; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.umd.js index fba7fa5ce64..da55749655a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-all/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); _react = _interopRequireDefault(_exportStar(_react, exports)); var _default = _react.default; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.amd.js index 11fe86cdebc..1d6515bf7a9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = function() { return "foo"; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.cjs index f4232e4bb64..49210e72c07 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = function() { return "foo"; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.umd.js index 503c431cc32..4b1c5c8b71d 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-10/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = function() { return "foo"; 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 ca8cb0b3b6e..bb6d1c36c64 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 52613117ed7..8b94a80d296 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 1d00d5db7f1..0cc140aeb20 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.amd.js index 0819898574f..40aec1e891c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = {}; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.cjs index 9c2784082a3..5c02cc49040 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = {}; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.umd.js index c435daab8da..6fd556b5ff4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-2/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = {}; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.amd.js index bf953445521..cff403e7346 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.cjs index 23b515f0c42..d4cb12521a4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = []; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.umd.js index d4bbb18aa23..1460722153b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-3/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = []; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.amd.js index 10ec510642a..09065cc2d93 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.cjs index affcffa4589..630a76faf51 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.umd.js index 5f2c76f74b3..3ff77437b11 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-4/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.amd.js index efa0e34a00b..7b6ffb989e5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.cjs index 74ba6b93319..80b9fbe10a3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.umd.js index bef3422103f..ea6a636940c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-5/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.amd.js index 0ceec52f4dc..301bc181a57 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); class _default { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.cjs index 83d73b8c59e..c592108ec24 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); class _default { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.umd.js index 31a889e3783..1276637f83b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-6/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); class _default { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.amd.js index 031fb64edde..56ef4ea2006 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.cjs index f421f248a4c..019ec152813 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.umd.js index 43747ef1819..17e94ddbdc3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-7/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.amd.js index 510871f3c90..443ffb0248a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); class Foo { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.cjs index 02d2a193fbd..aea6bd3a079 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); class Foo { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.umd.js index 02ee94a386b..8e34af159c1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-8/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); class Foo { } diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.amd.js index e1f186c6312..6057e117470 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.cjs index ce965f7bd96..171aadd5c74 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.umd.js index 9228b25dc09..b29e6d1ad6c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default-9/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.amd.js index 021c462eeb3..1774fd003a4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = 42; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.cjs index d38bfcc24fb..16fa09ac7d4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = 42; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.umd.js index aee902a2c6e..bfed6b32087 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-default/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = 42; }); 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 dfdcc420438..1f7634c7b71 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 02594087c75..87e83277138 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 5ed1b183a9f..da9485c7bb3 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.amd.js index 6313bf4a6e6..5434d18d8da 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.cjs index d70df1ef584..b01fa14d911 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.umd.js index 56bdfa8a97d..6aca2e188c1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-2/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.amd.js index 2947cadd8da..db876e42db3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.amd.js @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.cjs index 0812e41ac04..2493c4833d9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.umd.js index 3351e1a30cb..350fd395fba 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-3/output.umd.js @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.amd.js index de3a71674c5..579c4002c33 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.cjs index f14fa6ef218..241bc09a48b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "bar", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.umd.js index 77ad92047bb..9395936b992 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-4/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.amd.js index 717706435f7..d17a8999001 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.cjs index a0c6ed2e707..77d78cd6335 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); const _foo = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.umd.js index e64415a7081..6b55814bbea 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-5/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.foo, - enumerable: true + enumerable: true, + get: ()=>_foo.foo }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.amd.js index fa12d5352ba..c28903318a5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.amd.js @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.cjs index a1cb4967024..c9796e180f9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.umd.js index e899a309546..3a1910b072a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-6/output.umd.js @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.amd.js index 534ad9c18c1..9fc855080f0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); _foo = _interopRequireDefault(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.cjs index f6af058c1e3..94c90e59c21 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); const _foo = _interopRequireDefault(require("foo")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.umd.js index 47b2292b1e5..82836435e3f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-7/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); _foo = _interopRequireDefault(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.amd.js index 89a924e066f..2dff4b02cf8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.amd.js @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.cjs index a92a7093664..d7373c408b0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.umd.js index 2f8c72af287..62da2d76c04 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-from-8/output.umd.js @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.amd.js index 4e41599ea2d..62efab7b93c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.cjs index dc4f0fc8a3b..9add855cfa9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.umd.js index 9389b665075..bdcc3df905c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.amd.js index 66f33255428..43e1e29215e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.cjs index ca8f7de8f4a..167ae0c7980 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.umd.js index 4683a3ab21c..15b446e63e4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-2/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.amd.js index a7495229ed1..db397e19b71 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.cjs index 454b611bd8f..153c3c7518c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "bar", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.umd.js index 6eea3216098..daee79eaf9b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-3/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.amd.js index e1f186c6312..6057e117470 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.cjs index ce965f7bd96..171aadd5c74 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.umd.js index 9228b25dc09..b29e6d1ad6c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-4/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.amd.js index 8e4b61e0b93..a9b8253f53b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.cjs index 50330a024e6..cdb82cadcb6 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.umd.js index 48d4e8d79ac..faf6a79d94e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/export-named-5/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 0ddf61d8f98..1c7e58eae88 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 a737fa364cf..890c8221dd9 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 9bb41d04c7d..a8d2f9a9329 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 9d078c9bc46..a881a2c8532 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 @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 4b982f5ba18..4923e2b867c 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 e799113cd56..4a205f60b75 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 @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.amd.js index f3d8a94e391..f36b85896a2 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.amd.js @@ -15,8 +15,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.cjs index cb5187d5fc8..d8a705ba1dd 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.umd.js index c9e34ac40f3..b1deed3b40c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/interop/overview/output.umd.js @@ -18,8 +18,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 d31e145f078..e3164989721 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 fc85e8d69f8..d558fa46863 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 0704bfa857f..40c8331b597 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.amd.js index 2d042d88556..853318c160e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.amd.js @@ -9,8 +9,8 @@ define([ value: true }); Object.defineProperty(exports, "Scope", { - get: ()=>_interfaces.Scope, - enumerable: true + enumerable: true, + get: ()=>_interfaces.Scope }); _exportStar(_http, exports); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.cjs index 0c7877558a8..08f4baa8811 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Scope", { - get: ()=>_interfaces.Scope, - enumerable: true + enumerable: true, + get: ()=>_interfaces.Scope }); _exportStar(require("./http"), exports); const _interfaces = require("./interfaces"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.umd.js index 12243b564c6..e0ed1837422 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/1/output.umd.js @@ -12,8 +12,8 @@ value: true }); Object.defineProperty(exports, "Scope", { - get: ()=>_interfaces.Scope, - enumerable: true + enumerable: true, + get: ()=>_interfaces.Scope }); _exportStar(_http, exports); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.amd.js index 81569a72f18..d4c438fdfbc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.amd.js @@ -11,8 +11,8 @@ define([ value: true }); Object.defineProperty(exports, "id", { - get: ()=>_interfaces.id, - enumerable: true + enumerable: true, + get: ()=>_interfaces.id }); _exportStar(_http, exports); _exportStar(_pipes, exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.cjs index eefb7752ad4..fa25f818b3d 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "id", { - get: ()=>_interfaces.id, - enumerable: true + enumerable: true, + get: ()=>_interfaces.id }); require("reflect-metadata"); _exportStar(require("./http"), exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.umd.js index 2c27f49ce60..fceea93a96c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1043/2/output.umd.js @@ -14,8 +14,8 @@ value: true }); Object.defineProperty(exports, "id", { - get: ()=>_interfaces.id, - enumerable: true + enumerable: true, + get: ()=>_interfaces.id }); _exportStar(_http, exports); _exportStar(_pipes, exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.amd.js index 76003e3f5a9..640daf89df2 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>NotOK, - enumerable: true + enumerable: true, + get: ()=>NotOK }); _foo = _interopRequireDefault(_foo); class OK { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.cjs index c93aa4084d4..794afecd23c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>NotOK, - enumerable: true + enumerable: true, + get: ()=>NotOK }); const _foo = _interopRequireDefault(require("foo")); class OK { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.umd.js index 57f69112237..919c1087f76 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1213/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>NotOK, - enumerable: true + enumerable: true, + get: ()=>NotOK }); _foo = _interopRequireDefault(_foo); class OK { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.amd.js index 94d1bd41598..364904f4498 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>get, - enumerable: true + enumerable: true, + get: ()=>get }); function get(key) { console.log(key); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.cjs index 65b333b83c0..01d3e8e0eda 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>get, - enumerable: true + enumerable: true, + get: ()=>get }); function get(key) { console.log(key); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.umd.js index 4a404cf09a0..92b8b0a08e5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>get, - enumerable: true + enumerable: true, + get: ()=>get }); function get(key) { console.log(key); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.amd.js index 63b843a4f13..920d00fbd3e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.cjs index 5a6811f70d4..9290724d3cc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.umd.js index bed40eb30a8..8c53fe31118 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1568/2/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.amd.js index c4b17f756a5..42be014c858 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.amd.js @@ -9,8 +9,8 @@ define([ value: true }); Object.defineProperty(exports, "BIZ", { - get: ()=>BIZ, - enumerable: true + enumerable: true, + get: ()=>BIZ }); _exportStar(_file1, exports); _exportStar(_file2, exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.cjs index 2fc54819e7e..0171e3ec3b4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "BIZ", { - get: ()=>BIZ, - enumerable: true + enumerable: true, + get: ()=>BIZ }); _exportStar(require("./File1"), exports); _exportStar(require("./File2"), exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.umd.js index a8ff55ea7e2..7daeeb142bf 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1780/1/output.umd.js @@ -12,8 +12,8 @@ value: true }); Object.defineProperty(exports, "BIZ", { - get: ()=>BIZ, - enumerable: true + enumerable: true, + get: ()=>BIZ }); _exportStar(_file1, exports); _exportStar(_file2, exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.amd.js index 33c80626086..963a3b1ab84 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "Foo", { - get: ()=>_foo.Foo, - enumerable: true + enumerable: true, + get: ()=>_foo.Foo }); _foo = _interopRequireWildcard(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.cjs index f49524d884b..b3abfb1d726 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Foo", { - get: ()=>_foo.Foo, - enumerable: true + enumerable: true, + get: ()=>_foo.Foo }); const _foo = _interopRequireWildcard(require("foo")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.umd.js index a4ff2be5db2..d737ffcc2a6 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1786/1/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "Foo", { - get: ()=>_foo.Foo, - enumerable: true + enumerable: true, + get: ()=>_foo.Foo }); _foo = _interopRequireWildcard(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.amd.js index 7005e9d5400..229a07771cf 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); function Foo() { return 500; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.cjs index dc7f890ceab..2c419f9e6d4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); function Foo() { return 500; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.umd.js index dbebee1d7ab..a31d994319b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); function Foo() { return 500; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.amd.js index f145b79cd9c..6c223e65b72 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() { return 500; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.cjs index c8baaa327f7..0d84846f56d 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() { return 500; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.umd.js index dd019daf9e3..a9f6b3c3ca9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-1799/2/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function _default() { return 500; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.amd.js index 6b32c35fafa..6a7795fc708 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.amd.js @@ -9,8 +9,8 @@ define([ value: true }); Object.defineProperty(exports, "render", { - get: ()=>_customRender.customRender, - enumerable: true + enumerable: true, + get: ()=>_customRender.customRender }); _exportStar(_react, exports); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.cjs index 40dde8681f5..12574789cd3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { - get: ()=>_customRender.customRender, - enumerable: true + enumerable: true, + get: ()=>_customRender.customRender }); const _customRender = require("./customRender"); _exportStar(require("@testing-library/react"), exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.umd.js index c70e48cedec..2838a3fc0da 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/1/output.umd.js @@ -12,8 +12,8 @@ value: true }); Object.defineProperty(exports, "render", { - get: ()=>_customRender.customRender, - enumerable: true + enumerable: true, + get: ()=>_customRender.customRender }); _exportStar(_react, exports); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.amd.js index 6b32c35fafa..6a7795fc708 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.amd.js @@ -9,8 +9,8 @@ define([ value: true }); Object.defineProperty(exports, "render", { - get: ()=>_customRender.customRender, - enumerable: true + enumerable: true, + get: ()=>_customRender.customRender }); _exportStar(_react, exports); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.cjs index 40dde8681f5..12574789cd3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "render", { - get: ()=>_customRender.customRender, - enumerable: true + enumerable: true, + get: ()=>_customRender.customRender }); const _customRender = require("./customRender"); _exportStar(require("@testing-library/react"), exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.umd.js index c70e48cedec..2838a3fc0da 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2101/2/output.umd.js @@ -12,8 +12,8 @@ value: true }); Object.defineProperty(exports, "render", { - get: ()=>_customRender.customRender, - enumerable: true + enumerable: true, + get: ()=>_customRender.customRender }); _exportStar(_react, exports); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.amd.js index 91c692fb261..33401b15f4b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "fn", { - get: ()=>fn, - enumerable: true + enumerable: true, + get: ()=>fn }); const fn = ({ a =new _something.Foo() })=>a; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.cjs index 8e67b933b55..1b7b096b187 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "fn", { - get: ()=>fn, - enumerable: true + enumerable: true, + get: ()=>fn }); const _something = require("something"); const fn = ({ a =new _something.Foo() })=>a; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.umd.js index 345c943b6a5..8885194f02a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-235/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "fn", { - get: ()=>fn, - enumerable: true + enumerable: true, + get: ()=>fn }); const fn = ({ a =new _something.Foo() })=>a; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.amd.js index 14da3d20f10..b14182e2ffb 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "X", { - get: ()=>_z.default, - enumerable: true + enumerable: true, + get: ()=>_z.default }); _z = _interopRequireDefault(_z); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.cjs index 8b63ff4cde3..ed9d2a33f7b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "X", { - get: ()=>_z.default, - enumerable: true + enumerable: true, + get: ()=>_z.default }); const _z = _interopRequireDefault(require("./Z")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.umd.js index 2f65cbb6bf5..d489c0c6b90 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case1/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "X", { - get: ()=>_z.default, - enumerable: true + enumerable: true, + get: ()=>_z.default }); _z = _interopRequireDefault(_z); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.amd.js index 7e068fce153..2698337a19f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "X", { - get: ()=>_z.default, - enumerable: true + enumerable: true, + get: ()=>_z.default }); _z = _interopRequireDefault(_exportStar(_z, exports)); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.cjs index 08205d4bc1e..755ce06d4bd 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "X", { - get: ()=>_z.default, - enumerable: true + enumerable: true, + get: ()=>_z.default }); const _z = _interopRequireDefault(_exportStar(require("./Z"), exports)); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.umd.js index b15986f015d..d81e706a719 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case2/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "X", { - get: ()=>_z.default, - enumerable: true + enumerable: true, + get: ()=>_z.default }); _z = _interopRequireDefault(_exportStar(_z, exports)); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.amd.js index 4748c984992..5ae48d67f4c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.amd.js @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.cjs index 1b7179c4d82..08a61023d5e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.umd.js index a482a33ea5c..b269ce5c2a5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-2548/case3/output.umd.js @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 df7057a4322..e964f35dde9 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 412c46c8f9a..3fd13776d6d 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 4e95419a12f..ba70520c8be 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 a3c9b1bdfe4..3773eba4bb1 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 db3959523b0..93eb482b92b 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 1500e33875c..fbe1104ba8d 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.amd.js index 1ecd5cb13d3..4d9aeb0d9d2 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>bar, - enumerable: true + enumerable: true, + get: ()=>bar }); _foo = _interopRequireDefault(_foo); const bar = { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.cjs index 5ed391b623d..b6199177d27 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "bar", { - get: ()=>bar, - enumerable: true + enumerable: true, + get: ()=>bar }); const _foo = _interopRequireDefault(require("foo")); const bar = { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.umd.js index 885de8cccdf..db7669432df 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-332/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "bar", { - get: ()=>bar, - enumerable: true + enumerable: true, + get: ()=>bar }); _foo = _interopRequireDefault(_foo); const bar = { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.amd.js index 6e929ec1729..14689b89a17 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "a", { - get: ()=>a, - enumerable: true + enumerable: true, + get: ()=>a }); let a = 1; a = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.cjs index 388d2ef513c..db035f736a9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "a", { - get: ()=>a, - enumerable: true + enumerable: true, + get: ()=>a }); let a = 1; a = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.umd.js index ff06a86ba04..4b099224bff 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3439/1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "a", { - get: ()=>a, - enumerable: true + enumerable: true, + get: ()=>a }); let a = 1; a = 2; 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 a269bbd9ca0..4a180332342 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 a53d53968d3..d764a01863a 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 60976353c4a..972d68579a6 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 7b91e484d89..5af61d127ce 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 7af9e48af2e..852ad38a1bf 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 9b1486f17e0..13d07a5437e 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 0f930be8e18..3eaa4aebb7d 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 76cbeaca209..9f954238c9a 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 25cb1154101..a7c9c55b957 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 0664fbdeafb..789a5b7df81 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 dfbf71eca60..7e74309d45a 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 6db0db713ee..7e78f4b904a 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.amd.js index 8a98d03f69a..a48115fc3ec 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.cjs index ac7064341fc..04f26e39196 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.umd.js index de3fcbe3ab2..557b2390424 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-369/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 3de97e2b8b3..8bff5f38269 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 @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 f7e7d3f962f..2657ad3a08d 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 c04dcc642be..28cece8a350 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 @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.amd.js index 5d26ac65dce..565aa38fbbc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); let foo = 1; foo = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.cjs index f4d952e8792..854153a4f14 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); let foo = 1; foo = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.umd.js index 4bb02f0bbc7..579f9919cf5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-3898/1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); let foo = 1; foo = 2; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.amd.js index c4b17f756a5..42be014c858 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.amd.js @@ -9,8 +9,8 @@ define([ value: true }); Object.defineProperty(exports, "BIZ", { - get: ()=>BIZ, - enumerable: true + enumerable: true, + get: ()=>BIZ }); _exportStar(_file1, exports); _exportStar(_file2, exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.cjs index 2fc54819e7e..0171e3ec3b4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "BIZ", { - get: ()=>BIZ, - enumerable: true + enumerable: true, + get: ()=>BIZ }); _exportStar(require("./File1"), exports); _exportStar(require("./File2"), exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.umd.js index a8ff55ea7e2..7daeeb142bf 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4064/output.umd.js @@ -12,8 +12,8 @@ value: true }); Object.defineProperty(exports, "BIZ", { - get: ()=>BIZ, - enumerable: true + enumerable: true, + get: ()=>BIZ }); _exportStar(_file1, exports); _exportStar(_file2, exports); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.amd.js index 95000c3397d..16e85090376 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = { foo: "bar" diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.cjs index ff4ae5c9d6d..f9c294ec131 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = { foo: "bar" diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.umd.js index ceb0ca397df..24ccc4b62cb 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4313/1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = { foo: "bar" 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 6772712699b..0a1f8fb2679 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 @@ -12,8 +12,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 d632bc1ba51..9a3acea91ec 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 7c5a040b11e..ea301c2e65a 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 @@ -15,8 +15,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.amd.js index da2629f4b25..0319116ab74 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.amd.js @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.cjs index 38ee95d8afb..7991307e216 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.umd.js index f9f654a1f8c..675c53b8a28 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4534/1/output.umd.js @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.amd.js index 1c0e55261cb..4327788fc09 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.amd.js @@ -5,8 +5,8 @@ define([ ], function(require, exports, _path) { "use strict"; Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const foo = function() { function e(t) {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.cjs index b4bdd22192f..ab4a771057d 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.cjs @@ -1,7 +1,7 @@ "use strict"; Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const _path = require("path"); const foo = function() { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.umd.js index 61439aef1de..ce70887ec4a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/1/output.umd.js @@ -8,8 +8,8 @@ })(this, function(exports, _path) { "use strict"; Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const foo = function() { function e(t) {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.amd.js index e4bb806647d..11ec403f6da 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.amd.js @@ -5,8 +5,8 @@ define([ ], function(require, exports, _path) { "use strict"; Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const foo = function() { var e = 1; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.cjs index a5fa1a5ccb8..72f766f6492 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.cjs @@ -1,7 +1,7 @@ "use strict"; Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const _path = require("path"); const foo = function() { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.umd.js index 449f81c2402..0199191df55 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-456/2/output.umd.js @@ -8,8 +8,8 @@ })(this, function(exports, _path) { "use strict"; Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const foo = function() { var e = 1; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.amd.js index 19ec9ab586f..d0e9b9a627c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const Base = getBase(""); class Foo extends Base { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.cjs index da2dd29c4ff..641deb5e6d4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const Base = getBase(""); class Foo extends Base { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.umd.js index 388897cc0a6..1f79d1f7ea7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4567/1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>Foo, - enumerable: true + enumerable: true, + get: ()=>Foo }); const Base = getBase(""); class Foo extends Base { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.amd.js index 8ff0d68b708..85d2edd714f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "whatever", { - get: ()=>whatever, - enumerable: true + enumerable: true, + get: ()=>whatever }); _exportStar(_anotherModule, exports); function whatever(notExportName) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.cjs index 034b8ebae63..9ad21e993c9 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "whatever", { - get: ()=>whatever, - enumerable: true + enumerable: true, + get: ()=>whatever }); _exportStar(require("another-module"), exports); function whatever(notExportName) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.umd.js index 81a9b8e76d7..bf96cafcb08 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4700/1/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "whatever", { - get: ()=>whatever, - enumerable: true + enumerable: true, + get: ()=>whatever }); _exportStar(_anotherModule, exports); function whatever(notExportName) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.amd.js index 1241b0c9ab8..9d5be6ef2c6 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "createP", { - get: ()=>_st.createP, - enumerable: true + enumerable: true, + get: ()=>_st.createP }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.cjs index 91d32605384..e600de8e83f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "createP", { - get: ()=>_st.createP, - enumerable: true + enumerable: true, + get: ()=>_st.createP }); const _st = require("./St"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.umd.js index 1b129e51abb..98dd74ef8b8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4799/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "createP", { - get: ()=>_st.createP, - enumerable: true + enumerable: true, + get: ()=>_st.createP }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.amd.js index a585eb8a232..9eb558358d5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.cjs index abc37423411..b7edfa01840 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.umd.js index 64b5978b80a..6c107fb98cf 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4866/1/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.amd.js index cad85151e8e..8561cff26c0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.cjs index 8e1f6bac13d..4613a78d631 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.umd.js index c38cb521c5d..e9d206749d7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4981/1/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.amd.js index 631dd25f36e..d96c5c168f8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>MyClass, - enumerable: true + enumerable: true, + get: ()=>MyClass }); const VALUE = "hello"; class MyClass { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.cjs index 34d894b67bb..6084a66ea34 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>MyClass, - enumerable: true + enumerable: true, + get: ()=>MyClass }); const VALUE = "hello"; class MyClass { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.umd.js index 4e005bfdf51..2ace45df266 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-4984/1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>MyClass, - enumerable: true + enumerable: true, + get: ()=>MyClass }); const VALUE = "hello"; class MyClass { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts index fae0a12c9c1..c7db2723255 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.amd.ts @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.cts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.cts index 20cbfbd54ea..e98b67eac2e 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.cts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.cts @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts index 8e12dee5364..4dd95f6cb4b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/1/output.umd.ts @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.amd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.amd.ts index d5b7e620389..4458f8cb476 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.amd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.amd.ts @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "flakySuite", { - get: ()=>flakySuite, - enumerable: true + enumerable: true, + get: ()=>flakySuite }); _testUtils = _interopRequireWildcard(_testUtils); var flakySuite = _testUtils.flakySuite; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.cts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.cts index c5ef5891f66..5b4acf09e43 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.cts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.cts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "flakySuite", { - get: ()=>flakySuite, - enumerable: true + enumerable: true, + get: ()=>flakySuite }); const _testUtils = _interopRequireWildcard(require("vs/base/test/common/testUtils")); var flakySuite = _testUtils.flakySuite; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.umd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.umd.ts index a4905cbdf14..066e45500f2 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.umd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5042/3/output.umd.ts @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "flakySuite", { - get: ()=>flakySuite, - enumerable: true + enumerable: true, + get: ()=>flakySuite }); _testUtils = _interopRequireWildcard(_testUtils); var flakySuite = _testUtils.flakySuite; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.amd.js index 47ab4b7c4db..0f47f5f7a0a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.amd.js @@ -11,8 +11,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.cjs index cfde32e2f55..83533329e4f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.umd.js index 1cceb2bbcf7..55cac8e3206 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-5054/1/output.umd.js @@ -14,8 +14,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 d95bc54a64f..b6492978221 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 a662fd48e7a..e1659ff95ea 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 fc95c4aef70..30e99412ea5 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.amd.js index a4d8182d9a1..18735b77738 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "myGenerator", { - get: ()=>myGenerator, - enumerable: true + enumerable: true, + get: ()=>myGenerator }); function* myGenerator() { yield* [ diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.cjs index 1911a575cb8..6262383da56 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "myGenerator", { - get: ()=>myGenerator, - enumerable: true + enumerable: true, + get: ()=>myGenerator }); function* myGenerator() { yield* [ diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.umd.js index 0235f1876a4..c9c26c7e61c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-831/2/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "myGenerator", { - get: ()=>myGenerator, - enumerable: true + enumerable: true, + get: ()=>myGenerator }); function* myGenerator() { yield* [ diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.amd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.amd.ts index 4c72528816a..3575d21490c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.amd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.amd.ts @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "setup", { - get: ()=>setup, - enumerable: true + enumerable: true, + get: ()=>setup }); function setup(url: string, obj: any) { const _queryString = (0, _url.queryString)(obj); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.cts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.cts index 7313e688a70..195c508d74c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.cts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.cts @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "setup", { - get: ()=>setup, - enumerable: true + enumerable: true, + get: ()=>setup }); const _url = require("./url"); function setup(url: string, obj: any) { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.umd.ts b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.umd.ts index 69ec5ffa84f..fcdf4faa964 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.umd.ts +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-895/output.umd.ts @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "setup", { - get: ()=>setup, - enumerable: true + enumerable: true, + get: ()=>setup }); function setup(url: string, obj: any) { const _queryString = (0, _url.queryString)(obj); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.amd.js index 3bd24c3aa7a..5c56f7dd268 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.amd.js @@ -9,8 +9,8 @@ define([ value: true }); Object.defineProperty(exports1, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); _rootJs = _interopRequireDefault(_rootJs); _stubFalseJs = _interopRequireDefault(_stubFalseJs); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.cjs index 9fbab64f43e..2144461052a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); const _rootJs = _interopRequireDefault(require("./_root.js")); const _stubFalseJs = _interopRequireDefault(require("./stubFalse.js")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.umd.js index daa3486ff2c..6b60624527a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/issue-962/output.umd.js @@ -12,8 +12,8 @@ value: true }); Object.defineProperty(exports1, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); _rootJs = _interopRequireDefault(_rootJs); _stubFalseJs = _interopRequireDefault(_stubFalseJs); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.amd.js index a778959dcc7..05615b13fa8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); _foo = _interopRequireDefault(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.cjs index 3596ca2c8a6..1f119e097f0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo().default, - enumerable: true + enumerable: true, + get: ()=>_foo().default }); function _foo() { const data = _interopRequireDefault(require("foo")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.umd.js index 7b8953ea116..c2c59b00ea4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-default/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); _foo = _interopRequireDefault(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.amd.js index 69757653728..98b94ef9315 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "named", { - get: ()=>_foo.named, - enumerable: true + enumerable: true, + get: ()=>_foo.named }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.cjs index 49026210acc..b41726f7ad8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named", { - get: ()=>_foo().named, - enumerable: true + enumerable: true, + get: ()=>_foo().named }); function _foo() { const data = require("foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.umd.js index f0a4d767a4c..40ed3e59318 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-named/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "named", { - get: ()=>_foo.named, - enumerable: true + enumerable: true, + get: ()=>_foo.named }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.amd.js index a3e6cd9e387..96c46d52dc5 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "namespace", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); _foo = _interopRequireWildcard(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.cjs index a4d7e5ab5fe..81e62696249 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "namespace", { - get: ()=>_foo(), - enumerable: true + enumerable: true, + get: ()=>_foo() }); function _foo() { const data = _interopRequireWildcard(require("foo")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.umd.js index 79e04f72a9a..15310bef79c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/dep-reexport-namespace/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "namespace", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); _foo = _interopRequireWildcard(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.amd.js index ef785154283..b95af8af6fc 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "named1", { - get: ()=>_external.named1, - enumerable: true + enumerable: true, + get: ()=>_external.named1 }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.cjs index 39c09900fce..6aa96137d48 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named1", { - get: ()=>_external.named1, - enumerable: true + enumerable: true, + get: ()=>_external.named1 }); function _external() { const data = require("external"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.umd.js index dc4e54f1a29..907c846cdb7 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/export-named/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "named1", { - get: ()=>_external.named1, - enumerable: true + enumerable: true, + get: ()=>_external.named1 }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.amd.js index 0d3b1177aa8..7bc9430c4ee 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); _foo = _interopRequireDefault(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.cjs index 85020b7c440..8b6000d3739 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); const _foo = _interopRequireDefault(require("./foo")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.umd.js index 2154e3a2f69..6d28ed841ba 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-default/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_foo.default, - enumerable: true + enumerable: true, + get: ()=>_foo.default }); _foo = _interopRequireDefault(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.amd.js index 5fdfac250bf..feaa6f9eea6 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.amd.js @@ -8,7 +8,7 @@ define([ value: true }); Object.defineProperty(exports, "named", { - get: ()=>_foo.named, - enumerable: true + enumerable: true, + get: ()=>_foo.named }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.cjs index 0c822fbdcc7..ba9e881f886 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "named", { - get: ()=>_foo.named, - enumerable: true + enumerable: true, + get: ()=>_foo.named }); const _foo = require("./foo"); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.umd.js index 033220acb0a..d3d656ba1a4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-named/output.umd.js @@ -11,7 +11,7 @@ value: true }); Object.defineProperty(exports, "named", { - get: ()=>_foo.named, - enumerable: true + enumerable: true, + get: ()=>_foo.named }); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.amd.js index 1b149e27b79..5b4dec06cf8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "namespace", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); _foo = _interopRequireWildcard(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.cjs index ca86f6aac77..7558fbf510b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "namespace", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); const _foo = _interopRequireWildcard(require("./foo")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.umd.js index fe7b322457f..be39283d8ee 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/local-reexport-namespace/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "namespace", { - get: ()=>_foo, - enumerable: true + enumerable: true, + get: ()=>_foo }); _foo = _interopRequireWildcard(_foo); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.amd.js index 91c6a12662b..3f530a904ef 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.amd.js @@ -8,8 +8,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_white.default, - enumerable: true + enumerable: true, + get: ()=>_white.default }); _white = _interopRequireDefault(_white); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.cjs index d82a9be8907..024706fa5bd 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_white().default, - enumerable: true + enumerable: true, + get: ()=>_white().default }); function _white() { const data = _interopRequireDefault(require("white")); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.umd.js index b18f56e25c9..829726b5044 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-default/output.umd.js @@ -11,8 +11,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_white.default, - enumerable: true + enumerable: true, + get: ()=>_white.default }); _white = _interopRequireDefault(_white); }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.amd.js index 2bd7c0ef5fd..2b923216fb4 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.amd.js @@ -10,8 +10,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.cjs index bc8259398bf..5ef1ea8ee17 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.umd.js index 57ad3156d56..df1f4d4035c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-named/output.umd.js @@ -13,8 +13,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.amd.js index f7105c80c7d..fe048b89d49 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.amd.js @@ -10,8 +10,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.cjs index a24c9b52562..75324b0239c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.umd.js index 044ec21126c..56d158946c1 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/lazy/whitelist/reexport-namespace/output.umd.js @@ -13,8 +13,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.amd.js index 61628ece6e3..61032cb236f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.cjs index d3b65a04821..31e4ae824b0 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.umd.js index db4b9915e7c..15c6ae5d7bd 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/many-exports-chunked/1/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 7081d8e97bd..c68cf374716 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 @@ -9,8 +9,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 7bded0ce40a..86dbe6fde45 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 189d37e7c26..d7607c8603e 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 @@ -12,8 +12,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.amd.js index 3fce675926a..021025165ee 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.cjs index 61e48f9b9d0..7b16da571db 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.umd.js index 00294465a7a..26f09b9cf73 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/pull-4688/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.amd.js index 3b9e59c0805..a4dd84cbf1b 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function* _default() { var x = yield 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.cjs index 72bc7af9fad..2f18e285a1a 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.cjs @@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function* _default() { var x = yield 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.umd.js index 9c5d60242b6..ab7f9bace05 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/regression/6733/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); function* _default() { var x = yield 5; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.amd.js index 10ec510642a..09065cc2d93 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.cjs index affcffa4589..630a76faf51 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.umd.js index 5f2c76f74b3..3ff77437b11 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-1/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>_default, - enumerable: true + enumerable: true, + get: ()=>_default }); var _default = foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.amd.js index e1f186c6312..6057e117470 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.cjs index ce965f7bd96..171aadd5c74 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.umd.js index 9228b25dc09..b29e6d1ad6c 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-2/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "default", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); var foo; }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.amd.js index 074575fc748..b0bc04d2986 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.amd.js @@ -7,8 +7,8 @@ define([ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} }); diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.cjs index 393923fbcb7..33b8a7f6bc8 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.cjs @@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.umd.js index 023e4b564bd..110b1767632 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-4/output.umd.js @@ -10,8 +10,8 @@ value: true }); Object.defineProperty(exports, "foo", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); function foo() {} }); 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 a3ed87a6857..93ea1ab7dee 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 6fafe6daa37..565afdac1c3 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 fda7ae33728..af40c55d2b9 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 3c417b1ca92..5d8f946276e 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 a49a50852c8..6276e9836f0 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 01d5a2faab3..8eaeecd7ed0 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 f3767b74866..d4ef06eaab7 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 0b0f0e5dafa..49a627f99fd 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 363d69a3985..b9cd4e52ffe 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.amd.js index 3a2dfb29832..4d6c997f774 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.cjs index 136bd277b7f..21f0c31c809 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.umd.js index 9f7e3a04c2f..ad38cb8abc3 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-deep/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 475e23f76b3..acbb19ef091 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 1ad8f173e68..411f37a728f 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 4cd5aa9f138..2b8b0423c15 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 57ac4041ba9..2e187d53f3b 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 6e73ab656de..34f1bfd3729 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 da32c04c685..5b46fa5b2ea 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.amd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.amd.js index 7a67a2ee9c2..c993228734f 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.amd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.amd.js @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.cjs b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.cjs index 74bcd1a2617..1cfb26b7b97 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.cjs +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.cjs @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.umd.js b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.umd.js index 611e3fff1e7..f6686268d24 100644 --- a/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.umd.js +++ b/crates/swc_ecma_transforms_module/tests/fixture/common/strict/export-const/destructuring-object/output.umd.js @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 8623d6de532..c1ad873ca6e 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 28bc35a2f4e..35c2c5387fc 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 470e65e7eb0..b1d6b04a543 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 640d4a8b0b0..027066b79a4 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 @@ -8,8 +8,8 @@ define([ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 c4ce0fba211..844e4a20323 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 @@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { 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 033b43e83c4..5c11932fe3e 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 @@ -11,8 +11,8 @@ }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { - get: all[name], - enumerable: true + enumerable: true, + get: all[name] }); } _export(exports, { diff --git a/crates/swc_ecma_transforms_react/src/refresh/tests.rs b/crates/swc_ecma_transforms_react/src/refresh/tests.rs index 625ed7c49bd..d37025276bd 100644 --- a/crates/swc_ecma_transforms_react/src/refresh/tests.rs +++ b/crates/swc_ecma_transforms_react/src/refresh/tests.rs @@ -1150,10 +1150,10 @@ test!( value: true }); Object.defineProperty(exports, "default", { + enumerable: true, get: function() { return App; - }, - enumerable: true + } }); var _hooks = require("./hooks"); var _foo = _interopRequireDefault(require("./foo")); diff --git a/node-swc/__tests__/transform/issue_4606_test.mjs b/node-swc/__tests__/transform/issue_4606_test.mjs index 1e417a70da9..fd650c9e536 100644 --- a/node-swc/__tests__/transform/issue_4606_test.mjs +++ b/node-swc/__tests__/transform/issue_4606_test.mjs @@ -101,8 +101,8 @@ Object.defineProperty(exports, \\"__esModule\\", { value: true }); Object.defineProperty(exports, \\"default\\", { - get: ()=>foo, - enumerable: true + enumerable: true, + get: ()=>foo }); const _jsxRuntime = require(\\"react/jsx-runtime\\"); function foo() {