From dbda14726f949e81bdd661e7395832ecabeb2285 Mon Sep 17 00:00:00 2001 From: Lukas Taegert-Atkinson Date: Mon, 29 Aug 2022 07:37:43 +0200 Subject: [PATCH] Add esModule: 'if-default-prop' and make it the default value --- docs/999-big-list-of-options.md | 27 +++++++------------ src/Chunk.ts | 23 +++++++++++++--- src/finalisers/amd.ts | 3 ++- src/finalisers/cjs.ts | 3 ++- src/finalisers/iife.ts | 3 ++- src/finalisers/index.ts | 1 + src/finalisers/umd.ts | 3 ++- src/rollup/types.d.ts | 4 +-- src/utils/options/normalizeOutputOptions.ts | 2 +- .../_expected/amd/some/where/main.js | 2 -- .../_expected/cjs/some/where/main.js | 2 -- .../_expected/amd/some/where/main.js | 2 -- .../_expected/cjs/some/where/main.js | 2 -- .../samples/amd-id-auto/_expected/amd/main.js | 2 -- .../samples/amd-id-auto/_expected/cjs/main.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../chunking-reexport/_expected/amd/main1.js | 2 -- .../chunking-reexport/_expected/amd/main2.js | 2 -- .../chunking-reexport/_expected/cjs/main1.js | 2 -- .../chunking-reexport/_expected/cjs/main2.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/amd/main3.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/cjs/main3.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/other.js | 2 -- .../_expected/cjs/other.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/a.js | 2 -- .../_expected/amd/b.js | 2 -- .../_expected/amd/one.js | 2 -- .../_expected/cjs/a.js | 2 -- .../_expected/cjs/b.js | 2 -- .../_expected/cjs/one.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/entry.js | 2 -- .../_expected/cjs/entry.js | 2 -- .../_expected/amd/generated-buildStart.js | 2 -- .../_expected/cjs/generated-buildStart.js | 2 -- .../_expected/amd/components/index.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/components/index.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/dep1.js | 2 -- .../_expected/amd/dep2.js | 2 -- .../_expected/cjs/dep1.js | 2 -- .../_expected/cjs/dep2.js | 2 -- .../_expected/amd/named.js | 2 -- .../_expected/cjs/named.js | 2 -- .../_expected/amd/_virtual/other.js | 2 -- .../_expected/cjs/_virtual/other.js | 2 -- .../_expected/amd/dynamic-included.js | 2 -- .../_expected/cjs/dynamic-included.js | 2 -- .../_expected/amd/m1.js | 2 -- .../_expected/cjs/m1.js | 2 -- .../_expected/amd/dep.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/dep.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main-amd-2ef83a76.js | 12 --------- .../_expected/cjs/main-cjs-82d6d41f.js | 15 ----------- .../_expected/amd/named.js | 2 -- .../_expected/cjs/named.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/amd/module-a/v1/index.js | 2 -- .../_expected/amd/module-b/v1/index.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/cjs/module-a/v1/index.js | 2 -- .../_expected/cjs/module-b/v1/index.js | 2 -- .../amd/inner/more_inner/something.js | 2 -- .../_expected/amd/main.js | 2 -- .../cjs/inner/more_inner/something.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/dep.js | 2 -- .../_expected/cjs/dep.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/_virtual/_virtualModule.js | 2 -- .../_expected/cjs/_virtual/_virtualModule.js | 2 -- .../_expected/amd/deps/dep1.js | 2 -- .../_expected/amd/deps/dep2.js | 2 -- .../_expected/amd/deps/dep3.js | 2 -- .../_expected/amd/lib/lib1.js | 2 -- .../_expected/amd/lib/lib2.js | 2 -- .../_expected/cjs/deps/dep1.js | 2 -- .../_expected/cjs/deps/dep2.js | 2 -- .../_expected/cjs/deps/dep3.js | 2 -- .../_expected/cjs/lib/lib1.js | 2 -- .../_expected/cjs/lib/lib2.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/entry.js | 2 -- .../_expected/cjs/entry.js | 2 -- .../dynamic-import/_expected/amd/main.js | 2 -- .../dynamic-import/_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/generated-buildStart.js | 2 -- .../_expected/cjs/generated-buildStart.js | 2 -- .../_expected/amd/custom/build-start-chunk.js | 2 -- .../_expected/cjs/custom/build-start-chunk.js | 2 -- .../_expected/amd/generated-emitted2.js | 2 -- .../_expected/cjs/generated-emitted2.js | 2 -- .../_expected/amd/generated-emitted2.js | 2 -- .../_expected/cjs/generated-emitted2.js | 2 -- .../_expected/amd/explicit-name1.js | 2 -- .../_expected/amd/explicit-name2.js | 2 -- .../_expected/amd/mainChunk.js | 2 -- .../_expected/amd/mainChunkFacade.js | 2 -- .../_expected/cjs/explicit-name1.js | 2 -- .../_expected/cjs/explicit-name2.js | 2 -- .../_expected/cjs/mainChunk.js | 2 -- .../_expected/cjs/mainChunkFacade.js | 2 -- .../reference-files/_expected/amd/main.js | 2 -- .../reference-files/_expected/cjs/main.js | 2 -- .../set-asset-source/_expected/amd/main.js | 2 -- .../set-asset-source/_expected/cjs/main.js | 2 -- .../_expected/amd/main1-alias.js | 2 -- .../entry-aliases/_expected/amd/main1.js | 2 -- .../_expected/cjs/main1-alias.js | 2 -- .../entry-aliases/_expected/cjs/main1.js | 2 -- .../_expected/amd/m1.js | 2 -- .../_expected/cjs/m1.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main-default.js | 2 -- .../_expected/amd/main-named.js | 2 -- .../_expected/amd/main-namespace.js | 2 -- .../_expected/cjs/main-default.js | 2 -- .../_expected/cjs/main-named.js | 2 -- .../_expected/cjs/main-namespace.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../single-dependency/_expected/amd/main.js | 2 -- .../single-dependency/_expected/cjs/main.js | 2 -- .../import-meta-url/_expected/amd/main.js | 2 -- .../import-meta-url/_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../single-dynamic/_expected/amd/main.js | 2 -- .../single-dynamic/_expected/cjs/main.js | 2 -- .../_expected/amd/components/index.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/components/index.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/1.js | 2 -- .../_expected/amd/2.js | 2 -- .../_expected/amd/3.js | 2 -- .../_expected/amd/4.js | 2 -- .../_expected/amd/5.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/1.js | 2 -- .../_expected/cjs/2.js | 2 -- .../_expected/cjs/3.js | 2 -- .../_expected/cjs/4.js | 2 -- .../_expected/cjs/5.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/dep.js | 2 +- .../_expected/cjs/dep.js | 2 +- .../_expected/amd/dep1.js | 2 -- .../_expected/amd/dep2.js | 2 -- .../_expected/cjs/dep1.js | 2 -- .../_expected/cjs/dep2.js | 2 -- .../_expected/amd/other.js | 2 -- .../_expected/cjs/other.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/main2.js | 2 -- .../_expected/amd/index.js | 2 -- .../_expected/cjs/index.js | 2 -- .../allow-extension/_expected/amd/main.js | 2 -- .../allow-extension/_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../exports-only/_expected/amd/main.js | 2 -- .../exports-only/_expected/cjs/main.js | 2 -- .../false/_expected/amd/main.js | 2 -- .../false/_expected/cjs/main.js | 2 -- .../amd/generated-allow-extension.js | 2 -- .../_expected/amd/generated-false.js | 2 -- .../_expected/amd/generated-not-specified.js | 2 -- .../_expected/amd/generated-strict.js | 2 -- .../cjs/generated-allow-extension.js | 2 -- .../_expected/cjs/generated-false.js | 2 -- .../_expected/cjs/generated-not-specified.js | 2 -- .../_expected/cjs/generated-strict.js | 2 -- .../strict/_expected/amd/main.js | 2 -- .../strict/_expected/cjs/main.js | 2 -- .../_expected/amd/named.js | 2 -- .../_expected/cjs/named.js | 2 -- .../_expected/amd/_virtual/other.js | 2 -- .../_expected/cjs/_virtual/other.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/dynamic-included.js | 2 -- .../_expected/cjs/dynamic-included.js | 2 -- .../_expected/amd/m1.js | 2 -- .../_expected/cjs/m1.js | 2 -- .../_expected/amd/dep.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main2.js | 2 -- .../_expected/cjs/dep.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main2.js | 2 -- ...n-amd-51321eb1.js => main-amd-c6b04a3d.js} | 2 -- ...n-cjs-92cd000c.js => main-cjs-7c9c9af9.js} | 2 -- .../_expected/amd/named.js | 2 -- .../_expected/cjs/named.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/amd/module-a/v1/index.js | 2 -- .../_expected/amd/module-b/v1/index.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/cjs/module-a/v1/index.js | 2 -- .../_expected/cjs/module-b/v1/index.js | 2 -- .../amd/inner/more_inner/something.js | 2 -- .../_expected/amd/main.js | 2 -- .../cjs/inner/more_inner/something.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/dep.js | 2 -- .../_expected/cjs/dep.js | 2 -- .../_expected/amd/_virtual/index.js | 2 -- .../_expected/cjs/_virtual/index.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- ...40.mjs => _virtualModule-amd-03552e5c.mjs} | 2 -- ..._virtualWithAssetExt.str-amd-724c602d.mjs} | 2 -- ...e.mjs => _virtualWithExt-amd-e9dc1b7e.mjs} | 2 -- ...amd-eb6187f3.mjs => main-amd-7efb1bed.mjs} | 2 +- ...9a.mjs => _virtualModule-cjs-bbe1ad5e.mjs} | 2 -- ..._virtualWithAssetExt.str-cjs-0e561611.mjs} | 2 -- ...d.mjs => _virtualWithExt-cjs-b148ca33.mjs} | 2 -- ...cjs-d0c7e6cf.mjs => main-cjs-f7b1940b.mjs} | 6 ++--- .../_expected/amd/_virtual/_virtualModule.js | 2 -- .../_expected/cjs/_virtual/_virtualModule.js | 2 -- .../_expected/amd/deps/dep1.js | 2 -- .../_expected/amd/deps/dep2.js | 2 -- .../_expected/amd/deps/dep3.js | 2 -- .../_expected/amd/lib/lib1.js | 2 -- .../_expected/amd/lib/lib2.js | 2 -- .../_expected/cjs/deps/dep1.js | 2 -- .../_expected/cjs/deps/dep2.js | 2 -- .../_expected/cjs/deps/dep3.js | 2 -- .../_expected/cjs/lib/lib1.js | 2 -- .../_expected/cjs/lib/lib2.js | 2 -- .../reexport-from-entry/_expected/amd/main.js | 2 -- .../_expected/amd/otherEntry.js | 2 -- .../reexport-from-entry/_expected/cjs/main.js | 2 -- .../_expected/cjs/otherEntry.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/a.js | 2 -- .../_expected/amd/b.js | 2 -- .../_expected/amd/one.js | 2 -- .../_expected/cjs/a.js | 2 -- .../_expected/cjs/b.js | 2 -- .../_expected/cjs/one.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../_expected/amd/main1.js | 2 -- .../_expected/amd/main3.js | 2 -- .../_expected/cjs/main1.js | 2 -- .../_expected/cjs/main3.js | 2 -- .../default-reexport/_expected/amd/main.js | 2 -- .../default-reexport/_expected/cjs/main.js | 2 -- .../entry/_expected/amd/main.js | 2 -- .../entry/_expected/cjs/main.js | 2 -- .../global-conflict/_expected/amd/main.js | 2 -- .../global-conflict/_expected/cjs/main.js | 2 -- .../_expected/amd/main.js | 2 -- .../_expected/cjs/main.js | 2 -- .../namespace/_expected/amd/main.js | 2 -- .../namespace/_expected/cjs/main.js | 2 -- test/cli/samples/context/_expected.js | 2 -- .../samples/format-aliases/_expected/amd.js | 2 -- .../samples/format-aliases/_expected/cjs.js | 2 -- .../format-aliases/_expected/commonjs.js | 2 -- .../samples/format-aliases/_expected/iife.js | 2 -- .../samples/format-aliases/_expected/umd.js | 2 -- .../plugin/advanced-esm/_expected/cjs.js | 4 +-- .../samples/plugin/advanced/_expected/cjs.js | 4 --- test/cli/samples/plugin/basic/_expected.js | 2 -- .../plugin/named-export/_expected/cjs.js | 2 +- .../stdin/config-file/_expected/cjs.js | 2 -- .../no-stdin-config-file/_expected/cjs.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../assignment-to-exports/_expected/amd.js | 2 -- .../assignment-to-exports/_expected/cjs.js | 2 -- .../assignment-to-exports/_expected/iife.js | 2 -- .../assignment-to-exports/_expected/umd.js | 2 -- .../compact-named-export/_expected/amd.js | 2 +- .../compact-named-export/_expected/cjs.js | 2 +- .../compact-named-export/_expected/iife.js | 2 +- .../compact-named-export/_expected/umd.js | 2 +- .../computed-properties/_expected/amd.js | 2 -- .../computed-properties/_expected/cjs.js | 2 -- .../computed-properties/_expected/iife.js | 2 -- .../computed-properties/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../dedupes-external-imports/_expected/amd.js | 2 -- .../dedupes-external-imports/_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../dedupes-external-imports/_expected/umd.js | 2 -- .../entry-named/_expected/amd.js | 2 +- .../entry-named/_expected/cjs.js | 2 +- .../entry-named/_expected/iife.js | 2 +- .../entry-named/_expected/umd.js | 2 +- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../export-all-before-named/_expected/amd.js | 2 -- .../export-all-before-named/_expected/cjs.js | 2 -- .../export-all-before-named/_expected/iife.js | 2 -- .../export-all-before-named/_expected/umd.js | 2 -- .../export-all-from-internal/_expected/amd.js | 2 -- .../export-all-from-internal/_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../export-all-from-internal/_expected/umd.js | 2 -- .../export-all-multiple/_expected/amd.js | 2 -- .../export-all-multiple/_expected/cjs.js | 2 -- .../export-all-multiple/_expected/iife.js | 2 -- .../export-all-multiple/_expected/umd.js | 2 -- .../export-default-import/_expected/amd.js | 2 -- .../export-default-import/_expected/cjs.js | 2 -- .../export-default-import/_expected/iife.js | 2 -- .../export-default-import/_expected/umd.js | 2 -- .../samples/export-globals/_expected/amd.js | 2 -- .../samples/export-globals/_expected/cjs.js | 2 -- .../samples/export-globals/_expected/iife.js | 2 -- .../samples/export-globals/_expected/umd.js | 2 -- .../export-live-bindings/_expected/amd.js | 2 -- .../export-live-bindings/_expected/cjs.js | 2 -- .../export-live-bindings/_expected/iife.js | 2 -- .../export-live-bindings/_expected/umd.js | 2 -- .../export-namespace-as/_expected/amd.js | 2 -- .../export-namespace-as/_expected/cjs.js | 2 -- .../export-namespace-as/_expected/iife.js | 2 -- .../export-namespace-as/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../samples/extend-exports/_expected/amd.js | 2 -- .../samples/extend-exports/_expected/cjs.js | 2 -- .../samples/extend-exports/_expected/iife.js | 2 -- .../samples/extend-exports/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../external-deshadowing/_expected/amd.js | 2 -- .../external-deshadowing/_expected/cjs.js | 2 -- .../external-deshadowing/_expected/iife.js | 2 -- .../external-deshadowing/_expected/umd.js | 2 -- .../external-export-tracing/_expected/amd.js | 2 -- .../external-export-tracing/_expected/cjs.js | 2 -- .../external-export-tracing/_expected/iife.js | 2 -- .../external-export-tracing/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- test/form/samples/freeze/_expected/amd.js | 2 -- test/form/samples/freeze/_expected/cjs.js | 2 -- test/form/samples/freeze/_expected/iife.js | 2 -- test/form/samples/freeze/_expected/umd.js | 2 -- .../function-mutation/_expected/amd.js | 2 -- .../function-mutation/_expected/cjs.js | 2 -- .../function-mutation/_expected/iife.js | 2 -- .../function-mutation/_expected/umd.js | 2 -- .../arrow-functions-false/_expected/amd.js | 2 +- .../arrow-functions-false/_expected/cjs.js | 2 +- .../arrow-functions-false/_expected/iife.js | 2 +- .../arrow-functions-false/_expected/umd.js | 2 +- .../arrow-functions-true/_expected/amd.js | 2 +- .../arrow-functions-true/_expected/cjs.js | 2 +- .../arrow-functions-true/_expected/iife.js | 2 +- .../arrow-functions-true/_expected/umd.js | 2 +- .../arrow-functions-false/_expected/amd.js | 2 -- .../arrow-functions-false/_expected/cjs.js | 2 -- .../arrow-functions-false/_expected/iife.js | 2 -- .../arrow-functions-false/_expected/umd.js | 2 -- .../arrow-functions-true/_expected/amd.js | 2 -- .../arrow-functions-true/_expected/cjs.js | 2 -- .../arrow-functions-true/_expected/iife.js | 2 -- .../arrow-functions-true/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- test/form/samples/mjs/_expected/amd.js | 2 -- test/form/samples/mjs/_expected/cjs.js | 2 -- test/form/samples/mjs/_expected/iife.js | 2 -- test/form/samples/mjs/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../samples/module-name-wat/_expected/amd.js | 2 -- .../samples/module-name-wat/_expected/cjs.js | 2 -- .../samples/module-name-wat/_expected/iife.js | 2 -- .../samples/module-name-wat/_expected/umd.js | 2 -- .../module-name-with-dashes/_expected/amd.js | 2 -- .../module-name-with-dashes/_expected/cjs.js | 2 -- .../module-name-with-dashes/_expected/iife.js | 2 -- .../module-name-with-dashes/_expected/umd.js | 2 -- .../samples/multiple-exports/_expected/amd.js | 2 -- .../samples/multiple-exports/_expected/cjs.js | 2 -- .../multiple-exports/_expected/iife.js | 2 -- .../samples/multiple-exports/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../namespace-reexport-name/_expected/amd.js | 2 -- .../namespace-reexport-name/_expected/cjs.js | 2 -- .../namespace-reexport-name/_expected/iife.js | 2 -- .../namespace-reexport-name/_expected/umd.js | 2 -- .../namespace-self-import/_expected/amd.js | 2 -- .../namespace-self-import/_expected/cjs.js | 2 -- .../namespace-self-import/_expected/iife.js | 2 -- .../namespace-self-import/_expected/umd.js | 2 -- .../entry-named/_expected/amd.js | 2 +- .../entry-named/_expected/cjs.js | 2 +- .../entry-named/_expected/iife.js | 2 +- .../entry-named/_expected/umd.js | 2 +- .../namespaced-named-exports/_expected/amd.js | 2 -- .../namespaced-named-exports/_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../namespaced-named-exports/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 +- .../_expected/cjs.js | 2 +- .../_expected/iife.js | 2 +- .../_expected/umd.js | 2 +- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../output-named-library/_expected/amd.js | 2 -- .../output-named-library/_expected/cjs.js | 2 -- .../output-named-library/_expected/iife.js | 2 -- .../output-named-library/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../pattern-assignments/_expected/amd.js | 2 -- .../pattern-assignments/_expected/cjs.js | 2 -- .../pattern-assignments/_expected/iife.js | 2 -- .../pattern-assignments/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../protect-cjs-globals/_expected/amd.js | 2 -- .../protect-cjs-globals/_expected/cjs.js | 2 -- .../protect-cjs-globals/_expected/iife.js | 2 -- .../protect-cjs-globals/_expected/umd.js | 2 -- .../re-export-aliasing/_expected/amd.js | 2 -- .../re-export-aliasing/_expected/cjs.js | 2 -- .../re-export-aliasing/_expected/iife.js | 2 -- .../re-export-aliasing/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../reexport-external-name/_expected/amd.js | 2 -- .../reexport-external-name/_expected/cjs.js | 2 -- .../reexport-external-name/_expected/iife.js | 2 -- .../reexport-external-name/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../side-effects-delete/_expected/amd.js | 2 -- .../side-effects-delete/_expected/cjs.js | 2 -- .../side-effects-delete/_expected/iife.js | 2 -- .../side-effects-delete/_expected/umd.js | 2 -- .../simplified-initializer/_expected/amd.js | 2 -- .../simplified-initializer/_expected/cjs.js | 2 -- .../simplified-initializer/_expected/iife.js | 2 -- .../simplified-initializer/_expected/umd.js | 2 -- .../umd-noconflict-extend/_expected/amd.js | 2 -- .../umd-noconflict-extend/_expected/cjs.js | 2 -- .../umd-noconflict-extend/_expected/iife.js | 2 -- .../umd-noconflict-extend/_expected/umd.js | 2 -- .../_expected/amd.js | 2 -- .../_expected/cjs.js | 2 -- .../_expected/iife.js | 2 -- .../_expected/umd.js | 2 -- .../samples/umd-noconflict/_expected/amd.js | 2 -- .../samples/umd-noconflict/_expected/cjs.js | 2 -- .../samples/umd-noconflict/_expected/iife.js | 2 -- .../samples/umd-noconflict/_expected/umd.js | 2 -- .../updating-assignments/_expected/amd.js | 2 -- .../updating-assignments/_expected/cjs.js | 2 -- .../updating-assignments/_expected/iife.js | 2 -- .../updating-assignments/_expected/umd.js | 2 -- .../samples/output-options-hook/_config.js | 2 +- test/misc/iife.js | 2 -- 637 files changed, 74 insertions(+), 1282 deletions(-) delete mode 100644 test/chunking-form/samples/deprecated/preserve-modules-filename-pattern/_expected/amd/main-amd-2ef83a76.js delete mode 100644 test/chunking-form/samples/deprecated/preserve-modules-filename-pattern/_expected/cjs/main-cjs-82d6d41f.js rename test/chunking-form/samples/preserve-modules-filename-pattern/_expected/amd/{main-amd-51321eb1.js => main-amd-c6b04a3d.js} (87%) rename test/chunking-form/samples/preserve-modules-filename-pattern/_expected/cjs/{main-cjs-92cd000c.js => main-cjs-7c9c9af9.js} (89%) rename test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/{_virtualModule-amd-4e388e40.mjs => _virtualModule-amd-03552e5c.mjs} (65%) rename test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/{_virtualWithAssetExt.str-amd-4deed186.mjs => _virtualWithAssetExt.str-amd-724c602d.mjs} (65%) rename test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/{_virtualWithExt-amd-41e5e75e.mjs => _virtualWithExt-amd-e9dc1b7e.mjs} (65%) rename test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/{main-amd-eb6187f3.mjs => main-amd-7efb1bed.mjs} (53%) rename test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/{_virtualModule-cjs-650c7f9a.mjs => _virtualModule-cjs-bbe1ad5e.mjs} (52%) rename test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/{_virtualWithAssetExt.str-cjs-63fd96f4.mjs => _virtualWithAssetExt.str-cjs-0e561611.mjs} (53%) rename test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/{_virtualWithExt-cjs-c612470d.mjs => _virtualWithExt-cjs-b148ca33.mjs} (53%) rename test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/{main-cjs-d0c7e6cf.mjs => main-cjs-f7b1940b.mjs} (56%) diff --git a/docs/999-big-list-of-options.md b/docs/999-big-list-of-options.md index 2ec436e677f..1cfd640156f 100755 --- a/docs/999-big-list-of-options.md +++ b/docs/999-big-list-of-options.md @@ -591,15 +591,11 @@ const foo = null; export { foo as void }; // cjs output with reservedNamesAsProps: false -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = null; exports['void'] = foo; // cjs output with reservedNamesAsProps: true -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = null; exports.void = foo; @@ -614,25 +610,18 @@ Whether to allow the use of `Symbol` in auto-generated code snippets. Currently, export const foo = 42; // cjs output with symbols: false -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 42; exports.foo = foo; // cjs output with symbols: true -Object.defineProperties(exports, { - __esModule: { value: true }, - [Symbol.toStringTag]: { value: 'Module' } -}); +Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const foo = 42; exports.foo = foo; ``` -Note: The `__esModule` flag in the example can be prevented via the [`output.esModule`](https://rollupjs.org/guide/en/#outputesmodule) option. - #### output.hoistTransitiveImports Type: `boolean`
CLI: `--hoistTransitiveImports`/`--no-hoistTransitiveImports`
Default: `true` @@ -1412,9 +1401,15 @@ export default { #### output.esModule -Type: `boolean`
CLI: `--esModule`/`--no-esModule`
Default: `true` +Type: `boolean | "if-default-prop"`
CLI: `--esModule`/`--no-esModule`
Default: `"if-default-prop"` + +Whether to add a `__esModule: true` property when generating exports for non-ES formats. This property signifies that the exported value is the namespace of an ES module and that the default export of this module corresponds to the `.default` property of the exported object. -Whether to add a `__esModule: true` property when generating exports for non-ES formats. This property signifies that the exported value is the namespace of an ES module and that the default export of this module corresponds to the `.default` property of the exported object. By default, Rollup adds this property when using [named exports mode](guide/en/#outputexports) for a chunk. See also [`output.interop`](https://rollupjs.org/guide/en/#outputinterop). +- `true` will always add the property when using [named exports mode](guide/en/#outputexports), which is similar to what other tools do. +- `"if-default-prop"` will only add the property when using named exports mode and there also is a default export. The subtle difference is that if there is no default export, consumers of the CommonJS version of your library will get all named exports as default export instead of an error or `undefined`. We chose to make this the default value as the `__esModule` property is not a standard followed by any JavaScript runtime and leads to many interop issues, so we want to limit its use to the cases where it is really needed. +- `false` on the other hand will never add the property even if the default export would become a property `.default`. + +See also [`output.interop`](https://rollupjs.org/guide/en/#outputinterop). #### output.exports @@ -1488,8 +1483,6 @@ Example: export { x } from 'external'; // CJS output with externalLiveBindings: true -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); Object.defineProperty(exports, 'x', { @@ -1500,8 +1493,6 @@ Object.defineProperty(exports, 'x', { }); // CJS output with externalLiveBindings: false -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); exports.x = external.x; diff --git a/src/Chunk.ts b/src/Chunk.ts index 9479c4c2649..da2081b3afa 100644 --- a/src/Chunk.ts +++ b/src/Chunk.ts @@ -583,9 +583,25 @@ export default class Chunk { const renderedDependencies = [...this.getRenderedDependencies().values()]; const renderedExports = exportMode === 'none' ? [] : this.getChunkExportDeclarations(format); - const hasExports = - renderedExports.length !== 0 || - renderedDependencies.some(dep => (dep.reexports && dep.reexports.length !== 0)!); + let hasExports = renderedExports.length !== 0; + let hasDefaultExport = false; + for (const { reexports } of renderedDependencies) { + if (reexports?.length) { + hasExports = true; + if (reexports.some(reexport => reexport.reexported === 'default')) { + hasDefaultExport = true; + break; + } + } + } + if (!hasDefaultExport) { + for (const { exported } of renderedExports) { + if (exported === 'default') { + hasDefaultExport = true; + break; + } + } + } const { intro, outro, banner, footer } = await createAddons( outputOptions, @@ -598,6 +614,7 @@ export default class Chunk { accessedGlobals, dependencies: renderedDependencies, exports: renderedExports, + hasDefaultExport, hasExports, id: preliminaryFileName.fileName, indent, diff --git a/src/finalisers/amd.ts b/src/finalisers/amd.ts index e8ea96a43b2..c1dc7d4a8a8 100644 --- a/src/finalisers/amd.ts +++ b/src/finalisers/amd.ts @@ -13,6 +13,7 @@ export default function amd( accessedGlobals, dependencies, exports, + hasDefaultExport, hasExports, id, indent: t, @@ -84,7 +85,7 @@ export default function amd( ); let namespaceMarkers = getNamespaceMarkers( namedExportsMode && hasExports, - isEntryFacade && esModule, + isEntryFacade && (esModule === true || (esModule === 'if-default-prop' && hasDefaultExport)), isModuleFacade && namespaceToStringTag, snippets ); diff --git a/src/finalisers/cjs.ts b/src/finalisers/cjs.ts index c7852b62634..f94552d8dd0 100644 --- a/src/finalisers/cjs.ts +++ b/src/finalisers/cjs.ts @@ -12,6 +12,7 @@ export default function cjs( accessedGlobals, dependencies, exports, + hasDefaultExport, hasExports, indent: t, intro, @@ -36,7 +37,7 @@ export default function cjs( const useStrict = strict ? `'use strict';${n}${n}` : ''; let namespaceMarkers = getNamespaceMarkers( namedExportsMode && hasExports, - isEntryFacade && esModule, + isEntryFacade && (esModule === true || (esModule === 'if-default-prop' && hasDefaultExport)), isModuleFacade && namespaceToStringTag, snippets ); diff --git a/src/finalisers/iife.ts b/src/finalisers/iife.ts index ec011dfd80f..18d42a53b7e 100644 --- a/src/finalisers/iife.ts +++ b/src/finalisers/iife.ts @@ -20,6 +20,7 @@ export default function iife( accessedGlobals, dependencies, exports, + hasDefaultExport, hasExports, indent: t, intro, @@ -118,7 +119,7 @@ export default function iife( ); let namespaceMarkers = getNamespaceMarkers( namedExportsMode && hasExports, - esModule, + esModule === true || (esModule === 'if-default-prop' && hasDefaultExport), namespaceToStringTag, snippets ); diff --git a/src/finalisers/index.ts b/src/finalisers/index.ts index 13a8aa1454e..d4edacb73c4 100644 --- a/src/finalisers/index.ts +++ b/src/finalisers/index.ts @@ -13,6 +13,7 @@ export interface FinaliserOptions { accessedGlobals: Set; dependencies: ChunkDependency[]; exports: ChunkExports; + hasDefaultExport: boolean; hasExports: boolean; id: string; indent: string; diff --git a/src/finalisers/umd.ts b/src/finalisers/umd.ts index 78e8ab53983..8a80abaad4d 100644 --- a/src/finalisers/umd.ts +++ b/src/finalisers/umd.ts @@ -39,6 +39,7 @@ export default function umd( accessedGlobals, dependencies, exports, + hasDefaultExport, hasExports, id, indent: t, @@ -201,7 +202,7 @@ export default function umd( ); let namespaceMarkers = getNamespaceMarkers( namedExportsMode && hasExports, - esModule, + esModule === true || (esModule === 'if-default-prop' && hasDefaultExport), namespaceToStringTag, snippets ); diff --git a/src/rollup/types.d.ts b/src/rollup/types.d.ts index a2758c0fa1a..293af5d3b1a 100644 --- a/src/rollup/types.d.ts +++ b/src/rollup/types.d.ts @@ -619,7 +619,7 @@ export interface OutputOptions { /** @deprecated Use the "renderDynamicImport" plugin hook instead. */ dynamicImportFunction?: string; entryFileNames?: string | ((chunkInfo: PreRenderedChunk) => string); - esModule?: boolean; + esModule?: boolean | 'if-default-prop'; exports?: 'default' | 'named' | 'none' | 'auto'; extend?: boolean; externalLiveBindings?: boolean; @@ -669,7 +669,7 @@ export interface NormalizedOutputOptions { /** @deprecated Use the "renderDynamicImport" plugin hook instead. */ dynamicImportFunction: string | undefined; entryFileNames: string | ((chunkInfo: PreRenderedChunk) => string); - esModule: boolean; + esModule: boolean | 'if-default-prop'; exports: 'default' | 'named' | 'none' | 'auto'; extend: boolean; externalLiveBindings: boolean; diff --git a/src/utils/options/normalizeOutputOptions.ts b/src/utils/options/normalizeOutputOptions.ts index 417caf67418..6f7b0188b1f 100644 --- a/src/utils/options/normalizeOutputOptions.ts +++ b/src/utils/options/normalizeOutputOptions.ts @@ -44,7 +44,7 @@ export function normalizeOutputOptions( dir: getDir(config, file), dynamicImportFunction: getDynamicImportFunction(config, inputOptions, format), entryFileNames: getEntryFileNames(config, unsetOptions), - esModule: config.esModule ?? true, + esModule: config.esModule ?? 'if-default-prop', exports: getExports(config, unsetOptions), extend: config.extend || false, externalLiveBindings: config.externalLiveBindings ?? true, diff --git a/test/chunking-form/samples/amd-id-auto-base-path-concat/_expected/amd/some/where/main.js b/test/chunking-form/samples/amd-id-auto-base-path-concat/_expected/amd/some/where/main.js index a2493c3bbbb..6aef214406d 100644 --- a/test/chunking-form/samples/amd-id-auto-base-path-concat/_expected/amd/some/where/main.js +++ b/test/chunking-form/samples/amd-id-auto-base-path-concat/_expected/amd/some/where/main.js @@ -6,8 +6,6 @@ define('some/where/main', ['require', 'exports'], (function (require, exports) { exports.getA = getA; - Object.defineProperty(exports, '__esModule', { value: true }); - })); define('some/where/generated-a', ['exports'], (function (exports) { 'use strict'; diff --git a/test/chunking-form/samples/amd-id-auto-base-path-concat/_expected/cjs/some/where/main.js b/test/chunking-form/samples/amd-id-auto-base-path-concat/_expected/cjs/some/where/main.js index 9fb4e75ab81..90dfebf79be 100644 --- a/test/chunking-form/samples/amd-id-auto-base-path-concat/_expected/cjs/some/where/main.js +++ b/test/chunking-form/samples/amd-id-auto-base-path-concat/_expected/cjs/some/where/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function getA() { return Promise.resolve().then(function () { return require('./generated-a.js'); }); } diff --git a/test/chunking-form/samples/amd-id-auto-base-path/_expected/amd/some/where/main.js b/test/chunking-form/samples/amd-id-auto-base-path/_expected/amd/some/where/main.js index a0da0405f6a..5fa585eca08 100644 --- a/test/chunking-form/samples/amd-id-auto-base-path/_expected/amd/some/where/main.js +++ b/test/chunking-form/samples/amd-id-auto-base-path/_expected/amd/some/where/main.js @@ -6,6 +6,4 @@ define('some/where/main', ['require', 'exports'], (function (require, exports) { exports.getA = getA; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/amd-id-auto-base-path/_expected/cjs/some/where/main.js b/test/chunking-form/samples/amd-id-auto-base-path/_expected/cjs/some/where/main.js index ec865e5ed72..a413360c169 100644 --- a/test/chunking-form/samples/amd-id-auto-base-path/_expected/cjs/some/where/main.js +++ b/test/chunking-form/samples/amd-id-auto-base-path/_expected/cjs/some/where/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function getA() { return Promise.resolve().then(function () { return require('./chunks/generated-a.js'); }); } diff --git a/test/chunking-form/samples/amd-id-auto/_expected/amd/main.js b/test/chunking-form/samples/amd-id-auto/_expected/amd/main.js index de47e9cc856..c1e974db3cb 100644 --- a/test/chunking-form/samples/amd-id-auto/_expected/amd/main.js +++ b/test/chunking-form/samples/amd-id-auto/_expected/amd/main.js @@ -6,6 +6,4 @@ define('main', ['require', 'exports'], (function (require, exports) { 'use stric exports.getA = getA; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/amd-id-auto/_expected/cjs/main.js b/test/chunking-form/samples/amd-id-auto/_expected/cjs/main.js index 9fb4e75ab81..90dfebf79be 100644 --- a/test/chunking-form/samples/amd-id-auto/_expected/cjs/main.js +++ b/test/chunking-form/samples/amd-id-auto/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function getA() { return Promise.resolve().then(function () { return require('./generated-a.js'); }); } diff --git a/test/chunking-form/samples/chunk-export-renaming/_expected/amd/main1.js b/test/chunking-form/samples/chunk-export-renaming/_expected/amd/main1.js index 4d7e54ea184..9bb15a1ac26 100644 --- a/test/chunking-form/samples/chunk-export-renaming/_expected/amd/main1.js +++ b/test/chunking-form/samples/chunk-export-renaming/_expected/amd/main1.js @@ -4,6 +4,4 @@ define(['exports', './generated-one'], (function (exports, one) { 'use strict'; exports.ItemOne = one.One; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/chunk-export-renaming/_expected/amd/main2.js b/test/chunking-form/samples/chunk-export-renaming/_expected/amd/main2.js index cbf9f95648c..7eea3c04e06 100644 --- a/test/chunking-form/samples/chunk-export-renaming/_expected/amd/main2.js +++ b/test/chunking-form/samples/chunk-export-renaming/_expected/amd/main2.js @@ -8,6 +8,4 @@ define(['exports', './generated-one'], (function (exports, one) { 'use strict'; exports.ItemTwo = Two; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/chunk-export-renaming/_expected/cjs/main1.js b/test/chunking-form/samples/chunk-export-renaming/_expected/cjs/main1.js index 357f059b4fd..66df4796b19 100644 --- a/test/chunking-form/samples/chunk-export-renaming/_expected/cjs/main1.js +++ b/test/chunking-form/samples/chunk-export-renaming/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var one = require('./generated-one.js'); diff --git a/test/chunking-form/samples/chunk-export-renaming/_expected/cjs/main2.js b/test/chunking-form/samples/chunk-export-renaming/_expected/cjs/main2.js index d990bcc5d17..83c41c90a5f 100644 --- a/test/chunking-form/samples/chunk-export-renaming/_expected/cjs/main2.js +++ b/test/chunking-form/samples/chunk-export-renaming/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var one = require('./generated-one.js'); class Two { diff --git a/test/chunking-form/samples/chunking-reexport/_expected/amd/main1.js b/test/chunking-form/samples/chunking-reexport/_expected/amd/main1.js index d9d7da1d797..314412599d7 100644 --- a/test/chunking-form/samples/chunking-reexport/_expected/amd/main1.js +++ b/test/chunking-form/samples/chunking-reexport/_expected/amd/main1.js @@ -7,6 +7,4 @@ define(['exports', './generated-dep', 'external'], (function (exports, dep, exte get: function () { return external.asdf; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/chunking-reexport/_expected/amd/main2.js b/test/chunking-form/samples/chunking-reexport/_expected/amd/main2.js index d9d7da1d797..314412599d7 100644 --- a/test/chunking-form/samples/chunking-reexport/_expected/amd/main2.js +++ b/test/chunking-form/samples/chunking-reexport/_expected/amd/main2.js @@ -7,6 +7,4 @@ define(['exports', './generated-dep', 'external'], (function (exports, dep, exte get: function () { return external.asdf; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/chunking-reexport/_expected/cjs/main1.js b/test/chunking-form/samples/chunking-reexport/_expected/cjs/main1.js index f233286783a..357f61ce300 100644 --- a/test/chunking-form/samples/chunking-reexport/_expected/cjs/main1.js +++ b/test/chunking-form/samples/chunking-reexport/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - require('./generated-dep.js'); var external = require('external'); diff --git a/test/chunking-form/samples/chunking-reexport/_expected/cjs/main2.js b/test/chunking-form/samples/chunking-reexport/_expected/cjs/main2.js index f233286783a..357f61ce300 100644 --- a/test/chunking-form/samples/chunking-reexport/_expected/cjs/main2.js +++ b/test/chunking-form/samples/chunking-reexport/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - require('./generated-dep.js'); var external = require('external'); diff --git a/test/chunking-form/samples/chunking-star-external/_expected/amd/main1.js b/test/chunking-form/samples/chunking-star-external/_expected/amd/main1.js index e34775037dc..956a525cc31 100644 --- a/test/chunking-form/samples/chunking-star-external/_expected/amd/main1.js +++ b/test/chunking-form/samples/chunking-star-external/_expected/amd/main1.js @@ -15,6 +15,4 @@ define(['exports', 'starexternal1', 'external1', './generated-dep', 'starexterna }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/chunking-star-external/_expected/amd/main2.js b/test/chunking-form/samples/chunking-star-external/_expected/amd/main2.js index 02a71db9a76..cbb03920d30 100644 --- a/test/chunking-form/samples/chunking-star-external/_expected/amd/main2.js +++ b/test/chunking-form/samples/chunking-star-external/_expected/amd/main2.js @@ -15,6 +15,4 @@ define(['exports', './generated-dep', 'external2', 'starexternal2'], (function ( }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/chunking-star-external/_expected/cjs/main1.js b/test/chunking-form/samples/chunking-star-external/_expected/cjs/main1.js index 5513455af97..2bd5eb12d01 100644 --- a/test/chunking-form/samples/chunking-star-external/_expected/cjs/main1.js +++ b/test/chunking-form/samples/chunking-star-external/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var starexternal1 = require('starexternal1'); var external1 = require('external1'); var dep = require('./generated-dep.js'); diff --git a/test/chunking-form/samples/chunking-star-external/_expected/cjs/main2.js b/test/chunking-form/samples/chunking-star-external/_expected/cjs/main2.js index 49123251978..aa8e50ce9d9 100644 --- a/test/chunking-form/samples/chunking-star-external/_expected/cjs/main2.js +++ b/test/chunking-form/samples/chunking-star-external/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = require('./generated-dep.js'); var external2 = require('external2'); var starexternal2 = require('starexternal2'); diff --git a/test/chunking-form/samples/circular-entry-points/_expected/amd/main1.js b/test/chunking-form/samples/circular-entry-points/_expected/amd/main1.js index b6b9f602189..8d0155c964a 100644 --- a/test/chunking-form/samples/circular-entry-points/_expected/amd/main1.js +++ b/test/chunking-form/samples/circular-entry-points/_expected/amd/main1.js @@ -4,6 +4,4 @@ define(['exports', './generated-main1'], (function (exports, main2) { 'use stric exports.p = main2.p$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/circular-entry-points/_expected/amd/main2.js b/test/chunking-form/samples/circular-entry-points/_expected/amd/main2.js index 275616cebbd..4d88775c4b9 100644 --- a/test/chunking-form/samples/circular-entry-points/_expected/amd/main2.js +++ b/test/chunking-form/samples/circular-entry-points/_expected/amd/main2.js @@ -4,6 +4,4 @@ define(['exports', './generated-main1'], (function (exports, main2) { 'use stric exports.p = main2.p; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/circular-entry-points/_expected/cjs/main1.js b/test/chunking-form/samples/circular-entry-points/_expected/cjs/main1.js index a5ec2910766..60e2d37cd2d 100644 --- a/test/chunking-form/samples/circular-entry-points/_expected/cjs/main1.js +++ b/test/chunking-form/samples/circular-entry-points/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./generated-main1.js'); diff --git a/test/chunking-form/samples/circular-entry-points/_expected/cjs/main2.js b/test/chunking-form/samples/circular-entry-points/_expected/cjs/main2.js index 0b9366cd0e2..51adca0c695 100644 --- a/test/chunking-form/samples/circular-entry-points/_expected/cjs/main2.js +++ b/test/chunking-form/samples/circular-entry-points/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./generated-main1.js'); diff --git a/test/chunking-form/samples/circular-entry-points2/_expected/amd/main1.js b/test/chunking-form/samples/circular-entry-points2/_expected/amd/main1.js index 4e9568a2ef1..dbb53a4ecbc 100644 --- a/test/chunking-form/samples/circular-entry-points2/_expected/amd/main1.js +++ b/test/chunking-form/samples/circular-entry-points2/_expected/amd/main1.js @@ -4,6 +4,4 @@ define(['exports', './main2'], (function (exports, main2) { 'use strict'; exports.p = main2.p2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/circular-entry-points2/_expected/amd/main2.js b/test/chunking-form/samples/circular-entry-points2/_expected/amd/main2.js index 6cd945aa892..6cbe142452c 100644 --- a/test/chunking-form/samples/circular-entry-points2/_expected/amd/main2.js +++ b/test/chunking-form/samples/circular-entry-points2/_expected/amd/main2.js @@ -23,6 +23,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.p = p$1; exports.p2 = p; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/circular-entry-points2/_expected/cjs/main1.js b/test/chunking-form/samples/circular-entry-points2/_expected/cjs/main1.js index 3e8554d3bd1..1679b725edb 100644 --- a/test/chunking-form/samples/circular-entry-points2/_expected/cjs/main1.js +++ b/test/chunking-form/samples/circular-entry-points2/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./main2.js'); diff --git a/test/chunking-form/samples/circular-entry-points2/_expected/cjs/main2.js b/test/chunking-form/samples/circular-entry-points2/_expected/cjs/main2.js index 953be18833a..3b79ebd98ca 100644 --- a/test/chunking-form/samples/circular-entry-points2/_expected/cjs/main2.js +++ b/test/chunking-form/samples/circular-entry-points2/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - class C$1 { fn (num) { console.log(num - p); diff --git a/test/chunking-form/samples/circular-entry-points3/_expected/amd/main1.js b/test/chunking-form/samples/circular-entry-points3/_expected/amd/main1.js index b6b9f602189..8d0155c964a 100644 --- a/test/chunking-form/samples/circular-entry-points3/_expected/amd/main1.js +++ b/test/chunking-form/samples/circular-entry-points3/_expected/amd/main1.js @@ -4,6 +4,4 @@ define(['exports', './generated-main1'], (function (exports, main2) { 'use stric exports.p = main2.p$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/circular-entry-points3/_expected/amd/main2.js b/test/chunking-form/samples/circular-entry-points3/_expected/amd/main2.js index 1110470d7bd..bfbdfd84014 100644 --- a/test/chunking-form/samples/circular-entry-points3/_expected/amd/main2.js +++ b/test/chunking-form/samples/circular-entry-points3/_expected/amd/main2.js @@ -5,6 +5,4 @@ define(['exports', './generated-main1'], (function (exports, main2) { 'use stric exports.p = main2.p; exports.p2 = main2.p$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/circular-entry-points3/_expected/amd/main3.js b/test/chunking-form/samples/circular-entry-points3/_expected/amd/main3.js index 48588553c3f..9cb9dfb1a65 100644 --- a/test/chunking-form/samples/circular-entry-points3/_expected/amd/main3.js +++ b/test/chunking-form/samples/circular-entry-points3/_expected/amd/main3.js @@ -4,6 +4,4 @@ define(['exports', './generated-main1'], (function (exports, main2) { 'use stric exports.C = main2.C; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main1.js b/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main1.js index a5ec2910766..60e2d37cd2d 100644 --- a/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main1.js +++ b/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./generated-main1.js'); diff --git a/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main2.js b/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main2.js index bc1e103d7c1..61eb5726bae 100644 --- a/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main2.js +++ b/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./generated-main1.js'); diff --git a/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main3.js b/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main3.js index e89188ab5e8..79ae2479f2f 100644 --- a/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main3.js +++ b/test/chunking-form/samples/circular-entry-points3/_expected/cjs/main3.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./generated-main1.js'); diff --git a/test/chunking-form/samples/circular-manual-chunks/_expected/amd/main.js b/test/chunking-form/samples/circular-manual-chunks/_expected/amd/main.js index 19755239562..0fbe5aa7e54 100644 --- a/test/chunking-form/samples/circular-manual-chunks/_expected/amd/main.js +++ b/test/chunking-form/samples/circular-manual-chunks/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './generated-lib1', './generated-lib2'], (function (exports, exports.lib1 = lib1.lib1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/circular-manual-chunks/_expected/cjs/main.js b/test/chunking-form/samples/circular-manual-chunks/_expected/cjs/main.js index 8ca369a5e0b..0a949dc0f1c 100644 --- a/test/chunking-form/samples/circular-manual-chunks/_expected/cjs/main.js +++ b/test/chunking-form/samples/circular-manual-chunks/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib1 = require('./generated-lib1.js'); require('./generated-lib2.js'); diff --git a/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/amd/other.js b/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/amd/other.js index 20c904832f2..7d812cecd83 100644 --- a/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/amd/other.js +++ b/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/amd/other.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/cjs/other.js b/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/cjs/other.js index f2628893cb0..02c04a3e7f9 100644 --- a/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/cjs/other.js +++ b/test/chunking-form/samples/deconflict-system-default-export-variable/_expected/cjs/other.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 'bar'; exports.foo = foo; diff --git a/test/chunking-form/samples/default-reexport-namespace/_expected/amd/main.js b/test/chunking-form/samples/default-reexport-namespace/_expected/amd/main.js index 40306c8ae42..57c5ace9748 100644 --- a/test/chunking-form/samples/default-reexport-namespace/_expected/amd/main.js +++ b/test/chunking-form/samples/default-reexport-namespace/_expected/amd/main.js @@ -12,6 +12,4 @@ define(['exports', './one'], (function (exports, one) { 'use strict'; exports.Component_one = __component__; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/default-reexport-namespace/_expected/cjs/main.js b/test/chunking-form/samples/default-reexport-namespace/_expected/cjs/main.js index 9333ccc880a..2da32d95433 100644 --- a/test/chunking-form/samples/default-reexport-namespace/_expected/cjs/main.js +++ b/test/chunking-form/samples/default-reexport-namespace/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var one = require('./one.js'); const __icon__ = {}; diff --git a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/a.js b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/a.js index 569e0dbc58b..3cffb947ed7 100644 --- a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/a.js +++ b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/a.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.a = a; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/b.js b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/b.js index bc6adf18b83..b24bc116cef 100644 --- a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/b.js +++ b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/b.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/one.js b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/one.js index 3db39871d7d..2c0c07355e0 100644 --- a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/one.js +++ b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/amd/one.js @@ -4,6 +4,4 @@ define(['exports', './b'], (function (exports, b) { 'use strict'; exports.d = d; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/a.js b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/a.js index 97007408241..418c69d2577 100644 --- a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/a.js +++ b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/a.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const a = 1; exports.a = a; diff --git a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/b.js b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/b.js index 3c417e8458a..f3fc6f22489 100644 --- a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/b.js +++ b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/b.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const b = 2; exports.b = b; diff --git a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/one.js b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/one.js index 9eea4c87a9f..98e3a99e3a3 100644 --- a/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/one.js +++ b/test/chunking-form/samples/deprecated/avoid-imports-preserve-modules/_expected/cjs/one.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var b = require('./b.js'); const d = b.b + 4; diff --git a/test/chunking-form/samples/deprecated/circular-manual-chunks/_expected/amd/main.js b/test/chunking-form/samples/deprecated/circular-manual-chunks/_expected/amd/main.js index 19755239562..0fbe5aa7e54 100644 --- a/test/chunking-form/samples/deprecated/circular-manual-chunks/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/circular-manual-chunks/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './generated-lib1', './generated-lib2'], (function (exports, exports.lib1 = lib1.lib1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/circular-manual-chunks/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/circular-manual-chunks/_expected/cjs/main.js index 8ca369a5e0b..0a949dc0f1c 100644 --- a/test/chunking-form/samples/deprecated/circular-manual-chunks/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/circular-manual-chunks/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib1 = require('./generated-lib1.js'); require('./generated-lib2.js'); diff --git a/test/chunking-form/samples/deprecated/dynamic-import-inlining-object/_expected/amd/entry.js b/test/chunking-form/samples/deprecated/dynamic-import-inlining-object/_expected/amd/entry.js index ac76d2d7dd1..a7385ad2c1b 100644 --- a/test/chunking-form/samples/deprecated/dynamic-import-inlining-object/_expected/amd/entry.js +++ b/test/chunking-form/samples/deprecated/dynamic-import-inlining-object/_expected/amd/entry.js @@ -12,6 +12,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.bar = bar; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/dynamic-import-inlining-object/_expected/cjs/entry.js b/test/chunking-form/samples/deprecated/dynamic-import-inlining-object/_expected/cjs/entry.js index 188ad126796..e20ce0c5bb8 100644 --- a/test/chunking-form/samples/deprecated/dynamic-import-inlining-object/_expected/cjs/entry.js +++ b/test/chunking-form/samples/deprecated/dynamic-import-inlining-object/_expected/cjs/entry.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const bar = 2; Promise.resolve().then(function () { return foo$1; }); diff --git a/test/chunking-form/samples/deprecated/emit-file-chunk-facade/_expected/amd/generated-buildStart.js b/test/chunking-form/samples/deprecated/emit-file-chunk-facade/_expected/amd/generated-buildStart.js index 61abbcd2ed9..ffe42cfb359 100644 --- a/test/chunking-form/samples/deprecated/emit-file-chunk-facade/_expected/amd/generated-buildStart.js +++ b/test/chunking-form/samples/deprecated/emit-file-chunk-facade/_expected/amd/generated-buildStart.js @@ -4,6 +4,4 @@ define(['exports', './generated-build-starter'], (function (exports, buildStarte exports.buildStartValue = buildStarter.value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/emit-file-chunk-facade/_expected/cjs/generated-buildStart.js b/test/chunking-form/samples/deprecated/emit-file-chunk-facade/_expected/cjs/generated-buildStart.js index 66c05cca4ba..7f8a521cd91 100644 --- a/test/chunking-form/samples/deprecated/emit-file-chunk-facade/_expected/cjs/generated-buildStart.js +++ b/test/chunking-form/samples/deprecated/emit-file-chunk-facade/_expected/cjs/generated-buildStart.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var buildStarter = require('./generated-build-starter.js'); diff --git a/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/amd/components/index.js b/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/amd/components/index.js index 25cc1e39f2d..a03efcb5e7a 100644 --- a/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/amd/components/index.js +++ b/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/amd/components/index.js @@ -5,6 +5,4 @@ define(['exports', './sub/index'], (function (exports, index) { 'use strict'; exports.foo = index.foo; exports.baz = baz; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/amd/main.js b/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/amd/main.js index 03a4f176ca1..c17dc35d934 100644 --- a/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/amd/main.js @@ -5,6 +5,4 @@ define(['exports', './components/index', './components/sub/index'], (function (e exports.baz = index.baz; exports.foo = index$1.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/cjs/components/index.js b/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/cjs/components/index.js index 46429b712ad..c6e74030a5f 100644 --- a/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/cjs/components/index.js +++ b/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/cjs/components/index.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var index = require('./sub/index.js'); const baz = { bar: index.default }; diff --git a/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/cjs/main.js index e8c88da6582..6bcd93609e4 100644 --- a/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/indirect-reexports-preserve-modules/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var index = require('./components/index.js'); var index$1 = require('./components/sub/index.js'); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-avoid-facade/_expected/amd/main2.js b/test/chunking-form/samples/deprecated/manual-chunk-avoid-facade/_expected/amd/main2.js index ca9c827728d..0c42189302d 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-avoid-facade/_expected/amd/main2.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-avoid-facade/_expected/amd/main2.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.reexported = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-avoid-facade/_expected/cjs/main2.js b/test/chunking-form/samples/deprecated/manual-chunk-avoid-facade/_expected/cjs/main2.js index f7d33362bcc..58617370ca4 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-avoid-facade/_expected/cjs/main2.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-avoid-facade/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 42; console.log('main2', value); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-conflict/_expected/amd/main.js b/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-conflict/_expected/amd/main.js index 9077cbb0e1f..0dce9285fd6 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-conflict/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-conflict/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-conflict/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-conflict/_expected/cjs/main.js index 5da9ebd5132..fe59aaab6b9 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-conflict/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-conflict/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log('dep'); console.log('main'); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-match/_expected/amd/main.js b/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-match/_expected/amd/main.js index 9077cbb0e1f..0dce9285fd6 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-match/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-match/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-match/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-match/_expected/cjs/main.js index 5da9ebd5132..fe59aaab6b9 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-match/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-contains-entry-match/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log('dep'); console.log('main'); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-is-entry-conflict/_expected/amd/main.js b/test/chunking-form/samples/deprecated/manual-chunk-is-entry-conflict/_expected/amd/main.js index 9077cbb0e1f..0dce9285fd6 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-is-entry-conflict/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-is-entry-conflict/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-is-entry-conflict/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/manual-chunk-is-entry-conflict/_expected/cjs/main.js index 5da9ebd5132..fe59aaab6b9 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-is-entry-conflict/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-is-entry-conflict/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log('dep'); console.log('main'); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-is-entry-match/_expected/amd/main.js b/test/chunking-form/samples/deprecated/manual-chunk-is-entry-match/_expected/amd/main.js index 9077cbb0e1f..0dce9285fd6 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-is-entry-match/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-is-entry-match/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/manual-chunk-is-entry-match/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/manual-chunk-is-entry-match/_expected/cjs/main.js index 5da9ebd5132..fe59aaab6b9 100644 --- a/test/chunking-form/samples/deprecated/manual-chunk-is-entry-match/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/manual-chunk-is-entry-match/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log('dep'); console.log('main'); diff --git a/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/amd/dep1.js b/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/amd/dep1.js index 3c213e8b5a6..1ebb9552c37 100644 --- a/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/amd/dep1.js +++ b/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/amd/dep1.js @@ -14,6 +14,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.missing1 = _missingExportShim; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/amd/dep2.js b/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/amd/dep2.js index e22f7bd7c3e..94c9d52cf2c 100644 --- a/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/amd/dep2.js +++ b/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/amd/dep2.js @@ -11,6 +11,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.missing2 = _missingExportShim; exports.previousShimmedExport = _missingExportShim$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/cjs/dep1.js b/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/cjs/dep1.js index 58c566f2849..a024bcd6f7f 100644 --- a/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/cjs/dep1.js +++ b/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/cjs/dep1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var _missingExportShim = void 0; console.log('This is the output when a missing export is used internally but not reexported'); diff --git a/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/cjs/dep2.js b/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/cjs/dep2.js index 8a01d991453..f411ae56976 100644 --- a/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/cjs/dep2.js +++ b/test/chunking-form/samples/deprecated/missing-export-reused-deconflicting/_expected/cjs/dep2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var _missingExportShim = void 0; console.log('This is the output when a missing export is reexported'); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-auto-export-mode/_expected/amd/named.js b/test/chunking-form/samples/deprecated/preserve-modules-auto-export-mode/_expected/amd/named.js index 1afc6d3f7b8..2896dcf1065 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-auto-export-mode/_expected/amd/named.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-auto-export-mode/_expected/amd/named.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-auto-export-mode/_expected/cjs/named.js b/test/chunking-form/samples/deprecated/preserve-modules-auto-export-mode/_expected/cjs/named.js index 491f8569447..ec20bc0d7ff 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-auto-export-mode/_expected/cjs/named.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-auto-export-mode/_expected/cjs/named.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'named'; exports.value = value; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-commonjs/_expected/amd/_virtual/other.js b/test/chunking-form/samples/deprecated/preserve-modules-commonjs/_expected/amd/_virtual/other.js index 4ded5921f4d..ab90c1d68e7 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-commonjs/_expected/amd/_virtual/other.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-commonjs/_expected/amd/_virtual/other.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.__exports = other; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-commonjs/_expected/cjs/_virtual/other.js b/test/chunking-form/samples/deprecated/preserve-modules-commonjs/_expected/cjs/_virtual/other.js index bc3ca602c7c..6569c1d2a46 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-commonjs/_expected/cjs/_virtual/other.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-commonjs/_expected/cjs/_virtual/other.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var other = {}; exports.__exports = other; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-dynamic-imports/_expected/amd/dynamic-included.js b/test/chunking-form/samples/deprecated/preserve-modules-dynamic-imports/_expected/amd/dynamic-included.js index b32da5f0cc8..19414d6fd6d 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-dynamic-imports/_expected/amd/dynamic-included.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-dynamic-imports/_expected/amd/dynamic-included.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-dynamic-imports/_expected/cjs/dynamic-included.js b/test/chunking-form/samples/deprecated/preserve-modules-dynamic-imports/_expected/cjs/dynamic-included.js index 2c8d642e303..7ce0b0473fe 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-dynamic-imports/_expected/cjs/dynamic-included.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-dynamic-imports/_expected/cjs/dynamic-included.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'included'; exports.value = value; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-dynamic-namespace/_expected/amd/m1.js b/test/chunking-form/samples/deprecated/preserve-modules-dynamic-namespace/_expected/amd/m1.js index 1933cc959ba..f5475ebcc07 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-dynamic-namespace/_expected/amd/m1.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-dynamic-namespace/_expected/amd/m1.js @@ -5,6 +5,4 @@ define(['exports', './m2', './m3'], (function (exports, m2, m3) { 'use strict'; exports.m2 = m2; exports.m3 = m3; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-dynamic-namespace/_expected/cjs/m1.js b/test/chunking-form/samples/deprecated/preserve-modules-dynamic-namespace/_expected/cjs/m1.js index 2dcf78656c6..bd9f1e27347 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-dynamic-namespace/_expected/cjs/m1.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-dynamic-namespace/_expected/cjs/m1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var m2 = require('./m2.js'); var m3 = require('./m3.js'); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/dep.js b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/dep.js index 3c6da13690d..42ccc5f1207 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/dep.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/dep.js @@ -5,6 +5,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.bar = foo; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/main1.js b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/main1.js index 6a9c4156910..a9086d328ff 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/main1.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/main1.js @@ -5,6 +5,4 @@ define(['exports', './dep'], (function (exports, dep) { 'use strict'; exports.bar = dep.foo; exports.foo = dep.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/main2.js b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/main2.js index 518837a6cba..43cad3604ac 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/main2.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/amd/main2.js @@ -4,6 +4,4 @@ define(['exports', './dep'], (function (exports, dep) { 'use strict'; exports.bar = dep.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/dep.js b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/dep.js index 7bf4532c451..ce2fd9a6532 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/dep.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/dep.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 1; exports.bar = foo; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/main1.js b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/main1.js index 801c4e75c53..f9483644b72 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/main1.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = require('./dep.js'); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/main2.js b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/main2.js index 1c1f62cd337..68babfaabf9 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/main2.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-export-alias/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = require('./dep.js'); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-filename-pattern/_expected/amd/main-amd-2ef83a76.js b/test/chunking-form/samples/deprecated/preserve-modules-filename-pattern/_expected/amd/main-amd-2ef83a76.js deleted file mode 100644 index ea7055ed7f0..00000000000 --- a/test/chunking-form/samples/deprecated/preserve-modules-filename-pattern/_expected/amd/main-amd-2ef83a76.js +++ /dev/null @@ -1,12 +0,0 @@ -define(['exports', './foo-amd-0f9dc16c', './nested/bar-amd-f038b10c', './nested/baz-amd-d3de4cc0', './no-ext-amd-9d2c6ef6'], (function (exports, foo, bar, baz, noExt) { 'use strict'; - - - - exports.foo = foo; - exports.bar = bar; - exports.baz = baz; - exports.noExt = noExt; - - Object.defineProperty(exports, '__esModule', { value: true }); - -})); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-filename-pattern/_expected/cjs/main-cjs-82d6d41f.js b/test/chunking-form/samples/deprecated/preserve-modules-filename-pattern/_expected/cjs/main-cjs-82d6d41f.js deleted file mode 100644 index b2e54b9afe2..00000000000 --- a/test/chunking-form/samples/deprecated/preserve-modules-filename-pattern/_expected/cjs/main-cjs-82d6d41f.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var foo = require('./foo-cjs-0d5774b5.js'); -var bar = require('./nested/bar-cjs-abedc91d.js'); -var baz = require('./nested/baz-cjs-4a9c02fc.js'); -var noExt = require('./no-ext-cjs-500f8f81.js'); - - - -exports.foo = foo; -exports.bar = bar; -exports.baz = baz; -exports.noExt = noExt; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-named-export-mode/_expected/amd/named.js b/test/chunking-form/samples/deprecated/preserve-modules-named-export-mode/_expected/amd/named.js index 1afc6d3f7b8..2896dcf1065 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-named-export-mode/_expected/amd/named.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-named-export-mode/_expected/amd/named.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-named-export-mode/_expected/cjs/named.js b/test/chunking-form/samples/deprecated/preserve-modules-named-export-mode/_expected/cjs/named.js index 491f8569447..ec20bc0d7ff 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-named-export-mode/_expected/cjs/named.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-named-export-mode/_expected/cjs/named.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'named'; exports.value = value; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/main.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/main.js index 7b07b87a9e6..0a1b6a12cba 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/main.js @@ -5,6 +5,4 @@ define(['exports', './module-a/v1/index', './module-b/v1/index'], (function (exp exports.ModuleA_V1 = index; exports.ModuleB_V1 = index$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/module-a/v1/index.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/module-a/v1/index.js index 315abd02795..6b677084b74 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/module-a/v1/index.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/module-a/v1/index.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.TEST_MODULE_A = TEST_MODULE_A; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/module-b/v1/index.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/module-b/v1/index.js index dfd4f52cf95..5d1b35b6a7e 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/module-b/v1/index.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/amd/module-b/v1/index.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.TEST_MODULE_B = TEST_MODULE_B; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/main.js index 632ce47b9ae..85ed071a23c 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var index = require('./module-a/v1/index.js'); var index$1 = require('./module-b/v1/index.js'); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/module-a/v1/index.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/module-a/v1/index.js index a8ab4802133..6f57cdac859 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/module-a/v1/index.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/module-a/v1/index.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const TEST_MODULE_A = 'A'; exports.TEST_MODULE_A = TEST_MODULE_A; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/module-b/v1/index.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/module-b/v1/index.js index 2c2b23c7d63..99cce36ed4d 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/module-b/v1/index.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-barrel-es-export/_expected/cjs/module-b/v1/index.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const TEST_MODULE_B = 'A'; exports.TEST_MODULE_B = TEST_MODULE_B; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/amd/inner/more_inner/something.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/amd/inner/more_inner/something.js index 8f479d12f01..9e690e2c1a8 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/amd/inner/more_inner/something.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/amd/inner/more_inner/something.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.Something = Something; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/amd/main.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/amd/main.js index 48856b23109..8519607224b 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './inner/more_inner/something', './inner/some_effect'], (func exports.Something = something.Something; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/cjs/inner/more_inner/something.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/cjs/inner/more_inner/something.js index 32f3040b7c0..12aa3ba79a7 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/cjs/inner/more_inner/something.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/cjs/inner/more_inner/something.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const Something = 'Hello World'; exports.Something = Something; diff --git a/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/cjs/main.js index ffa1d0bc5bb..affdcc85a46 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-nested-export/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var something = require('./inner/more_inner/something.js'); require('./inner/some_effect.js'); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-reaching-outside/_expected/amd/dep.js b/test/chunking-form/samples/deprecated/preserve-modules-reaching-outside/_expected/amd/dep.js index 075d3efdd11..e919531b930 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-reaching-outside/_expected/amd/dep.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-reaching-outside/_expected/amd/dep.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-reaching-outside/_expected/cjs/dep.js b/test/chunking-form/samples/deprecated/preserve-modules-reaching-outside/_expected/cjs/dep.js index b67a1e41d97..119bca3ddc7 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-reaching-outside/_expected/cjs/dep.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-reaching-outside/_expected/cjs/dep.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function fn () { console.log('dep fn'); } diff --git a/test/chunking-form/samples/deprecated/preserve-modules-scriptified-assets/_expected/amd/main.js b/test/chunking-form/samples/deprecated/preserve-modules-scriptified-assets/_expected/amd/main.js index 75f282a2bc1..11b93e1cea6 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-scriptified-assets/_expected/amd/main.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-scriptified-assets/_expected/amd/main.js @@ -6,6 +6,4 @@ define(['exports', './answer.num', './lorem.str', './no-ext'], (function (export exports.lorem = lorem; exports.noExt = noExt; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-scriptified-assets/_expected/cjs/main.js b/test/chunking-form/samples/deprecated/preserve-modules-scriptified-assets/_expected/cjs/main.js index 0c13700934e..463a11a27e6 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-scriptified-assets/_expected/cjs/main.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-scriptified-assets/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var answer = require('./answer.num.js'); var lorem = require('./lorem.str.js'); var noExt = require('./no-ext.js'); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-virtual-modules/_expected/amd/_virtual/_virtualModule.js b/test/chunking-form/samples/deprecated/preserve-modules-virtual-modules/_expected/amd/_virtual/_virtualModule.js index ce212753ac0..dc4e209f365 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-virtual-modules/_expected/amd/_virtual/_virtualModule.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-virtual-modules/_expected/amd/_virtual/_virtualModule.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.virtual = virtual; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules-virtual-modules/_expected/cjs/_virtual/_virtualModule.js b/test/chunking-form/samples/deprecated/preserve-modules-virtual-modules/_expected/cjs/_virtual/_virtualModule.js index 3b40ebf67c2..266f8b02432 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules-virtual-modules/_expected/cjs/_virtual/_virtualModule.js +++ b/test/chunking-form/samples/deprecated/preserve-modules-virtual-modules/_expected/cjs/_virtual/_virtualModule.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const virtual = "Virtual!"; exports.virtual = virtual; diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep1.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep1.js index 9e70a0993ae..59783d02d35 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep1.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep1.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep2.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep2.js index adf251cb993..2ab2557abf3 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep2.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep2.js @@ -7,6 +7,4 @@ define(['exports', '../lib/lib2'], (function (exports, lib2) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep3.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep3.js index 5e20b792948..3b871ce769d 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep3.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/deps/dep3.js @@ -7,6 +7,4 @@ define(['exports', '../lib/lib1'], (function (exports, lib1) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/lib/lib1.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/lib/lib1.js index aa9fbe18f60..6d846653cf3 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/lib/lib1.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/lib/lib1.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/lib/lib2.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/lib/lib2.js index d05a867696b..be6d55fa49d 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/lib/lib2.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/amd/lib/lib2.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep1.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep1.js index 94bfa086430..5d2f022faa9 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep1.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function fn () { console.log('dep1 fn'); } diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep2.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep2.js index a9f8fb62635..1c35a7c280c 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep2.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib2 = require('../lib/lib2.js'); function fn () { diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep3.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep3.js index eb901c61adc..9459cf55dea 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep3.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/deps/dep3.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib1 = require('../lib/lib1.js'); function fn () { diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/lib/lib1.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/lib/lib1.js index 135c3023fcc..6a9d99129d3 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/lib/lib1.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/lib/lib1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function fn () { console.log('lib1 fn'); } diff --git a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/lib/lib2.js b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/lib/lib2.js index ee3ad249352..cf6e36b03dd 100644 --- a/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/lib/lib2.js +++ b/test/chunking-form/samples/deprecated/preserve-modules/_expected/cjs/lib/lib2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function fn () { console.log('lib2 fn'); } diff --git a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/amd/main1.js b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/amd/main1.js index 4af76516b89..0ca64ff90de 100644 --- a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/amd/main1.js +++ b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/amd/main1.js @@ -16,6 +16,4 @@ define(['require', 'exports', './generated-separate'], (function (require, expor exports.inlined = inlined; exports.separate = separate; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/amd/main2.js b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/amd/main2.js index 1849d957060..d75901a1ce6 100644 --- a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/amd/main2.js +++ b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/amd/main2.js @@ -4,6 +4,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.separate = separate; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/cjs/main1.js b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/cjs/main1.js index 61ce73abd7f..29a1c11edd3 100644 --- a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/cjs/main1.js +++ b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - require('./generated-separate.js'); var inlined$1 = 'inlined'; diff --git a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/cjs/main2.js b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/cjs/main2.js index 0978a48dcc1..dc5b3882f18 100644 --- a/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/cjs/main2.js +++ b/test/chunking-form/samples/dynamic-import-inline-colouring/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const separate = Promise.resolve().then(function () { return require('./generated-separate.js'); }); exports.separate = separate; diff --git a/test/chunking-form/samples/dynamic-import-inlining-object/_expected/amd/entry.js b/test/chunking-form/samples/dynamic-import-inlining-object/_expected/amd/entry.js index ac76d2d7dd1..a7385ad2c1b 100644 --- a/test/chunking-form/samples/dynamic-import-inlining-object/_expected/amd/entry.js +++ b/test/chunking-form/samples/dynamic-import-inlining-object/_expected/amd/entry.js @@ -12,6 +12,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.bar = bar; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/dynamic-import-inlining-object/_expected/cjs/entry.js b/test/chunking-form/samples/dynamic-import-inlining-object/_expected/cjs/entry.js index 188ad126796..e20ce0c5bb8 100644 --- a/test/chunking-form/samples/dynamic-import-inlining-object/_expected/cjs/entry.js +++ b/test/chunking-form/samples/dynamic-import-inlining-object/_expected/cjs/entry.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const bar = 2; Promise.resolve().then(function () { return foo$1; }); diff --git a/test/chunking-form/samples/dynamic-import/_expected/amd/main.js b/test/chunking-form/samples/dynamic-import/_expected/amd/main.js index b242019a378..cfede414f1c 100644 --- a/test/chunking-form/samples/dynamic-import/_expected/amd/main.js +++ b/test/chunking-form/samples/dynamic-import/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './chunks/main'], (function (exports, main) { 'use strict'; exports.promise = main.promise; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/dynamic-import/_expected/cjs/main.js b/test/chunking-form/samples/dynamic-import/_expected/cjs/main.js index 4f5cbe2bc72..382cd3044e4 100644 --- a/test/chunking-form/samples/dynamic-import/_expected/cjs/main.js +++ b/test/chunking-form/samples/dynamic-import/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main = require('./chunks/main.js'); diff --git a/test/chunking-form/samples/dynamically-import-facaded-entry/_expected/amd/main.js b/test/chunking-form/samples/dynamically-import-facaded-entry/_expected/amd/main.js index 6b03c36fd41..def925166fc 100644 --- a/test/chunking-form/samples/dynamically-import-facaded-entry/_expected/amd/main.js +++ b/test/chunking-form/samples/dynamically-import-facaded-entry/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './generated-main'], (function (exports, main) { 'use strict' exports.promise = main.promise; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/dynamically-import-facaded-entry/_expected/cjs/main.js b/test/chunking-form/samples/dynamically-import-facaded-entry/_expected/cjs/main.js index 200a21c5ca7..67dac3123bc 100644 --- a/test/chunking-form/samples/dynamically-import-facaded-entry/_expected/cjs/main.js +++ b/test/chunking-form/samples/dynamically-import-facaded-entry/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main = require('./generated-main.js'); diff --git a/test/chunking-form/samples/dynamically-import-non-preserved-entry/_expected/amd/main.js b/test/chunking-form/samples/dynamically-import-non-preserved-entry/_expected/amd/main.js index 85d87cb9a1a..640a1a11a0d 100644 --- a/test/chunking-form/samples/dynamically-import-non-preserved-entry/_expected/amd/main.js +++ b/test/chunking-form/samples/dynamically-import-non-preserved-entry/_expected/amd/main.js @@ -12,6 +12,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.main = main; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/dynamically-import-non-preserved-entry/_expected/cjs/main.js b/test/chunking-form/samples/dynamically-import-non-preserved-entry/_expected/cjs/main.js index 47b69e30cb8..dd3b86b6851 100644 --- a/test/chunking-form/samples/dynamically-import-non-preserved-entry/_expected/cjs/main.js +++ b/test/chunking-form/samples/dynamically-import-non-preserved-entry/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var value = 42; const promise = Promise.resolve().then(function () { return require('./generated-dynamic.js'); }).then(result => console.log('main', result, value)); diff --git a/test/chunking-form/samples/dynamically-import-tainted-entry/_expected/amd/main.js b/test/chunking-form/samples/dynamically-import-tainted-entry/_expected/amd/main.js index f1407e820a4..1f52e8ff64c 100644 --- a/test/chunking-form/samples/dynamically-import-tainted-entry/_expected/amd/main.js +++ b/test/chunking-form/samples/dynamically-import-tainted-entry/_expected/amd/main.js @@ -13,6 +13,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.promise = promise; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/dynamically-import-tainted-entry/_expected/cjs/main.js b/test/chunking-form/samples/dynamically-import-tainted-entry/_expected/cjs/main.js index 703b184ddd1..17d46d28972 100644 --- a/test/chunking-form/samples/dynamically-import-tainted-entry/_expected/cjs/main.js +++ b/test/chunking-form/samples/dynamically-import-tainted-entry/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var value = 42; const promise = Promise.resolve().then(function () { return require('./generated-dynamic.js'); }).then(result => console.log('main', result, value)); diff --git a/test/chunking-form/samples/emit-file/emit-chunk-facade/_expected/amd/generated-buildStart.js b/test/chunking-form/samples/emit-file/emit-chunk-facade/_expected/amd/generated-buildStart.js index 61abbcd2ed9..ffe42cfb359 100644 --- a/test/chunking-form/samples/emit-file/emit-chunk-facade/_expected/amd/generated-buildStart.js +++ b/test/chunking-form/samples/emit-file/emit-chunk-facade/_expected/amd/generated-buildStart.js @@ -4,6 +4,4 @@ define(['exports', './generated-build-starter'], (function (exports, buildStarte exports.buildStartValue = buildStarter.value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/emit-chunk-facade/_expected/cjs/generated-buildStart.js b/test/chunking-form/samples/emit-file/emit-chunk-facade/_expected/cjs/generated-buildStart.js index 66c05cca4ba..7f8a521cd91 100644 --- a/test/chunking-form/samples/emit-file/emit-chunk-facade/_expected/cjs/generated-buildStart.js +++ b/test/chunking-form/samples/emit-file/emit-chunk-facade/_expected/cjs/generated-buildStart.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var buildStarter = require('./generated-build-starter.js'); diff --git a/test/chunking-form/samples/emit-file/emit-chunk-filename/_expected/amd/custom/build-start-chunk.js b/test/chunking-form/samples/emit-file/emit-chunk-filename/_expected/amd/custom/build-start-chunk.js index 2c62b003b26..7c5d4d08bf9 100644 --- a/test/chunking-form/samples/emit-file/emit-chunk-filename/_expected/amd/custom/build-start-chunk.js +++ b/test/chunking-form/samples/emit-file/emit-chunk-filename/_expected/amd/custom/build-start-chunk.js @@ -4,6 +4,4 @@ define(['exports', '../generated-buildStart'], (function (exports, buildStart) { exports.id = buildStart.id; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/emit-chunk-filename/_expected/cjs/custom/build-start-chunk.js b/test/chunking-form/samples/emit-file/emit-chunk-filename/_expected/cjs/custom/build-start-chunk.js index 6aaa72e953f..325b51890ce 100644 --- a/test/chunking-form/samples/emit-file/emit-chunk-filename/_expected/cjs/custom/build-start-chunk.js +++ b/test/chunking-form/samples/emit-file/emit-chunk-filename/_expected/cjs/custom/build-start-chunk.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var buildStart = require('../generated-buildStart.js'); diff --git a/test/chunking-form/samples/emit-file/emit-chunk-order1/_expected/amd/generated-emitted2.js b/test/chunking-form/samples/emit-file/emit-chunk-order1/_expected/amd/generated-emitted2.js index 223116a8054..4dd558a916d 100644 --- a/test/chunking-form/samples/emit-file/emit-chunk-order1/_expected/amd/generated-emitted2.js +++ b/test/chunking-form/samples/emit-file/emit-chunk-order1/_expected/amd/generated-emitted2.js @@ -4,6 +4,4 @@ define(['exports', './generated-emitted'], (function (exports, emitted) { 'use s exports.id = emitted.id; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/emit-chunk-order1/_expected/cjs/generated-emitted2.js b/test/chunking-form/samples/emit-file/emit-chunk-order1/_expected/cjs/generated-emitted2.js index cea7e87b55c..8fcbdb1da0a 100644 --- a/test/chunking-form/samples/emit-file/emit-chunk-order1/_expected/cjs/generated-emitted2.js +++ b/test/chunking-form/samples/emit-file/emit-chunk-order1/_expected/cjs/generated-emitted2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var emitted = require('./generated-emitted.js'); diff --git a/test/chunking-form/samples/emit-file/emit-chunk-order2/_expected/amd/generated-emitted2.js b/test/chunking-form/samples/emit-file/emit-chunk-order2/_expected/amd/generated-emitted2.js index 223116a8054..4dd558a916d 100644 --- a/test/chunking-form/samples/emit-file/emit-chunk-order2/_expected/amd/generated-emitted2.js +++ b/test/chunking-form/samples/emit-file/emit-chunk-order2/_expected/amd/generated-emitted2.js @@ -4,6 +4,4 @@ define(['exports', './generated-emitted'], (function (exports, emitted) { 'use s exports.id = emitted.id; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/emit-chunk-order2/_expected/cjs/generated-emitted2.js b/test/chunking-form/samples/emit-file/emit-chunk-order2/_expected/cjs/generated-emitted2.js index cea7e87b55c..8fcbdb1da0a 100644 --- a/test/chunking-form/samples/emit-file/emit-chunk-order2/_expected/cjs/generated-emitted2.js +++ b/test/chunking-form/samples/emit-file/emit-chunk-order2/_expected/cjs/generated-emitted2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var emitted = require('./generated-emitted.js'); diff --git a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/explicit-name1.js b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/explicit-name1.js index f21572ce121..d6a2055d06e 100644 --- a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/explicit-name1.js +++ b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/explicit-name1.js @@ -4,6 +4,4 @@ define(['exports', './mainChunk'], (function (exports, mainChunk) { 'use strict' exports.value = mainChunk.value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/explicit-name2.js b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/explicit-name2.js index f21572ce121..d6a2055d06e 100644 --- a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/explicit-name2.js +++ b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/explicit-name2.js @@ -4,6 +4,4 @@ define(['exports', './mainChunk'], (function (exports, mainChunk) { 'use strict' exports.value = mainChunk.value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/mainChunk.js b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/mainChunk.js index 106eba6b3f5..947ad1cbafd 100644 --- a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/mainChunk.js +++ b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/mainChunk.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/mainChunkFacade.js b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/mainChunkFacade.js index f21572ce121..d6a2055d06e 100644 --- a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/mainChunkFacade.js +++ b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/amd/mainChunkFacade.js @@ -4,6 +4,4 @@ define(['exports', './mainChunk'], (function (exports, mainChunk) { 'use strict' exports.value = mainChunk.value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/explicit-name1.js b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/explicit-name1.js index 4353ca57beb..2c1766ca185 100644 --- a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/explicit-name1.js +++ b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/explicit-name1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var mainChunk = require('./mainChunk.js'); diff --git a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/explicit-name2.js b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/explicit-name2.js index 4353ca57beb..2c1766ca185 100644 --- a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/explicit-name2.js +++ b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/explicit-name2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var mainChunk = require('./mainChunk.js'); diff --git a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/mainChunk.js b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/mainChunk.js index 181fa0fd711..9549eb32880 100644 --- a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/mainChunk.js +++ b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/mainChunk.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 42; exports.value = value; diff --git a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/mainChunkFacade.js b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/mainChunkFacade.js index 4353ca57beb..2c1766ca185 100644 --- a/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/mainChunkFacade.js +++ b/test/chunking-form/samples/emit-file/named-user-chunks/_expected/cjs/mainChunkFacade.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var mainChunk = require('./mainChunk.js'); diff --git a/test/chunking-form/samples/emit-file/reference-files/_expected/amd/main.js b/test/chunking-form/samples/emit-file/reference-files/_expected/amd/main.js index 91b63f05a04..e5681989434 100644 --- a/test/chunking-form/samples/emit-file/reference-files/_expected/amd/main.js +++ b/test/chunking-form/samples/emit-file/reference-files/_expected/amd/main.js @@ -16,6 +16,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.showImage = showImage; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/reference-files/_expected/cjs/main.js b/test/chunking-form/samples/emit-file/reference-files/_expected/cjs/main.js index 8b80ca97386..7b1418ccbc7 100644 --- a/test/chunking-form/samples/emit-file/reference-files/_expected/cjs/main.js +++ b/test/chunking-form/samples/emit-file/reference-files/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var logo = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __dirname + '/assets/logo1-60bc15c4.svg').href : new URL('assets/logo1-60bc15c4.svg', document.currentScript && document.currentScript.src || document.baseURI).href); function showImage(url) { diff --git a/test/chunking-form/samples/emit-file/set-asset-source/_expected/amd/main.js b/test/chunking-form/samples/emit-file/set-asset-source/_expected/amd/main.js index 431afc714b9..ea3be902633 100644 --- a/test/chunking-form/samples/emit-file/set-asset-source/_expected/amd/main.js +++ b/test/chunking-form/samples/emit-file/set-asset-source/_expected/amd/main.js @@ -20,6 +20,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.renderStartNamed = renderStartNamed; exports.renderStartNamedImmediately = renderStartNamedImmediately; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/emit-file/set-asset-source/_expected/cjs/main.js b/test/chunking-form/samples/emit-file/set-asset-source/_expected/cjs/main.js index bd63ea33c1f..0ee875dbfdd 100644 --- a/test/chunking-form/samples/emit-file/set-asset-source/_expected/cjs/main.js +++ b/test/chunking-form/samples/emit-file/set-asset-source/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const renderStart = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __dirname + '/assets/renderStart-981aa2ea.txt').href : new URL('assets/renderStart-981aa2ea.txt', document.currentScript && document.currentScript.src || document.baseURI).href); const renderStartNamed = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __dirname + '/renderStart.txt').href : new URL('renderStart.txt', document.currentScript && document.currentScript.src || document.baseURI).href); const renderStartNamedImmediately = 'renderStart.txt'; diff --git a/test/chunking-form/samples/entry-aliases/_expected/amd/main1-alias.js b/test/chunking-form/samples/entry-aliases/_expected/amd/main1-alias.js index 14f85073f84..8971d94bc68 100644 --- a/test/chunking-form/samples/entry-aliases/_expected/amd/main1-alias.js +++ b/test/chunking-form/samples/entry-aliases/_expected/amd/main1-alias.js @@ -4,6 +4,4 @@ define(['exports', './generated-dep'], (function (exports, dep) { 'use strict'; exports.name = dep.name; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/entry-aliases/_expected/amd/main1.js b/test/chunking-form/samples/entry-aliases/_expected/amd/main1.js index 14f85073f84..8971d94bc68 100644 --- a/test/chunking-form/samples/entry-aliases/_expected/amd/main1.js +++ b/test/chunking-form/samples/entry-aliases/_expected/amd/main1.js @@ -4,6 +4,4 @@ define(['exports', './generated-dep'], (function (exports, dep) { 'use strict'; exports.name = dep.name; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/entry-aliases/_expected/cjs/main1-alias.js b/test/chunking-form/samples/entry-aliases/_expected/cjs/main1-alias.js index 50083991d6f..1fc5317171f 100644 --- a/test/chunking-form/samples/entry-aliases/_expected/cjs/main1-alias.js +++ b/test/chunking-form/samples/entry-aliases/_expected/cjs/main1-alias.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = require('./generated-dep.js'); diff --git a/test/chunking-form/samples/entry-aliases/_expected/cjs/main1.js b/test/chunking-form/samples/entry-aliases/_expected/cjs/main1.js index 50083991d6f..1fc5317171f 100644 --- a/test/chunking-form/samples/entry-aliases/_expected/cjs/main1.js +++ b/test/chunking-form/samples/entry-aliases/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = require('./generated-dep.js'); diff --git a/test/chunking-form/samples/entry-point-without-own-code/_expected/amd/m1.js b/test/chunking-form/samples/entry-point-without-own-code/_expected/amd/m1.js index 1d023d3bc04..f28945e1828 100644 --- a/test/chunking-form/samples/entry-point-without-own-code/_expected/amd/m1.js +++ b/test/chunking-form/samples/entry-point-without-own-code/_expected/amd/m1.js @@ -4,6 +4,4 @@ define(['exports', './m2'], (function (exports, m2) { 'use strict'; exports.m2 = m2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/entry-point-without-own-code/_expected/cjs/m1.js b/test/chunking-form/samples/entry-point-without-own-code/_expected/cjs/m1.js index f1de24e56e2..5c65692eec7 100644 --- a/test/chunking-form/samples/entry-point-without-own-code/_expected/cjs/m1.js +++ b/test/chunking-form/samples/entry-point-without-own-code/_expected/cjs/m1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var m2 = require('./m2.js'); diff --git a/test/chunking-form/samples/export-default-from-entry/_expected/amd/main.js b/test/chunking-form/samples/export-default-from-entry/_expected/amd/main.js index c2aa7ff9acc..ae54c23e6a2 100644 --- a/test/chunking-form/samples/export-default-from-entry/_expected/amd/main.js +++ b/test/chunking-form/samples/export-default-from-entry/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './dep'], (function (exports, dep) { 'use strict'; exports.value = dep; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/export-default-from-entry/_expected/cjs/main.js b/test/chunking-form/samples/export-default-from-entry/_expected/cjs/main.js index d5b48cc5a0a..e855a76e250 100644 --- a/test/chunking-form/samples/export-default-from-entry/_expected/cjs/main.js +++ b/test/chunking-form/samples/export-default-from-entry/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = require('./dep.js'); diff --git a/test/chunking-form/samples/external-reexports/_expected/amd/main-default.js b/test/chunking-form/samples/external-reexports/_expected/amd/main-default.js index ada712fbe40..f701dc34d38 100644 --- a/test/chunking-form/samples/external-reexports/_expected/amd/main-default.js +++ b/test/chunking-form/samples/external-reexports/_expected/amd/main-default.js @@ -26,6 +26,4 @@ define(['exports', 'external-all', 'external-default', 'external-default-named', get: function () { return externalDefaultNamespace__default.default; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/external-reexports/_expected/amd/main-named.js b/test/chunking-form/samples/external-reexports/_expected/amd/main-named.js index 891e382aff5..1f3aa187801 100644 --- a/test/chunking-form/samples/external-reexports/_expected/amd/main-named.js +++ b/test/chunking-form/samples/external-reexports/_expected/amd/main-named.js @@ -19,6 +19,4 @@ define(['exports', 'external-all', 'external-named', 'external-default-named', ' get: function () { return externalNamedNamespace.quux; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/external-reexports/_expected/amd/main-namespace.js b/test/chunking-form/samples/external-reexports/_expected/amd/main-namespace.js index e1796afced7..193ce4b4b72 100644 --- a/test/chunking-form/samples/external-reexports/_expected/amd/main-namespace.js +++ b/test/chunking-form/samples/external-reexports/_expected/amd/main-namespace.js @@ -32,6 +32,4 @@ define(['exports', 'external-all', 'external-namespace', 'external-default-names exports.baz = externalDefaultNamespace__namespace; exports.quux = externalNamedNamespace__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/external-reexports/_expected/cjs/main-default.js b/test/chunking-form/samples/external-reexports/_expected/cjs/main-default.js index f64163d1e59..84cce20da3e 100644 --- a/test/chunking-form/samples/external-reexports/_expected/cjs/main-default.js +++ b/test/chunking-form/samples/external-reexports/_expected/cjs/main-default.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var externalAll = require('external-all'); var externalDefault = require('external-default'); var externalDefaultNamed = require('external-default-named'); diff --git a/test/chunking-form/samples/external-reexports/_expected/cjs/main-named.js b/test/chunking-form/samples/external-reexports/_expected/cjs/main-named.js index bc69060bc97..970c52c85ac 100644 --- a/test/chunking-form/samples/external-reexports/_expected/cjs/main-named.js +++ b/test/chunking-form/samples/external-reexports/_expected/cjs/main-named.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var externalAll = require('external-all'); var externalNamed = require('external-named'); var externalDefaultNamed = require('external-default-named'); diff --git a/test/chunking-form/samples/external-reexports/_expected/cjs/main-namespace.js b/test/chunking-form/samples/external-reexports/_expected/cjs/main-namespace.js index 8041d6813b9..03779a6b5a2 100644 --- a/test/chunking-form/samples/external-reexports/_expected/cjs/main-namespace.js +++ b/test/chunking-form/samples/external-reexports/_expected/cjs/main-namespace.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var externalAll = require('external-all'); var externalNamespace$1 = require('external-namespace'); var externalDefaultNamespace = require('external-default-namespace'); diff --git a/test/chunking-form/samples/generated-code/reserved-names-as-props-false/_expected/amd/main.js b/test/chunking-form/samples/generated-code/reserved-names-as-props-false/_expected/amd/main.js index 5779adef5f3..25748951123 100644 --- a/test/chunking-form/samples/generated-code/reserved-names-as-props-false/_expected/amd/main.js +++ b/test/chunking-form/samples/generated-code/reserved-names-as-props-false/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './main2'], (function (exports, main2) { 'use strict'; exports.foo = main2["default"]; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/generated-code/reserved-names-as-props-false/_expected/cjs/main.js b/test/chunking-form/samples/generated-code/reserved-names-as-props-false/_expected/cjs/main.js index f14366b620b..92ccdef0867 100644 --- a/test/chunking-form/samples/generated-code/reserved-names-as-props-false/_expected/cjs/main.js +++ b/test/chunking-form/samples/generated-code/reserved-names-as-props-false/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./main2.js'); diff --git a/test/chunking-form/samples/generated-code/reserved-names-as-props-true/_expected/amd/main.js b/test/chunking-form/samples/generated-code/reserved-names-as-props-true/_expected/amd/main.js index 14123895ca1..22ced0f4756 100644 --- a/test/chunking-form/samples/generated-code/reserved-names-as-props-true/_expected/amd/main.js +++ b/test/chunking-form/samples/generated-code/reserved-names-as-props-true/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './main2'], (function (exports, main2) { 'use strict'; exports.foo = main2.default; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/generated-code/reserved-names-as-props-true/_expected/cjs/main.js b/test/chunking-form/samples/generated-code/reserved-names-as-props-true/_expected/cjs/main.js index 4a0da3bc26d..4bf51892080 100644 --- a/test/chunking-form/samples/generated-code/reserved-names-as-props-true/_expected/cjs/main.js +++ b/test/chunking-form/samples/generated-code/reserved-names-as-props-true/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./main2.js'); diff --git a/test/chunking-form/samples/implicit-dependencies/shared-dependency-no-side-effect/_expected/amd/main.js b/test/chunking-form/samples/implicit-dependencies/shared-dependency-no-side-effect/_expected/amd/main.js index 16ad2ab66a4..6fd637014ea 100644 --- a/test/chunking-form/samples/implicit-dependencies/shared-dependency-no-side-effect/_expected/amd/main.js +++ b/test/chunking-form/samples/implicit-dependencies/shared-dependency-no-side-effect/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/implicit-dependencies/shared-dependency-no-side-effect/_expected/cjs/main.js b/test/chunking-form/samples/implicit-dependencies/shared-dependency-no-side-effect/_expected/cjs/main.js index de59b01ec34..71c76a07cc0 100644 --- a/test/chunking-form/samples/implicit-dependencies/shared-dependency-no-side-effect/_expected/cjs/main.js +++ b/test/chunking-form/samples/implicit-dependencies/shared-dependency-no-side-effect/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 'foo'; exports.foo = foo; diff --git a/test/chunking-form/samples/implicit-dependencies/shared-dependency-reexport/_expected/amd/main.js b/test/chunking-form/samples/implicit-dependencies/shared-dependency-reexport/_expected/amd/main.js index 5609f28706f..069c69d1b48 100644 --- a/test/chunking-form/samples/implicit-dependencies/shared-dependency-reexport/_expected/amd/main.js +++ b/test/chunking-form/samples/implicit-dependencies/shared-dependency-reexport/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/implicit-dependencies/shared-dependency-reexport/_expected/cjs/main.js b/test/chunking-form/samples/implicit-dependencies/shared-dependency-reexport/_expected/cjs/main.js index 686f63da865..5c12b1c2f79 100644 --- a/test/chunking-form/samples/implicit-dependencies/shared-dependency-reexport/_expected/cjs/main.js +++ b/test/chunking-form/samples/implicit-dependencies/shared-dependency-reexport/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 'shared'; exports.foo = foo; diff --git a/test/chunking-form/samples/implicit-dependencies/single-dependency/_expected/amd/main.js b/test/chunking-form/samples/implicit-dependencies/single-dependency/_expected/amd/main.js index ba729f3515b..609c853c574 100644 --- a/test/chunking-form/samples/implicit-dependencies/single-dependency/_expected/amd/main.js +++ b/test/chunking-form/samples/implicit-dependencies/single-dependency/_expected/amd/main.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/implicit-dependencies/single-dependency/_expected/cjs/main.js b/test/chunking-form/samples/implicit-dependencies/single-dependency/_expected/cjs/main.js index 4677b07af09..a8d51732214 100644 --- a/test/chunking-form/samples/implicit-dependencies/single-dependency/_expected/cjs/main.js +++ b/test/chunking-form/samples/implicit-dependencies/single-dependency/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 42; console.log(value); diff --git a/test/chunking-form/samples/import-meta-url/_expected/amd/main.js b/test/chunking-form/samples/import-meta-url/_expected/amd/main.js index 26107772edc..97856a276bc 100644 --- a/test/chunking-form/samples/import-meta-url/_expected/amd/main.js +++ b/test/chunking-form/samples/import-meta-url/_expected/amd/main.js @@ -13,6 +13,4 @@ define(['module', 'require', 'exports'], (function (module, require, exports) { exports.log = log; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/import-meta-url/_expected/cjs/main.js b/test/chunking-form/samples/import-meta-url/_expected/cjs/main.js index 0713b95c0b4..1d0b5b83048 100644 --- a/test/chunking-form/samples/import-meta-url/_expected/cjs/main.js +++ b/test/chunking-form/samples/import-meta-url/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function log(url) { if (typeof document === 'undefined') { console.log(url); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/chained-dynamic-with-shared/_expected/amd/main.js b/test/chunking-form/samples/improved-dynamic-chunks/chained-dynamic-with-shared/_expected/amd/main.js index c2b32ef1887..08a469fe7a0 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/chained-dynamic-with-shared/_expected/amd/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/chained-dynamic-with-shared/_expected/amd/main.js @@ -6,6 +6,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.shared = shared; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/chained-dynamic-with-shared/_expected/cjs/main.js b/test/chunking-form/samples/improved-dynamic-chunks/chained-dynamic-with-shared/_expected/cjs/main.js index d90a9e09166..1526f9dd5a0 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/chained-dynamic-with-shared/_expected/cjs/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/chained-dynamic-with-shared/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const shared = 'shared'; Promise.resolve().then(function () { return require('./generated-dynamic1.js'); }); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-already-contained-1/_expected/amd/main.js b/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-already-contained-1/_expected/amd/main.js index 0d97999c4f2..e6637b66148 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-already-contained-1/_expected/amd/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-already-contained-1/_expected/amd/main.js @@ -24,6 +24,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-already-contained-1/_expected/cjs/main.js b/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-already-contained-1/_expected/cjs/main.js index cb766ee459d..4cc450416cd 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-already-contained-1/_expected/cjs/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-already-contained-1/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - Promise.resolve().then(function () { return main; }).then(console.log); console.log('dep1'); const value1 = 'dep1'; diff --git a/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-dynamic-multi-stage/_expected/amd/main.js b/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-dynamic-multi-stage/_expected/amd/main.js index aff018855fa..90307101cfa 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-dynamic-multi-stage/_expected/amd/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-dynamic-multi-stage/_expected/amd/main.js @@ -7,6 +7,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-dynamic-multi-stage/_expected/cjs/main.js b/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-dynamic-multi-stage/_expected/cjs/main.js index eed79993ff0..e547a8b0a6d 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-dynamic-multi-stage/_expected/cjs/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/dynamic-import-dynamic-multi-stage/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'shared'; console.log('dynamic1', value); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/amd/main1.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/amd/main1.js index 2e72a76c9d0..6332d864ba6 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/amd/main1.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/amd/main1.js @@ -7,6 +7,4 @@ define(['require', 'exports', './generated-from-main-1-and-dynamic', './generate exports.value2 = fromMain1And2.value2; exports.value3 = fromMain1And2.value3; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/amd/main2.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/amd/main2.js index bc2f6665325..7ac0888d98d 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/amd/main2.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/amd/main2.js @@ -6,6 +6,4 @@ define(['require', 'exports', './generated-from-main-1-and-2'], (function (requi exports.value2 = fromMain1And2.value2; exports.value3 = fromMain1And2.value3; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/cjs/main1.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/cjs/main1.js index 4d2113add8e..649a253a15e 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/cjs/main1.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var fromMain1AndDynamic = require('./generated-from-main-1-and-dynamic.js'); var fromMain1And2 = require('./generated-from-main-1-and-2.js'); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/cjs/main2.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/cjs/main2.js index af0a1590d26..fde80335cbe 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/cjs/main2.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-and-shared-dependencies/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var fromMain1And2 = require('./generated-from-main-1-and-2.js'); console.log('main2', fromMain1And2.value2, fromMain1And2.value3); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/amd/main1.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/amd/main1.js index 0f6831e92e0..208aca62975 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/amd/main1.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/amd/main1.js @@ -8,6 +8,4 @@ define(['require', 'exports', './generated-dep1', './generated-dep2'], (function exports.value1 = dep1.value1; exports.value2 = dep2.value2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/amd/main2.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/amd/main2.js index 5dfbe5e71c2..27a36093db2 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/amd/main2.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/amd/main2.js @@ -5,6 +5,4 @@ define(['require', 'exports', './generated-dep2'], (function (require, exports, exports.value2 = dep2.value2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/cjs/main1.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/cjs/main1.js index 3134e2d98eb..4d238a7c135 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/cjs/main1.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep1 = require('./generated-dep1.js'); var dep2 = require('./generated-dep2.js'); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/cjs/main2.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/cjs/main2.js index 782db267adf..ff0bde842e1 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/cjs/main2.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-different-dependencies/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep2 = require('./generated-dep2.js'); console.log('main2', dep2.value2); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/amd/main1.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/amd/main1.js index 1c6cbfe5814..cb1d05e77eb 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/amd/main1.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/amd/main1.js @@ -8,6 +8,4 @@ define(['require', 'exports', './generated-dep2'], (function (require, exports, exports.value2 = dep2.value2; exports.value1 = value1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/amd/main2.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/amd/main2.js index 2b7072da53e..fb1681eb43e 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/amd/main2.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/amd/main2.js @@ -5,6 +5,4 @@ define(['require', 'exports', './generated-dep2'], (function (require, exports, exports.value2 = dep2.value2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/cjs/main1.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/cjs/main1.js index 77a24bd8173..204a4307432 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/cjs/main1.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep2 = require('./generated-dep2.js'); const value1 = 'shared1'; diff --git a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/cjs/main2.js b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/cjs/main2.js index 86e101c64c8..2b88a744f0b 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/cjs/main2.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/multi-entry-partly-already-loaded-dynamic/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep2 = require('./generated-dep2.js'); console.log('main2', dep2.value2); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic-multiple-imports/_expected/amd/main.js b/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic-multiple-imports/_expected/amd/main.js index 36b7342f05f..7bcf0392fbe 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic-multiple-imports/_expected/amd/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic-multiple-imports/_expected/amd/main.js @@ -10,6 +10,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic-multiple-imports/_expected/cjs/main.js b/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic-multiple-imports/_expected/cjs/main.js index 70c72b3bb02..ca520ae599f 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic-multiple-imports/_expected/cjs/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic-multiple-imports/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'shared'; console.log('a', value); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic/_expected/amd/main.js b/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic/_expected/amd/main.js index 0035c3786e1..f279110b6b4 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic/_expected/amd/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic/_expected/amd/main.js @@ -7,6 +7,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic/_expected/cjs/main.js b/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic/_expected/cjs/main.js index 7d1b02e1eea..2f20576f18a 100644 --- a/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic/_expected/cjs/main.js +++ b/test/chunking-form/samples/improved-dynamic-chunks/single-dynamic/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'shared'; console.log('main', value); diff --git a/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/components/index.js b/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/components/index.js index 25cc1e39f2d..a03efcb5e7a 100644 --- a/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/components/index.js +++ b/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/components/index.js @@ -5,6 +5,4 @@ define(['exports', './sub/index'], (function (exports, index) { 'use strict'; exports.foo = index.foo; exports.baz = baz; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/main.js b/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/main.js index 03a4f176ca1..c17dc35d934 100644 --- a/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/main.js +++ b/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/amd/main.js @@ -5,6 +5,4 @@ define(['exports', './components/index', './components/sub/index'], (function (e exports.baz = index.baz; exports.foo = index$1.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/cjs/components/index.js b/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/cjs/components/index.js index 46429b712ad..c6e74030a5f 100644 --- a/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/cjs/components/index.js +++ b/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/cjs/components/index.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var index = require('./sub/index.js'); const baz = { bar: index.default }; diff --git a/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/cjs/main.js b/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/cjs/main.js index e8c88da6582..6bcd93609e4 100644 --- a/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/cjs/main.js +++ b/test/chunking-form/samples/indirect-reexports-preserve-modules/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var index = require('./components/index.js'); var index$1 = require('./components/sub/index.js'); diff --git a/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/amd/main2.js b/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/amd/main2.js index ca9c827728d..0c42189302d 100644 --- a/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/amd/main2.js +++ b/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/amd/main2.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.reexported = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/cjs/main2.js b/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/cjs/main2.js index f7d33362bcc..58617370ca4 100644 --- a/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/cjs/main2.js +++ b/test/chunking-form/samples/manual-chunk-avoid-facade/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 42; console.log('main2', value); diff --git a/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/amd/main.js b/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/amd/main.js index 9077cbb0e1f..0dce9285fd6 100644 --- a/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/amd/main.js +++ b/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/cjs/main.js b/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/cjs/main.js index 5da9ebd5132..fe59aaab6b9 100644 --- a/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/cjs/main.js +++ b/test/chunking-form/samples/manual-chunk-contains-entry-conflict/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log('dep'); console.log('main'); diff --git a/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/amd/main.js b/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/amd/main.js index 9077cbb0e1f..0dce9285fd6 100644 --- a/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/amd/main.js +++ b/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/cjs/main.js b/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/cjs/main.js index 5da9ebd5132..fe59aaab6b9 100644 --- a/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/cjs/main.js +++ b/test/chunking-form/samples/manual-chunk-contains-entry-match/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log('dep'); console.log('main'); diff --git a/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/amd/main.js b/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/amd/main.js index 9077cbb0e1f..0dce9285fd6 100644 --- a/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/amd/main.js +++ b/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/cjs/main.js b/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/cjs/main.js index 5da9ebd5132..fe59aaab6b9 100644 --- a/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/cjs/main.js +++ b/test/chunking-form/samples/manual-chunk-is-entry-conflict/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log('dep'); console.log('main'); diff --git a/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/amd/main.js b/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/amd/main.js index 9077cbb0e1f..0dce9285fd6 100644 --- a/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/amd/main.js +++ b/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/cjs/main.js b/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/cjs/main.js index 5da9ebd5132..fe59aaab6b9 100644 --- a/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/cjs/main.js +++ b/test/chunking-form/samples/manual-chunk-is-entry-match/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log('dep'); console.log('main'); diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/1.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/1.js index e22765045cc..d17df8438e0 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/1.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/1.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.x1 = x1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/2.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/2.js index 0018c038f7b..12aef8ef5da 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/2.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/2.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.x2 = x2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/3.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/3.js index 6f9fd129364..79e3ea0bf2a 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/3.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/3.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.x3 = x3; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/4.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/4.js index 53152abbb6b..d81dcbbc35a 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/4.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/4.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.x4 = x4; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/5.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/5.js index 23c4447f099..5578006da1f 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/5.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/5.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.x5 = x5; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/main.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/main.js index 3c7ff656f2a..958c6a79b82 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/main.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['exports', './1', './2', './3', './4', './5'], (function (exports, _1, _ exports.x4 = _4.x4; exports.x5 = _5.x5; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/1.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/1.js index 6f07f500e85..5e709389809 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/1.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const x1 = 1; exports.x1 = x1; diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/2.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/2.js index b497b79cafa..0bff1b9044e 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/2.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const x2 = 2; exports.x2 = x2; diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/3.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/3.js index 4e662215ed1..cc7401957bb 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/3.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/3.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const x3 = 3; exports.x3 = x3; diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/4.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/4.js index fb8fcf8e9c7..b0a26d49675 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/4.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/4.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const x4 = 4; exports.x4 = x4; diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/5.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/5.js index 3000d97261f..b2a5c8b24ea 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/5.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/5.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const x5 = 5; exports.x5 = x5; diff --git a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/main.js b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/main.js index a1149dc2a55..f3acc7bcdbf 100644 --- a/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/main.js +++ b/test/chunking-form/samples/max-parallel-file-operations/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var _1 = require('./1.js'); var _2 = require('./2.js'); var _3 = require('./3.js'); diff --git a/test/chunking-form/samples/missing-export-compact/_expected/amd/dep.js b/test/chunking-form/samples/missing-export-compact/_expected/amd/dep.js index c6c8e6f3d37..88127064eb5 100644 --- a/test/chunking-form/samples/missing-export-compact/_expected/amd/dep.js +++ b/test/chunking-form/samples/missing-export-compact/_expected/amd/dep.js @@ -1,3 +1,3 @@ define(['exports'],(function(exports){'use strict';var _missingExportShim=void 0;function x (arg) { sideEffect(arg); -}exports.missingExport=_missingExportShim;exports.missingFn=_missingExportShim;exports.x=x;Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +}exports.missingExport=_missingExportShim;exports.missingFn=_missingExportShim;exports.x=x;})); \ No newline at end of file diff --git a/test/chunking-form/samples/missing-export-compact/_expected/cjs/dep.js b/test/chunking-form/samples/missing-export-compact/_expected/cjs/dep.js index 7dba4c72167..3ba21254500 100644 --- a/test/chunking-form/samples/missing-export-compact/_expected/cjs/dep.js +++ b/test/chunking-form/samples/missing-export-compact/_expected/cjs/dep.js @@ -1,3 +1,3 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});var _missingExportShim=void 0;function x (arg) { +'use strict';var _missingExportShim=void 0;function x (arg) { sideEffect(arg); }exports.missingExport=_missingExportShim;exports.missingFn=_missingExportShim;exports.x=x; \ No newline at end of file diff --git a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/amd/dep1.js b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/amd/dep1.js index 3c213e8b5a6..1ebb9552c37 100644 --- a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/amd/dep1.js +++ b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/amd/dep1.js @@ -14,6 +14,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.missing1 = _missingExportShim; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/amd/dep2.js b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/amd/dep2.js index e22f7bd7c3e..94c9d52cf2c 100644 --- a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/amd/dep2.js +++ b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/amd/dep2.js @@ -11,6 +11,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.missing2 = _missingExportShim; exports.previousShimmedExport = _missingExportShim$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/cjs/dep1.js b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/cjs/dep1.js index 58c566f2849..a024bcd6f7f 100644 --- a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/cjs/dep1.js +++ b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/cjs/dep1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var _missingExportShim = void 0; console.log('This is the output when a missing export is used internally but not reexported'); diff --git a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/cjs/dep2.js b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/cjs/dep2.js index 8a01d991453..f411ae56976 100644 --- a/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/cjs/dep2.js +++ b/test/chunking-form/samples/missing-export-reused-deconflicting/_expected/cjs/dep2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var _missingExportShim = void 0; console.log('This is the output when a missing export is reexported'); diff --git a/test/chunking-form/samples/multiple-entry-points/_expected/amd/other.js b/test/chunking-form/samples/multiple-entry-points/_expected/amd/other.js index 2d51b556b06..d53c6b95fe7 100644 --- a/test/chunking-form/samples/multiple-entry-points/_expected/amd/other.js +++ b/test/chunking-form/samples/multiple-entry-points/_expected/amd/other.js @@ -4,6 +4,4 @@ define(['exports', './chunks/shared'], (function (exports, shared) { 'use strict exports.sharedValue = shared.sharedValue; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/multiple-entry-points/_expected/cjs/other.js b/test/chunking-form/samples/multiple-entry-points/_expected/cjs/other.js index 40cf77c3578..3239bae8072 100644 --- a/test/chunking-form/samples/multiple-entry-points/_expected/cjs/other.js +++ b/test/chunking-form/samples/multiple-entry-points/_expected/cjs/other.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var shared = require('./chunks/shared.js'); diff --git a/test/chunking-form/samples/namespace-imports-from-chunks/_expected/amd/main1.js b/test/chunking-form/samples/namespace-imports-from-chunks/_expected/amd/main1.js index f72310a337f..7d5df252b9d 100644 --- a/test/chunking-form/samples/namespace-imports-from-chunks/_expected/amd/main1.js +++ b/test/chunking-form/samples/namespace-imports-from-chunks/_expected/amd/main1.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.p = p; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/namespace-imports-from-chunks/_expected/cjs/main1.js b/test/chunking-form/samples/namespace-imports-from-chunks/_expected/cjs/main1.js index 64b0a704dde..eb9a14fc40b 100644 --- a/test/chunking-form/samples/namespace-imports-from-chunks/_expected/cjs/main1.js +++ b/test/chunking-form/samples/namespace-imports-from-chunks/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var p = 42; exports.p = p; diff --git a/test/chunking-form/samples/namespace-object-import/_expected/amd/main2.js b/test/chunking-form/samples/namespace-object-import/_expected/amd/main2.js index 6db8489eedf..6d7842ba8d4 100644 --- a/test/chunking-form/samples/namespace-object-import/_expected/amd/main2.js +++ b/test/chunking-form/samples/namespace-object-import/_expected/amd/main2.js @@ -5,6 +5,4 @@ define(['exports', './generated-main2'], (function (exports, main2) { 'use stric exports.a = main2.a; exports.b = main2.b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/namespace-object-import/_expected/cjs/main2.js b/test/chunking-form/samples/namespace-object-import/_expected/cjs/main2.js index 688bfd2c811..473d5bd10b2 100644 --- a/test/chunking-form/samples/namespace-object-import/_expected/cjs/main2.js +++ b/test/chunking-form/samples/namespace-object-import/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main2 = require('./generated-main2.js'); diff --git a/test/chunking-form/samples/namespace-reexports/_expected/amd/index.js b/test/chunking-form/samples/namespace-reexports/_expected/amd/index.js index b24f601c22c..8da4a0f9746 100644 --- a/test/chunking-form/samples/namespace-reexports/_expected/amd/index.js +++ b/test/chunking-form/samples/namespace-reexports/_expected/amd/index.js @@ -4,6 +4,4 @@ define(['exports', './hsl2hsv', './generated-index'], (function (exports, hsl2hs exports.hsl2hsv = hsl2hsv.default; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/namespace-reexports/_expected/cjs/index.js b/test/chunking-form/samples/namespace-reexports/_expected/cjs/index.js index c2a0180929c..1249fe336ad 100644 --- a/test/chunking-form/samples/namespace-reexports/_expected/cjs/index.js +++ b/test/chunking-form/samples/namespace-reexports/_expected/cjs/index.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var hsl2hsv = require('./hsl2hsv.js'); require('./generated-index.js'); diff --git a/test/chunking-form/samples/preserve-entry-signatures/allow-extension/_expected/amd/main.js b/test/chunking-form/samples/preserve-entry-signatures/allow-extension/_expected/amd/main.js index 29b06bc0d51..7de2080ff71 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/allow-extension/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/allow-extension/_expected/amd/main.js @@ -11,6 +11,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.shared = shared; exports.unused = unused; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/allow-extension/_expected/cjs/main.js b/test/chunking-form/samples/preserve-entry-signatures/allow-extension/_expected/cjs/main.js index 896c5006615..637f70585c5 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/allow-extension/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/allow-extension/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const shared = 'shared'; const unused = 'unused'; diff --git a/test/chunking-form/samples/preserve-entry-signatures/exports-only-no-exports/_expected/amd/main.js b/test/chunking-form/samples/preserve-entry-signatures/exports-only-no-exports/_expected/amd/main.js index 316c925cb04..cd6807e1b06 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/exports-only-no-exports/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/exports-only-no-exports/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.shared = shared; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/exports-only-no-exports/_expected/cjs/main.js b/test/chunking-form/samples/preserve-entry-signatures/exports-only-no-exports/_expected/cjs/main.js index 9b8458335f7..90c998ec33b 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/exports-only-no-exports/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/exports-only-no-exports/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const shared = 'shared'; Promise.resolve().then(function () { return require('./generated-dynamic.js'); }); diff --git a/test/chunking-form/samples/preserve-entry-signatures/exports-only/_expected/amd/main.js b/test/chunking-form/samples/preserve-entry-signatures/exports-only/_expected/amd/main.js index b2dd693821c..eb2d7c46ed3 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/exports-only/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/exports-only/_expected/amd/main.js @@ -5,6 +5,4 @@ define(['exports', './generated-main'], (function (exports, main) { 'use strict' exports.dynamic = main.dynamic; exports.unused = main.unused; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/exports-only/_expected/cjs/main.js b/test/chunking-form/samples/preserve-entry-signatures/exports-only/_expected/cjs/main.js index 85dcc48bca5..48b0c5d8247 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/exports-only/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/exports-only/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main = require('./generated-main.js'); diff --git a/test/chunking-form/samples/preserve-entry-signatures/false/_expected/amd/main.js b/test/chunking-form/samples/preserve-entry-signatures/false/_expected/amd/main.js index 316c925cb04..cd6807e1b06 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/false/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/false/_expected/amd/main.js @@ -8,6 +8,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.shared = shared; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/false/_expected/cjs/main.js b/test/chunking-form/samples/preserve-entry-signatures/false/_expected/cjs/main.js index 9b8458335f7..90c998ec33b 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/false/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/false/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const shared = 'shared'; Promise.resolve().then(function () { return require('./generated-dynamic.js'); }); diff --git a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-allow-extension.js b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-allow-extension.js index d730d436836..2eb0839b29b 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-allow-extension.js +++ b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-allow-extension.js @@ -9,6 +9,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.shared = shared; exports.unused = unused; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-false.js b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-false.js index 1727b442b8b..7fcf256410f 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-false.js +++ b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-false.js @@ -7,6 +7,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.shared = shared; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-not-specified.js b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-not-specified.js index 5e1bbde2976..bc3999b11e6 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-not-specified.js +++ b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-not-specified.js @@ -9,6 +9,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.shared = shared; exports.unused = unused; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-strict.js b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-strict.js index c2fcdba5861..52495b70f4d 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-strict.js +++ b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/amd/generated-strict.js @@ -4,6 +4,4 @@ define(['exports', './generated-main'], (function (exports, strict) { 'use stric exports.unused = strict.unused; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-allow-extension.js b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-allow-extension.js index 09e16f7d592..4e1da50883f 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-allow-extension.js +++ b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-allow-extension.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const shared = 'shared'; console.log(shared); diff --git a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-false.js b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-false.js index 1d3c3154aad..ff45728699a 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-false.js +++ b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-false.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const shared = 'shared'; console.log(shared); diff --git a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-not-specified.js b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-not-specified.js index a54ad55bd99..dfd2786741d 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-not-specified.js +++ b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-not-specified.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const shared = 'shared'; console.log(shared); diff --git a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-strict.js b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-strict.js index bc762b95755..564f9fdbe94 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-strict.js +++ b/test/chunking-form/samples/preserve-entry-signatures/override-via-plugin/_expected/cjs/generated-strict.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var strict = require('./generated-main.js'); diff --git a/test/chunking-form/samples/preserve-entry-signatures/strict/_expected/amd/main.js b/test/chunking-form/samples/preserve-entry-signatures/strict/_expected/amd/main.js index b2dd693821c..eb2d7c46ed3 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/strict/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/strict/_expected/amd/main.js @@ -5,6 +5,4 @@ define(['exports', './generated-main'], (function (exports, main) { 'use strict' exports.dynamic = main.dynamic; exports.unused = main.unused; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-entry-signatures/strict/_expected/cjs/main.js b/test/chunking-form/samples/preserve-entry-signatures/strict/_expected/cjs/main.js index 85dcc48bca5..48b0c5d8247 100644 --- a/test/chunking-form/samples/preserve-entry-signatures/strict/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-entry-signatures/strict/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main = require('./generated-main.js'); diff --git a/test/chunking-form/samples/preserve-modules-auto-export-mode/_expected/amd/named.js b/test/chunking-form/samples/preserve-modules-auto-export-mode/_expected/amd/named.js index 1afc6d3f7b8..2896dcf1065 100644 --- a/test/chunking-form/samples/preserve-modules-auto-export-mode/_expected/amd/named.js +++ b/test/chunking-form/samples/preserve-modules-auto-export-mode/_expected/amd/named.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-auto-export-mode/_expected/cjs/named.js b/test/chunking-form/samples/preserve-modules-auto-export-mode/_expected/cjs/named.js index 491f8569447..ec20bc0d7ff 100644 --- a/test/chunking-form/samples/preserve-modules-auto-export-mode/_expected/cjs/named.js +++ b/test/chunking-form/samples/preserve-modules-auto-export-mode/_expected/cjs/named.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'named'; exports.value = value; diff --git a/test/chunking-form/samples/preserve-modules-commonjs/_expected/amd/_virtual/other.js b/test/chunking-form/samples/preserve-modules-commonjs/_expected/amd/_virtual/other.js index 4ded5921f4d..ab90c1d68e7 100644 --- a/test/chunking-form/samples/preserve-modules-commonjs/_expected/amd/_virtual/other.js +++ b/test/chunking-form/samples/preserve-modules-commonjs/_expected/amd/_virtual/other.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.__exports = other; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-commonjs/_expected/cjs/_virtual/other.js b/test/chunking-form/samples/preserve-modules-commonjs/_expected/cjs/_virtual/other.js index bc3ca602c7c..6569c1d2a46 100644 --- a/test/chunking-form/samples/preserve-modules-commonjs/_expected/cjs/_virtual/other.js +++ b/test/chunking-form/samples/preserve-modules-commonjs/_expected/cjs/_virtual/other.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var other = {}; exports.__exports = other; diff --git a/test/chunking-form/samples/preserve-modules-default-mode-namespace/_expected/amd/main.js b/test/chunking-form/samples/preserve-modules-default-mode-namespace/_expected/amd/main.js index 5b33bd51aa0..523aba257a4 100644 --- a/test/chunking-form/samples/preserve-modules-default-mode-namespace/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-modules-default-mode-namespace/_expected/amd/main.js @@ -9,6 +9,4 @@ define(['require', 'exports', './lib'], (function (require, exports, lib) { 'use exports.lib = lib__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-default-mode-namespace/_expected/cjs/main.js b/test/chunking-form/samples/preserve-modules-default-mode-namespace/_expected/cjs/main.js index 5b2984073cd..31a192f780e 100644 --- a/test/chunking-form/samples/preserve-modules-default-mode-namespace/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-modules-default-mode-namespace/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib = require('./lib.js'); function _interopNamespaceDefaultOnly (e) { return Object.freeze({ __proto__: null, default: e }); } diff --git a/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/amd/dynamic-included.js b/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/amd/dynamic-included.js index b32da5f0cc8..19414d6fd6d 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/amd/dynamic-included.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/amd/dynamic-included.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/cjs/dynamic-included.js b/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/cjs/dynamic-included.js index 2c8d642e303..7ce0b0473fe 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/cjs/dynamic-included.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-imports/_expected/cjs/dynamic-included.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'included'; exports.value = value; diff --git a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/amd/m1.js b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/amd/m1.js index 1933cc959ba..f5475ebcc07 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/amd/m1.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/amd/m1.js @@ -5,6 +5,4 @@ define(['exports', './m2', './m3'], (function (exports, m2, m3) { 'use strict'; exports.m2 = m2; exports.m3 = m3; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/cjs/m1.js b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/cjs/m1.js index 2dcf78656c6..bd9f1e27347 100644 --- a/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/cjs/m1.js +++ b/test/chunking-form/samples/preserve-modules-dynamic-namespace/_expected/cjs/m1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var m2 = require('./m2.js'); var m3 = require('./m3.js'); diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/dep.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/dep.js index 3c6da13690d..42ccc5f1207 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/dep.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/dep.js @@ -5,6 +5,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.bar = foo; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/main1.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/main1.js index 6a9c4156910..a9086d328ff 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/main1.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/main1.js @@ -5,6 +5,4 @@ define(['exports', './dep'], (function (exports, dep) { 'use strict'; exports.bar = dep.foo; exports.foo = dep.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/main2.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/main2.js index 518837a6cba..43cad3604ac 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/main2.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/amd/main2.js @@ -4,6 +4,4 @@ define(['exports', './dep'], (function (exports, dep) { 'use strict'; exports.bar = dep.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/dep.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/dep.js index 7bf4532c451..ce2fd9a6532 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/dep.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/dep.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 1; exports.bar = foo; diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/main1.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/main1.js index 801c4e75c53..f9483644b72 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/main1.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = require('./dep.js'); diff --git a/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/main2.js b/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/main2.js index 1c1f62cd337..68babfaabf9 100644 --- a/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/main2.js +++ b/test/chunking-form/samples/preserve-modules-export-alias/_expected/cjs/main2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = require('./dep.js'); diff --git a/test/chunking-form/samples/preserve-modules-filename-pattern/_expected/amd/main-amd-51321eb1.js b/test/chunking-form/samples/preserve-modules-filename-pattern/_expected/amd/main-amd-c6b04a3d.js similarity index 87% rename from test/chunking-form/samples/preserve-modules-filename-pattern/_expected/amd/main-amd-51321eb1.js rename to test/chunking-form/samples/preserve-modules-filename-pattern/_expected/amd/main-amd-c6b04a3d.js index c9c83013097..55eaa129472 100644 --- a/test/chunking-form/samples/preserve-modules-filename-pattern/_expected/amd/main-amd-51321eb1.js +++ b/test/chunking-form/samples/preserve-modules-filename-pattern/_expected/amd/main-amd-c6b04a3d.js @@ -12,6 +12,4 @@ define(['exports', './nested/a-amd-5dc7856c', './b.str-amd-f73e15b9', './c-amd-c exports.h = h; exports.x = noExt; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-filename-pattern/_expected/cjs/main-cjs-92cd000c.js b/test/chunking-form/samples/preserve-modules-filename-pattern/_expected/cjs/main-cjs-7c9c9af9.js similarity index 89% rename from test/chunking-form/samples/preserve-modules-filename-pattern/_expected/cjs/main-cjs-92cd000c.js rename to test/chunking-form/samples/preserve-modules-filename-pattern/_expected/cjs/main-cjs-7c9c9af9.js index b1dea40f98f..89e6a423970 100644 --- a/test/chunking-form/samples/preserve-modules-filename-pattern/_expected/cjs/main-cjs-92cd000c.js +++ b/test/chunking-form/samples/preserve-modules-filename-pattern/_expected/cjs/main-cjs-7c9c9af9.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var a = require('./nested/a-cjs-80f9b8c3.js'); var b = require('./b.str-cjs-6703f3b2.js'); var c = require('./c-cjs-71ac0098.js'); diff --git a/test/chunking-form/samples/preserve-modules-named-export-mode/_expected/amd/named.js b/test/chunking-form/samples/preserve-modules-named-export-mode/_expected/amd/named.js index 1afc6d3f7b8..2896dcf1065 100644 --- a/test/chunking-form/samples/preserve-modules-named-export-mode/_expected/amd/named.js +++ b/test/chunking-form/samples/preserve-modules-named-export-mode/_expected/amd/named.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-named-export-mode/_expected/cjs/named.js b/test/chunking-form/samples/preserve-modules-named-export-mode/_expected/cjs/named.js index 491f8569447..ec20bc0d7ff 100644 --- a/test/chunking-form/samples/preserve-modules-named-export-mode/_expected/cjs/named.js +++ b/test/chunking-form/samples/preserve-modules-named-export-mode/_expected/cjs/named.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 'named'; exports.value = value; diff --git a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/main.js b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/main.js index 7b07b87a9e6..0a1b6a12cba 100644 --- a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/main.js @@ -5,6 +5,4 @@ define(['exports', './module-a/v1/index', './module-b/v1/index'], (function (exp exports.ModuleA_V1 = index; exports.ModuleB_V1 = index$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/module-a/v1/index.js b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/module-a/v1/index.js index 315abd02795..6b677084b74 100644 --- a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/module-a/v1/index.js +++ b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/module-a/v1/index.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.TEST_MODULE_A = TEST_MODULE_A; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/module-b/v1/index.js b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/module-b/v1/index.js index dfd4f52cf95..5d1b35b6a7e 100644 --- a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/module-b/v1/index.js +++ b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/amd/module-b/v1/index.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.TEST_MODULE_B = TEST_MODULE_B; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/main.js b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/main.js index 632ce47b9ae..85ed071a23c 100644 --- a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var index = require('./module-a/v1/index.js'); var index$1 = require('./module-b/v1/index.js'); diff --git a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/module-a/v1/index.js b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/module-a/v1/index.js index a8ab4802133..6f57cdac859 100644 --- a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/module-a/v1/index.js +++ b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/module-a/v1/index.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const TEST_MODULE_A = 'A'; exports.TEST_MODULE_A = TEST_MODULE_A; diff --git a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/module-b/v1/index.js b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/module-b/v1/index.js index 2c2b23c7d63..99cce36ed4d 100644 --- a/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/module-b/v1/index.js +++ b/test/chunking-form/samples/preserve-modules-nested-barrel-es-export/_expected/cjs/module-b/v1/index.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const TEST_MODULE_B = 'A'; exports.TEST_MODULE_B = TEST_MODULE_B; diff --git a/test/chunking-form/samples/preserve-modules-nested-export/_expected/amd/inner/more_inner/something.js b/test/chunking-form/samples/preserve-modules-nested-export/_expected/amd/inner/more_inner/something.js index 8f479d12f01..9e690e2c1a8 100644 --- a/test/chunking-form/samples/preserve-modules-nested-export/_expected/amd/inner/more_inner/something.js +++ b/test/chunking-form/samples/preserve-modules-nested-export/_expected/amd/inner/more_inner/something.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.Something = Something; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-nested-export/_expected/amd/main.js b/test/chunking-form/samples/preserve-modules-nested-export/_expected/amd/main.js index 48856b23109..8519607224b 100644 --- a/test/chunking-form/samples/preserve-modules-nested-export/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-modules-nested-export/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './inner/more_inner/something', './inner/some_effect'], (func exports.Something = something.Something; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-nested-export/_expected/cjs/inner/more_inner/something.js b/test/chunking-form/samples/preserve-modules-nested-export/_expected/cjs/inner/more_inner/something.js index 32f3040b7c0..12aa3ba79a7 100644 --- a/test/chunking-form/samples/preserve-modules-nested-export/_expected/cjs/inner/more_inner/something.js +++ b/test/chunking-form/samples/preserve-modules-nested-export/_expected/cjs/inner/more_inner/something.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const Something = 'Hello World'; exports.Something = Something; diff --git a/test/chunking-form/samples/preserve-modules-nested-export/_expected/cjs/main.js b/test/chunking-form/samples/preserve-modules-nested-export/_expected/cjs/main.js index ffa1d0bc5bb..affdcc85a46 100644 --- a/test/chunking-form/samples/preserve-modules-nested-export/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-modules-nested-export/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var something = require('./inner/more_inner/something.js'); require('./inner/some_effect.js'); diff --git a/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/amd/dep.js b/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/amd/dep.js index 075d3efdd11..e919531b930 100644 --- a/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/amd/dep.js +++ b/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/amd/dep.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/cjs/dep.js b/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/cjs/dep.js index b67a1e41d97..119bca3ddc7 100644 --- a/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/cjs/dep.js +++ b/test/chunking-form/samples/preserve-modules-reaching-outside/_expected/cjs/dep.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function fn () { console.log('dep fn'); } diff --git a/test/chunking-form/samples/preserve-modules-root/_expected/amd/_virtual/index.js b/test/chunking-form/samples/preserve-modules-root/_expected/amd/_virtual/index.js index 1a20725899e..de1c8bfd4b5 100644 --- a/test/chunking-form/samples/preserve-modules-root/_expected/amd/_virtual/index.js +++ b/test/chunking-form/samples/preserve-modules-root/_expected/amd/_virtual/index.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.__exports = myBasePkg; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-root/_expected/cjs/_virtual/index.js b/test/chunking-form/samples/preserve-modules-root/_expected/cjs/_virtual/index.js index ad613c469e5..a63ab9198a2 100644 --- a/test/chunking-form/samples/preserve-modules-root/_expected/cjs/_virtual/index.js +++ b/test/chunking-form/samples/preserve-modules-root/_expected/cjs/_virtual/index.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var myBasePkg = {}; exports.__exports = myBasePkg; diff --git a/test/chunking-form/samples/preserve-modules-scriptified-assets/_expected/amd/main.js b/test/chunking-form/samples/preserve-modules-scriptified-assets/_expected/amd/main.js index 75f282a2bc1..11b93e1cea6 100644 --- a/test/chunking-form/samples/preserve-modules-scriptified-assets/_expected/amd/main.js +++ b/test/chunking-form/samples/preserve-modules-scriptified-assets/_expected/amd/main.js @@ -6,6 +6,4 @@ define(['exports', './answer.num', './lorem.str', './no-ext'], (function (export exports.lorem = lorem; exports.noExt = noExt; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-scriptified-assets/_expected/cjs/main.js b/test/chunking-form/samples/preserve-modules-scriptified-assets/_expected/cjs/main.js index 0c13700934e..463a11a27e6 100644 --- a/test/chunking-form/samples/preserve-modules-scriptified-assets/_expected/cjs/main.js +++ b/test/chunking-form/samples/preserve-modules-scriptified-assets/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var answer = require('./answer.num.js'); var lorem = require('./lorem.str.js'); var noExt = require('./no-ext.js'); diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualModule-amd-4e388e40.mjs b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualModule-amd-03552e5c.mjs similarity index 65% rename from test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualModule-amd-4e388e40.mjs rename to test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualModule-amd-03552e5c.mjs index ce212753ac0..dc4e209f365 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualModule-amd-4e388e40.mjs +++ b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualModule-amd-03552e5c.mjs @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.virtual = virtual; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithAssetExt.str-amd-4deed186.mjs b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithAssetExt.str-amd-724c602d.mjs similarity index 65% rename from test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithAssetExt.str-amd-4deed186.mjs rename to test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithAssetExt.str-amd-724c602d.mjs index 41ae4d0466c..9884d224922 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithAssetExt.str-amd-4deed186.mjs +++ b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithAssetExt.str-amd-724c602d.mjs @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.virtual3 = virtual3; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithExt-amd-41e5e75e.mjs b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithExt-amd-e9dc1b7e.mjs similarity index 65% rename from test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithExt-amd-41e5e75e.mjs rename to test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithExt-amd-e9dc1b7e.mjs index b59abe59669..93ea3381bfa 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithExt-amd-41e5e75e.mjs +++ b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/_virtual/_virtualWithExt-amd-e9dc1b7e.mjs @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.virtual2 = virtual2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/main-amd-eb6187f3.mjs b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/main-amd-7efb1bed.mjs similarity index 53% rename from test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/main-amd-eb6187f3.mjs rename to test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/main-amd-7efb1bed.mjs index 8b67d09757f..05b7abceb0f 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/main-amd-eb6187f3.mjs +++ b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/amd/main-amd-7efb1bed.mjs @@ -1,4 +1,4 @@ -define(['./_virtual/_virtualModule-amd-4e388e40.mjs', './_virtual/_virtualWithExt-amd-41e5e75e.mjs', './_virtual/_virtualWithAssetExt.str-amd-4deed186.mjs'], (function (_virtualModule, _virtualWithExt, _virtualWithAssetExt) { 'use strict'; +define(['./_virtual/_virtualModule-amd-03552e5c.mjs', './_virtual/_virtualWithExt-amd-e9dc1b7e.mjs', './_virtual/_virtualWithAssetExt.str-amd-724c602d.mjs'], (function (_virtualModule, _virtualWithExt, _virtualWithAssetExt) { 'use strict'; assert.equal(_virtualModule.virtual, 'Virtual!'); assert.equal(_virtualWithExt.virtual2, 'Virtual2!'); diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualModule-cjs-650c7f9a.mjs b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualModule-cjs-bbe1ad5e.mjs similarity index 52% rename from test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualModule-cjs-650c7f9a.mjs rename to test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualModule-cjs-bbe1ad5e.mjs index 3b40ebf67c2..266f8b02432 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualModule-cjs-650c7f9a.mjs +++ b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualModule-cjs-bbe1ad5e.mjs @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const virtual = "Virtual!"; exports.virtual = virtual; diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithAssetExt.str-cjs-63fd96f4.mjs b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithAssetExt.str-cjs-0e561611.mjs similarity index 53% rename from test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithAssetExt.str-cjs-63fd96f4.mjs rename to test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithAssetExt.str-cjs-0e561611.mjs index 1be612fa656..86d86076aa7 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithAssetExt.str-cjs-63fd96f4.mjs +++ b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithAssetExt.str-cjs-0e561611.mjs @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const virtual3 = "Virtual3!"; exports.virtual3 = virtual3; diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithExt-cjs-c612470d.mjs b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithExt-cjs-b148ca33.mjs similarity index 53% rename from test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithExt-cjs-c612470d.mjs rename to test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithExt-cjs-b148ca33.mjs index 6c1f17fcbe4..97d09a41ce6 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithExt-cjs-c612470d.mjs +++ b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/_virtual/_virtualWithExt-cjs-b148ca33.mjs @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const virtual2 = "Virtual2!"; exports.virtual2 = virtual2; diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/main-cjs-d0c7e6cf.mjs b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/main-cjs-f7b1940b.mjs similarity index 56% rename from test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/main-cjs-d0c7e6cf.mjs rename to test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/main-cjs-f7b1940b.mjs index 17c1d84ef96..7246a157d47 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/main-cjs-d0c7e6cf.mjs +++ b/test/chunking-form/samples/preserve-modules-virtual-modules-filename-pattern/_expected/cjs/main-cjs-f7b1940b.mjs @@ -1,8 +1,8 @@ 'use strict'; -var _virtualModule = require('./_virtual/_virtualModule-cjs-650c7f9a.mjs'); -var _virtualWithExt = require('./_virtual/_virtualWithExt-cjs-c612470d.mjs'); -var _virtualWithAssetExt = require('./_virtual/_virtualWithAssetExt.str-cjs-63fd96f4.mjs'); +var _virtualModule = require('./_virtual/_virtualModule-cjs-bbe1ad5e.mjs'); +var _virtualWithExt = require('./_virtual/_virtualWithExt-cjs-b148ca33.mjs'); +var _virtualWithAssetExt = require('./_virtual/_virtualWithAssetExt.str-cjs-0e561611.mjs'); assert.equal(_virtualModule.virtual, 'Virtual!'); assert.equal(_virtualWithExt.virtual2, 'Virtual2!'); diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/amd/_virtual/_virtualModule.js b/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/amd/_virtual/_virtualModule.js index ce212753ac0..dc4e209f365 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/amd/_virtual/_virtualModule.js +++ b/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/amd/_virtual/_virtualModule.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.virtual = virtual; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/cjs/_virtual/_virtualModule.js b/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/cjs/_virtual/_virtualModule.js index 3b40ebf67c2..266f8b02432 100644 --- a/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/cjs/_virtual/_virtualModule.js +++ b/test/chunking-form/samples/preserve-modules-virtual-modules/_expected/cjs/_virtual/_virtualModule.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const virtual = "Virtual!"; exports.virtual = virtual; diff --git a/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep1.js b/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep1.js index 9e70a0993ae..59783d02d35 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep1.js +++ b/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep1.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep2.js b/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep2.js index adf251cb993..2ab2557abf3 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep2.js +++ b/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep2.js @@ -7,6 +7,4 @@ define(['exports', '../lib/lib2'], (function (exports, lib2) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep3.js b/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep3.js index 5e20b792948..3b871ce769d 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep3.js +++ b/test/chunking-form/samples/preserve-modules/_expected/amd/deps/dep3.js @@ -7,6 +7,4 @@ define(['exports', '../lib/lib1'], (function (exports, lib1) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules/_expected/amd/lib/lib1.js b/test/chunking-form/samples/preserve-modules/_expected/amd/lib/lib1.js index aa9fbe18f60..6d846653cf3 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/amd/lib/lib1.js +++ b/test/chunking-form/samples/preserve-modules/_expected/amd/lib/lib1.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules/_expected/amd/lib/lib2.js b/test/chunking-form/samples/preserve-modules/_expected/amd/lib/lib2.js index d05a867696b..be6d55fa49d 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/amd/lib/lib2.js +++ b/test/chunking-form/samples/preserve-modules/_expected/amd/lib/lib2.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.fn = fn; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep1.js b/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep1.js index 94bfa086430..5d2f022faa9 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep1.js +++ b/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function fn () { console.log('dep1 fn'); } diff --git a/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep2.js b/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep2.js index a9f8fb62635..1c35a7c280c 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep2.js +++ b/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib2 = require('../lib/lib2.js'); function fn () { diff --git a/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep3.js b/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep3.js index eb901c61adc..9459cf55dea 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep3.js +++ b/test/chunking-form/samples/preserve-modules/_expected/cjs/deps/dep3.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib1 = require('../lib/lib1.js'); function fn () { diff --git a/test/chunking-form/samples/preserve-modules/_expected/cjs/lib/lib1.js b/test/chunking-form/samples/preserve-modules/_expected/cjs/lib/lib1.js index 135c3023fcc..6a9d99129d3 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/cjs/lib/lib1.js +++ b/test/chunking-form/samples/preserve-modules/_expected/cjs/lib/lib1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function fn () { console.log('lib1 fn'); } diff --git a/test/chunking-form/samples/preserve-modules/_expected/cjs/lib/lib2.js b/test/chunking-form/samples/preserve-modules/_expected/cjs/lib/lib2.js index ee3ad249352..cf6e36b03dd 100644 --- a/test/chunking-form/samples/preserve-modules/_expected/cjs/lib/lib2.js +++ b/test/chunking-form/samples/preserve-modules/_expected/cjs/lib/lib2.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function fn () { console.log('lib2 fn'); } diff --git a/test/chunking-form/samples/reexport-from-entry/_expected/amd/main.js b/test/chunking-form/samples/reexport-from-entry/_expected/amd/main.js index 8b85c58c9bf..cf1d940d8f5 100644 --- a/test/chunking-form/samples/reexport-from-entry/_expected/amd/main.js +++ b/test/chunking-form/samples/reexport-from-entry/_expected/amd/main.js @@ -5,6 +5,4 @@ define(['exports', './generated-otherEntry'], (function (exports, otherEntry) { exports.a = otherEntry.a; exports.c = otherEntry.c; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/reexport-from-entry/_expected/amd/otherEntry.js b/test/chunking-form/samples/reexport-from-entry/_expected/amd/otherEntry.js index 3cfe39bf80b..e24b7772193 100644 --- a/test/chunking-form/samples/reexport-from-entry/_expected/amd/otherEntry.js +++ b/test/chunking-form/samples/reexport-from-entry/_expected/amd/otherEntry.js @@ -5,6 +5,4 @@ define(['exports', './generated-otherEntry'], (function (exports, otherEntry) { exports.b = otherEntry.b; exports.c = otherEntry.c; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/reexport-from-entry/_expected/cjs/main.js b/test/chunking-form/samples/reexport-from-entry/_expected/cjs/main.js index f20f54e462f..9724777d3fa 100644 --- a/test/chunking-form/samples/reexport-from-entry/_expected/cjs/main.js +++ b/test/chunking-form/samples/reexport-from-entry/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var otherEntry = require('./generated-otherEntry.js'); diff --git a/test/chunking-form/samples/reexport-from-entry/_expected/cjs/otherEntry.js b/test/chunking-form/samples/reexport-from-entry/_expected/cjs/otherEntry.js index 683a67be054..7cbc7f97253 100644 --- a/test/chunking-form/samples/reexport-from-entry/_expected/cjs/otherEntry.js +++ b/test/chunking-form/samples/reexport-from-entry/_expected/cjs/otherEntry.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var otherEntry = require('./generated-otherEntry.js'); diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/main.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/main.js index 731b8e8dde7..05da39c0842 100644 --- a/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/main.js +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/amd/main.js @@ -549,6 +549,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.v98 = v98; exports.v99 = v99; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/main.js b/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/main.js index 37dd0facd48..a496761c74c 100644 --- a/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/main.js +++ b/test/chunking-form/samples/sanitize-internal-exports/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var v1, v2, v3, diff --git a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/a.js b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/a.js index 569e0dbc58b..3cffb947ed7 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/a.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/a.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.a = a; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/b.js b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/b.js index bc6adf18b83..b24bc116cef 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/b.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/b.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/one.js b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/one.js index 3db39871d7d..2c0c07355e0 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/one.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/amd/one.js @@ -4,6 +4,4 @@ define(['exports', './b'], (function (exports, b) { 'use strict'; exports.d = d; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/a.js b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/a.js index 97007408241..418c69d2577 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/a.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/a.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const a = 1; exports.a = a; diff --git a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/b.js b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/b.js index 3c417e8458a..f3fc6f22489 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/b.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/b.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const b = 2; exports.b = b; diff --git a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/one.js b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/one.js index 9eea4c87a9f..98e3a99e3a3 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/one.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/avoid-imports-preserve-modules/_expected/cjs/one.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var b = require('./b.js'); const d = b.b + 4; diff --git a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-1/_expected/amd/main.js b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-1/_expected/amd/main.js index 106eba6b3f5..947ad1cbafd 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-1/_expected/amd/main.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-1/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-1/_expected/cjs/main.js b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-1/_expected/cjs/main.js index 181fa0fd711..9549eb32880 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-1/_expected/cjs/main.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-1/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 42; exports.value = value; diff --git a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-2/_expected/amd/main.js b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-2/_expected/amd/main.js index 106eba6b3f5..947ad1cbafd 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-2/_expected/amd/main.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-2/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-2/_expected/cjs/main.js b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-2/_expected/cjs/main.js index 181fa0fd711..9549eb32880 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-2/_expected/cjs/main.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-2/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 42; exports.value = value; diff --git a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-3/_expected/amd/main.js b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-3/_expected/amd/main.js index 106eba6b3f5..947ad1cbafd 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-3/_expected/amd/main.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-3/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.value = value; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-3/_expected/cjs/main.js b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-3/_expected/cjs/main.js index 181fa0fd711..9549eb32880 100644 --- a/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-3/_expected/cjs/main.js +++ b/test/chunking-form/samples/side-effect-free-dependencies/module-side-effects-reexports-3/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const value = 42; exports.value = value; diff --git a/test/chunking-form/samples/synthetic-named-exports/chained-default-reexport/_expected/amd/main.js b/test/chunking-form/samples/synthetic-named-exports/chained-default-reexport/_expected/amd/main.js index 93ff4794d05..5499ce03b53 100644 --- a/test/chunking-form/samples/synthetic-named-exports/chained-default-reexport/_expected/amd/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/chained-default-reexport/_expected/amd/main.js @@ -5,6 +5,4 @@ define(['exports', './generated-main'], (function (exports, main) { 'use strict' exports.component = main.component; exports.lib = main.lib.named.named; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/synthetic-named-exports/chained-default-reexport/_expected/cjs/main.js b/test/chunking-form/samples/synthetic-named-exports/chained-default-reexport/_expected/cjs/main.js index 351234d241f..e8fba38781c 100644 --- a/test/chunking-form/samples/synthetic-named-exports/chained-default-reexport/_expected/cjs/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/chained-default-reexport/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main = require('./generated-main.js'); diff --git a/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/amd/main1.js b/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/amd/main1.js index 5b254674d37..07a94775028 100644 --- a/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/amd/main1.js +++ b/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/amd/main1.js @@ -5,6 +5,4 @@ define(['exports', './generated-lib'], (function (exports, lib) { 'use strict'; exports.lib = lib.lib; exports.foo = lib.lib.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/amd/main3.js b/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/amd/main3.js index 90dcca15826..be4a1a8fdf9 100644 --- a/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/amd/main3.js +++ b/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/amd/main3.js @@ -4,6 +4,4 @@ define(['exports', './generated-lib'], (function (exports, lib) { 'use strict'; exports.foo = lib.lib.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/cjs/main1.js b/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/cjs/main1.js index c161933fa8b..4f7923b2b8c 100644 --- a/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/cjs/main1.js +++ b/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/cjs/main1.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib = require('./generated-lib.js'); diff --git a/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/cjs/main3.js b/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/cjs/main3.js index 060e43c4807..3f2efa8bba9 100644 --- a/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/cjs/main3.js +++ b/test/chunking-form/samples/synthetic-named-exports/deduplicate-synthetic-named-exports-and-default/_expected/cjs/main3.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib = require('./generated-lib.js'); diff --git a/test/chunking-form/samples/synthetic-named-exports/default-reexport/_expected/amd/main.js b/test/chunking-form/samples/synthetic-named-exports/default-reexport/_expected/amd/main.js index e8c39a4648c..12f2cfbf093 100644 --- a/test/chunking-form/samples/synthetic-named-exports/default-reexport/_expected/amd/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/default-reexport/_expected/amd/main.js @@ -9,6 +9,4 @@ define(['require', 'exports'], (function (require, exports) { 'use strict'; exports.component = component; exports.lib = lib; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/synthetic-named-exports/default-reexport/_expected/cjs/main.js b/test/chunking-form/samples/synthetic-named-exports/default-reexport/_expected/cjs/main.js index 17f88ab1c4e..76efd251ca5 100644 --- a/test/chunking-form/samples/synthetic-named-exports/default-reexport/_expected/cjs/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/default-reexport/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var lib = {}; console.log('side-effect', lib); diff --git a/test/chunking-form/samples/synthetic-named-exports/entry/_expected/amd/main.js b/test/chunking-form/samples/synthetic-named-exports/entry/_expected/amd/main.js index 182dfc2f44b..140a5f9b811 100644 --- a/test/chunking-form/samples/synthetic-named-exports/entry/_expected/amd/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/entry/_expected/amd/main.js @@ -4,6 +4,4 @@ define(['exports', './generated-main'], (function (exports, main) { 'use strict' exports.exists = main.exists; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/synthetic-named-exports/entry/_expected/cjs/main.js b/test/chunking-form/samples/synthetic-named-exports/entry/_expected/cjs/main.js index b940c24073e..65f17c50da2 100644 --- a/test/chunking-form/samples/synthetic-named-exports/entry/_expected/cjs/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/entry/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var main = require('./generated-main.js'); diff --git a/test/chunking-form/samples/synthetic-named-exports/global-conflict/_expected/amd/main.js b/test/chunking-form/samples/synthetic-named-exports/global-conflict/_expected/amd/main.js index 822ed58c023..ef1566d4b26 100644 --- a/test/chunking-form/samples/synthetic-named-exports/global-conflict/_expected/amd/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/global-conflict/_expected/amd/main.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = dep.foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/synthetic-named-exports/global-conflict/_expected/cjs/main.js b/test/chunking-form/samples/synthetic-named-exports/global-conflict/_expected/cjs/main.js index 124960daafa..a711eb778e6 100644 --- a/test/chunking-form/samples/synthetic-named-exports/global-conflict/_expected/cjs/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/global-conflict/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep = { foo: 'bar' }; // This should log a global variable console.log(foo); diff --git a/test/chunking-form/samples/synthetic-named-exports/mixed-synthetic-named-exports/_expected/amd/main.js b/test/chunking-form/samples/synthetic-named-exports/mixed-synthetic-named-exports/_expected/amd/main.js index af5bbb30df2..32e6432d861 100644 --- a/test/chunking-form/samples/synthetic-named-exports/mixed-synthetic-named-exports/_expected/amd/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/mixed-synthetic-named-exports/_expected/amd/main.js @@ -38,6 +38,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; exports.stuff = d.stuff; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/synthetic-named-exports/mixed-synthetic-named-exports/_expected/cjs/main.js b/test/chunking-form/samples/synthetic-named-exports/mixed-synthetic-named-exports/_expected/cjs/main.js index 197e99045cb..78b17fa7603 100644 --- a/test/chunking-form/samples/synthetic-named-exports/mixed-synthetic-named-exports/_expected/cjs/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/mixed-synthetic-named-exports/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function _mergeNamespaces(n, m) { m.forEach(function (e) { e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) { diff --git a/test/chunking-form/samples/synthetic-named-exports/namespace/_expected/amd/main.js b/test/chunking-form/samples/synthetic-named-exports/namespace/_expected/amd/main.js index b0f04364402..28d6891f05f 100644 --- a/test/chunking-form/samples/synthetic-named-exports/namespace/_expected/amd/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/namespace/_expected/amd/main.js @@ -42,6 +42,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.dep = dep$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/chunking-form/samples/synthetic-named-exports/namespace/_expected/cjs/main.js b/test/chunking-form/samples/synthetic-named-exports/namespace/_expected/cjs/main.js index 861323745ad..613d8bd9614 100644 --- a/test/chunking-form/samples/synthetic-named-exports/namespace/_expected/cjs/main.js +++ b/test/chunking-form/samples/synthetic-named-exports/namespace/_expected/cjs/main.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function _mergeNamespaces(n, m) { m.forEach(function (e) { e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) { diff --git a/test/cli/samples/context/_expected.js b/test/cli/samples/context/_expected.js index 882cf0cbf21..53752c4dfa7 100644 --- a/test/cli/samples/context/_expected.js +++ b/test/cli/samples/context/_expected.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - console.log(window); const foo = 42; diff --git a/test/cli/samples/format-aliases/_expected/amd.js b/test/cli/samples/format-aliases/_expected/amd.js index 5f7215252b6..7ba10bc5c83 100644 --- a/test/cli/samples/format-aliases/_expected/amd.js +++ b/test/cli/samples/format-aliases/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; exports.value = external; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/cli/samples/format-aliases/_expected/cjs.js b/test/cli/samples/format-aliases/_expected/cjs.js index 152d61c6c6b..fffa8f1676f 100644 --- a/test/cli/samples/format-aliases/_expected/cjs.js +++ b/test/cli/samples/format-aliases/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); console.log('main'); diff --git a/test/cli/samples/format-aliases/_expected/commonjs.js b/test/cli/samples/format-aliases/_expected/commonjs.js index 152d61c6c6b..fffa8f1676f 100644 --- a/test/cli/samples/format-aliases/_expected/commonjs.js +++ b/test/cli/samples/format-aliases/_expected/commonjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); console.log('main'); diff --git a/test/cli/samples/format-aliases/_expected/iife.js b/test/cli/samples/format-aliases/_expected/iife.js index eb021d8e71d..666d2511e3c 100644 --- a/test/cli/samples/format-aliases/_expected/iife.js +++ b/test/cli/samples/format-aliases/_expected/iife.js @@ -5,8 +5,6 @@ var bundle = (function (exports, external) { exports.value = external; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/cli/samples/format-aliases/_expected/umd.js b/test/cli/samples/format-aliases/_expected/umd.js index 40c0752568d..0047ebd22ad 100644 --- a/test/cli/samples/format-aliases/_expected/umd.js +++ b/test/cli/samples/format-aliases/_expected/umd.js @@ -8,6 +8,4 @@ exports.value = external; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/cli/samples/plugin/advanced-esm/_expected/cjs.js b/test/cli/samples/plugin/advanced-esm/_expected/cjs.js index a1e3d7e0f30..f4e035f2a64 100644 --- a/test/cli/samples/plugin/advanced-esm/_expected/cjs.js +++ b/test/cli/samples/plugin/advanced-esm/_expected/cjs.js @@ -1,8 +1,6 @@ "use strict"; -Object.defineProperty(exports, "__esModule", { - value: !0 -}), console.log("esm-test: node_modules/print/index.js"); +console.log("esm-test: node_modules/print/index.js"); console.log("esm-test: node_modules/foo/index.js"); diff --git a/test/cli/samples/plugin/advanced/_expected/cjs.js b/test/cli/samples/plugin/advanced/_expected/cjs.js index 755dfc90ce8..baf744eb5ac 100644 --- a/test/cli/samples/plugin/advanced/_expected/cjs.js +++ b/test/cli/samples/plugin/advanced/_expected/cjs.js @@ -1,9 +1,5 @@ "use strict"; -Object.defineProperty(exports, "__esModule", { - value: !0 -}); - var t = function(t) { console.log(t); }, o = function() { diff --git a/test/cli/samples/plugin/basic/_expected.js b/test/cli/samples/plugin/basic/_expected.js index c6d4a07ef77..eac860b0927 100644 --- a/test/cli/samples/plugin/basic/_expected.js +++ b/test/cli/samples/plugin/basic/_expected.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var Bar = function Bar(value) { this.x = value; }; diff --git a/test/cli/samples/plugin/named-export/_expected/cjs.js b/test/cli/samples/plugin/named-export/_expected/cjs.js index 112c5d4af42..f9867eaf325 100644 --- a/test/cli/samples/plugin/named-export/_expected/cjs.js +++ b/test/cli/samples/plugin/named-export/_expected/cjs.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=function(t){this.x=t};t.prototype.output=function(){console.log(this.x)},new t(123).output(),exports.Bar=t; +"use strict";var t=function(t){this.x=t};t.prototype.output=function(){console.log(this.x)},new t(123).output(),exports.Bar=t; diff --git a/test/cli/samples/stdin/config-file/_expected/cjs.js b/test/cli/samples/stdin/config-file/_expected/cjs.js index ece324c0d9e..6add2511b1c 100644 --- a/test/cli/samples/stdin/config-file/_expected/cjs.js +++ b/test/cli/samples/stdin/config-file/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const PRINT = x => console.log(x); var C = 123; diff --git a/test/cli/samples/stdin/no-stdin-config-file/_expected/cjs.js b/test/cli/samples/stdin/no-stdin-config-file/_expected/cjs.js index ad2b476f9ed..ce8fc1d9fef 100644 --- a/test/cli/samples/stdin/no-stdin-config-file/_expected/cjs.js +++ b/test/cli/samples/stdin/no-stdin-config-file/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const PRINT = x => console.log(x); exports.PRINT = PRINT; diff --git a/test/form/samples/assignment-to-array-buffer-view/_expected/amd.js b/test/form/samples/assignment-to-array-buffer-view/_expected/amd.js index 3fb733de8b7..a1975c8d08c 100644 --- a/test/form/samples/assignment-to-array-buffer-view/_expected/amd.js +++ b/test/form/samples/assignment-to-array-buffer-view/_expected/amd.js @@ -9,6 +9,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.view8 = view8; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/assignment-to-array-buffer-view/_expected/cjs.js b/test/form/samples/assignment-to-array-buffer-view/_expected/cjs.js index 1c6f45c06e4..4ed86ce4035 100644 --- a/test/form/samples/assignment-to-array-buffer-view/_expected/cjs.js +++ b/test/form/samples/assignment-to-array-buffer-view/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var buffer = new ArrayBuffer( 8 ); var view8 = new Int8Array( buffer ); diff --git a/test/form/samples/assignment-to-array-buffer-view/_expected/iife.js b/test/form/samples/assignment-to-array-buffer-view/_expected/iife.js index 06946572de0..411c2483655 100644 --- a/test/form/samples/assignment-to-array-buffer-view/_expected/iife.js +++ b/test/form/samples/assignment-to-array-buffer-view/_expected/iife.js @@ -10,8 +10,6 @@ var bundle = (function (exports) { exports.view8 = view8; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/assignment-to-array-buffer-view/_expected/umd.js b/test/form/samples/assignment-to-array-buffer-view/_expected/umd.js index dc975670d9d..7d64178bdeb 100644 --- a/test/form/samples/assignment-to-array-buffer-view/_expected/umd.js +++ b/test/form/samples/assignment-to-array-buffer-view/_expected/umd.js @@ -13,6 +13,4 @@ exports.view8 = view8; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/assignment-to-exports-class-declaration/_expected/amd.js b/test/form/samples/assignment-to-exports-class-declaration/_expected/amd.js index 7289cef4e18..da832accde6 100644 --- a/test/form/samples/assignment-to-exports-class-declaration/_expected/amd.js +++ b/test/form/samples/assignment-to-exports-class-declaration/_expected/amd.js @@ -3,6 +3,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.Foo = class Foo {}; exports.Foo = lol( exports.Foo ); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/assignment-to-exports-class-declaration/_expected/cjs.js b/test/form/samples/assignment-to-exports-class-declaration/_expected/cjs.js index d291984995d..cc841d47787 100644 --- a/test/form/samples/assignment-to-exports-class-declaration/_expected/cjs.js +++ b/test/form/samples/assignment-to-exports-class-declaration/_expected/cjs.js @@ -1,6 +1,4 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - exports.Foo = class Foo {}; exports.Foo = lol( exports.Foo ); diff --git a/test/form/samples/assignment-to-exports-class-declaration/_expected/iife.js b/test/form/samples/assignment-to-exports-class-declaration/_expected/iife.js index d8a1d8dbc91..de9e3facacb 100644 --- a/test/form/samples/assignment-to-exports-class-declaration/_expected/iife.js +++ b/test/form/samples/assignment-to-exports-class-declaration/_expected/iife.js @@ -4,8 +4,6 @@ var myModule = (function (exports) { exports.Foo = class Foo {}; exports.Foo = lol( exports.Foo ); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/assignment-to-exports-class-declaration/_expected/umd.js b/test/form/samples/assignment-to-exports-class-declaration/_expected/umd.js index 9c03e14e51e..6dbf8df37b0 100644 --- a/test/form/samples/assignment-to-exports-class-declaration/_expected/umd.js +++ b/test/form/samples/assignment-to-exports-class-declaration/_expected/umd.js @@ -7,6 +7,4 @@ exports.Foo = class Foo {}; exports.Foo = lol( exports.Foo ); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/assignment-to-exports/_expected/amd.js b/test/form/samples/assignment-to-exports/_expected/amd.js index 37b3240bc56..0399eb4f93b 100644 --- a/test/form/samples/assignment-to-exports/_expected/amd.js +++ b/test/form/samples/assignment-to-exports/_expected/amd.js @@ -27,6 +27,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo1 = foo1; exports.foo2 = foo2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/assignment-to-exports/_expected/cjs.js b/test/form/samples/assignment-to-exports/_expected/cjs.js index 2adec04748f..7423913d78b 100644 --- a/test/form/samples/assignment-to-exports/_expected/cjs.js +++ b/test/form/samples/assignment-to-exports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - // Unassigned export var foo1; diff --git a/test/form/samples/assignment-to-exports/_expected/iife.js b/test/form/samples/assignment-to-exports/_expected/iife.js index 80b15ba0840..dcceb411557 100644 --- a/test/form/samples/assignment-to-exports/_expected/iife.js +++ b/test/form/samples/assignment-to-exports/_expected/iife.js @@ -28,8 +28,6 @@ var bundle = (function (exports) { exports.foo1 = foo1; exports.foo2 = foo2; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/assignment-to-exports/_expected/umd.js b/test/form/samples/assignment-to-exports/_expected/umd.js index 2f2b3ebda8f..36f0efb2e55 100644 --- a/test/form/samples/assignment-to-exports/_expected/umd.js +++ b/test/form/samples/assignment-to-exports/_expected/umd.js @@ -31,6 +31,4 @@ exports.foo1 = foo1; exports.foo2 = foo2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/compact-named-export/_expected/amd.js b/test/form/samples/compact-named-export/_expected/amd.js index b420631d6ca..5945f0f0fc5 100644 --- a/test/form/samples/compact-named-export/_expected/amd.js +++ b/test/form/samples/compact-named-export/_expected/amd.js @@ -2,4 +2,4 @@ define(['exports'],(function(exports){'use strict';exports.x = 42; exports.x+=1; exports.x=exports.x+1; exports.x++; -++exports.x;Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +++exports.x;})); \ No newline at end of file diff --git a/test/form/samples/compact-named-export/_expected/cjs.js b/test/form/samples/compact-named-export/_expected/cjs.js index 28ef8bf08b2..019dacd8bed 100644 --- a/test/form/samples/compact-named-export/_expected/cjs.js +++ b/test/form/samples/compact-named-export/_expected/cjs.js @@ -1,4 +1,4 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.x = 42; +'use strict';exports.x = 42; exports.x+=1; exports.x=exports.x+1; exports.x++; diff --git a/test/form/samples/compact-named-export/_expected/iife.js b/test/form/samples/compact-named-export/_expected/iife.js index c553017f559..6a8e9b55a6e 100644 --- a/test/form/samples/compact-named-export/_expected/iife.js +++ b/test/form/samples/compact-named-export/_expected/iife.js @@ -2,4 +2,4 @@ var foo=(function(exports){'use strict';exports.x = 42; exports.x+=1; exports.x=exports.x+1; exports.x++; -++exports.x;Object.defineProperty(exports,'__esModule',{value:true});return exports;})({}); \ No newline at end of file +++exports.x;return exports;})({}); \ No newline at end of file diff --git a/test/form/samples/compact-named-export/_expected/umd.js b/test/form/samples/compact-named-export/_expected/umd.js index 7edaad31a3f..026339711b8 100644 --- a/test/form/samples/compact-named-export/_expected/umd.js +++ b/test/form/samples/compact-named-export/_expected/umd.js @@ -2,4 +2,4 @@ exports.x+=1; exports.x=exports.x+1; exports.x++; -++exports.x;Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +++exports.x;})); \ No newline at end of file diff --git a/test/form/samples/computed-properties/_expected/amd.js b/test/form/samples/computed-properties/_expected/amd.js index 40333eee903..2d2e59712a8 100644 --- a/test/form/samples/computed-properties/_expected/amd.js +++ b/test/form/samples/computed-properties/_expected/amd.js @@ -16,6 +16,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.X = X; exports.x = x; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/computed-properties/_expected/cjs.js b/test/form/samples/computed-properties/_expected/cjs.js index 25c4292652b..605d4a3e54e 100644 --- a/test/form/samples/computed-properties/_expected/cjs.js +++ b/test/form/samples/computed-properties/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var foo = 'foo'; var bar = 'bar'; var baz = 'baz'; diff --git a/test/form/samples/computed-properties/_expected/iife.js b/test/form/samples/computed-properties/_expected/iife.js index 8ea16e57067..07c70d5cc19 100644 --- a/test/form/samples/computed-properties/_expected/iife.js +++ b/test/form/samples/computed-properties/_expected/iife.js @@ -17,8 +17,6 @@ var computedProperties = (function (exports) { exports.X = X; exports.x = x; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/computed-properties/_expected/umd.js b/test/form/samples/computed-properties/_expected/umd.js index 27dd4ba1dc0..44eec078c82 100644 --- a/test/form/samples/computed-properties/_expected/umd.js +++ b/test/form/samples/computed-properties/_expected/umd.js @@ -20,6 +20,4 @@ exports.X = X; exports.x = x; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/deconflict-format-specific-exports/_expected/amd.js b/test/form/samples/deconflict-format-specific-exports/_expected/amd.js index 5fea2c3ba2d..d63529d37a4 100644 --- a/test/form/samples/deconflict-format-specific-exports/_expected/amd.js +++ b/test/form/samples/deconflict-format-specific-exports/_expected/amd.js @@ -24,6 +24,4 @@ define(['exports'], (function (exports) { 'use strict'; nestedConflict(); nestedNoConflict(); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/deconflict-format-specific-exports/_expected/cjs.js b/test/form/samples/deconflict-format-specific-exports/_expected/cjs.js index 21cadc195ec..6eed1a121d6 100644 --- a/test/form/samples/deconflict-format-specific-exports/_expected/cjs.js +++ b/test/form/samples/deconflict-format-specific-exports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const exports$1 = { x: 42 }; diff --git a/test/form/samples/deconflict-format-specific-exports/_expected/iife.js b/test/form/samples/deconflict-format-specific-exports/_expected/iife.js index a256ea4a9a5..dd871c2513e 100644 --- a/test/form/samples/deconflict-format-specific-exports/_expected/iife.js +++ b/test/form/samples/deconflict-format-specific-exports/_expected/iife.js @@ -25,8 +25,6 @@ var bundle = (function (exports) { nestedConflict(); nestedNoConflict(); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/deconflict-format-specific-exports/_expected/umd.js b/test/form/samples/deconflict-format-specific-exports/_expected/umd.js index bb5430f0523..144ca0900b0 100644 --- a/test/form/samples/deconflict-format-specific-exports/_expected/umd.js +++ b/test/form/samples/deconflict-format-specific-exports/_expected/umd.js @@ -28,6 +28,4 @@ nestedConflict(); nestedNoConflict(); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/dedupes-external-imports/_expected/amd.js b/test/form/samples/dedupes-external-imports/_expected/amd.js index 153c87bcbd5..d0c85ec3616 100644 --- a/test/form/samples/dedupes-external-imports/_expected/amd.js +++ b/test/form/samples/dedupes-external-imports/_expected/amd.js @@ -29,6 +29,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; exports.baz = baz; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/dedupes-external-imports/_expected/cjs.js b/test/form/samples/dedupes-external-imports/_expected/cjs.js index 08e53049670..e456043e7fa 100644 --- a/test/form/samples/dedupes-external-imports/_expected/cjs.js +++ b/test/form/samples/dedupes-external-imports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); class Foo extends external.Component { diff --git a/test/form/samples/dedupes-external-imports/_expected/iife.js b/test/form/samples/dedupes-external-imports/_expected/iife.js index c525bfb78f8..45d749bd275 100644 --- a/test/form/samples/dedupes-external-imports/_expected/iife.js +++ b/test/form/samples/dedupes-external-imports/_expected/iife.js @@ -30,8 +30,6 @@ var myBundle = (function (exports, external) { exports.baz = baz; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/form/samples/dedupes-external-imports/_expected/umd.js b/test/form/samples/dedupes-external-imports/_expected/umd.js index 529c85fa6b3..0fc435e239f 100644 --- a/test/form/samples/dedupes-external-imports/_expected/umd.js +++ b/test/form/samples/dedupes-external-imports/_expected/umd.js @@ -33,6 +33,4 @@ exports.baz = baz; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/amd.js b/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/amd.js index a686695eb27..9b68f32c6d1 100644 --- a/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/amd.js +++ b/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/amd.js @@ -4,6 +4,6 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; - Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); })); diff --git a/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/cjs.js b/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/cjs.js index 0a7f7b36138..3ced9f15180 100644 --- a/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/cjs.js +++ b/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/cjs.js @@ -1,6 +1,6 @@ 'use strict'; -Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); +Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const foo = 42; diff --git a/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/iife.js b/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/iife.js index caef71c5aaa..031b5a7ba73 100644 --- a/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/iife.js +++ b/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/iife.js @@ -5,7 +5,7 @@ var bundle = (function (exports) { exports.foo = foo; - Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); return exports; diff --git a/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/umd.js b/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/umd.js index d1b1697e7cd..f69065ef0da 100644 --- a/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/umd.js +++ b/test/form/samples/deprecated/namespace-tostring/entry-named/_expected/umd.js @@ -8,6 +8,6 @@ exports.foo = foo; - Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); })); diff --git a/test/form/samples/dynamic-import-this-arrow/_expected/amd.js b/test/form/samples/dynamic-import-this-arrow/_expected/amd.js index 3e68c87c28f..8385cbfa3df 100644 --- a/test/form/samples/dynamic-import-this-arrow/_expected/amd.js +++ b/test/form/samples/dynamic-import-this-arrow/_expected/amd.js @@ -31,6 +31,4 @@ define(['require', 'exports', 'input'], (function (require, exports, input) { 'u exports.promise = promise; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/dynamic-import-this-arrow/_expected/cjs.js b/test/form/samples/dynamic-import-this-arrow/_expected/cjs.js index 33faf9da3f9..5a9c79f87e3 100644 --- a/test/form/samples/dynamic-import-this-arrow/_expected/cjs.js +++ b/test/form/samples/dynamic-import-this-arrow/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var input = require('input'); function _interopNamespaceDefault(e) { diff --git a/test/form/samples/dynamic-import-this-arrow/_expected/iife.js b/test/form/samples/dynamic-import-this-arrow/_expected/iife.js index cae64e05522..0cf64319d02 100644 --- a/test/form/samples/dynamic-import-this-arrow/_expected/iife.js +++ b/test/form/samples/dynamic-import-this-arrow/_expected/iife.js @@ -15,8 +15,6 @@ var bundle = (function (exports, input) { exports.promise = promise; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, input); diff --git a/test/form/samples/dynamic-import-this-arrow/_expected/umd.js b/test/form/samples/dynamic-import-this-arrow/_expected/umd.js index 012afb22eb7..dae70b6a615 100644 --- a/test/form/samples/dynamic-import-this-arrow/_expected/umd.js +++ b/test/form/samples/dynamic-import-this-arrow/_expected/umd.js @@ -18,6 +18,4 @@ exports.promise = promise; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/dynamic-import-this-function/_expected/amd.js b/test/form/samples/dynamic-import-this-function/_expected/amd.js index 56240997e69..bfec23bb7f0 100644 --- a/test/form/samples/dynamic-import-this-function/_expected/amd.js +++ b/test/form/samples/dynamic-import-this-function/_expected/amd.js @@ -31,6 +31,4 @@ define(['require', 'exports', 'input'], (function (require, exports, input) { 'u exports.promise = promise; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/dynamic-import-this-function/_expected/cjs.js b/test/form/samples/dynamic-import-this-function/_expected/cjs.js index d00a3057118..64d752617c3 100644 --- a/test/form/samples/dynamic-import-this-function/_expected/cjs.js +++ b/test/form/samples/dynamic-import-this-function/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var input = require('input'); function _interopNamespaceDefault(e) { diff --git a/test/form/samples/dynamic-import-this-function/_expected/iife.js b/test/form/samples/dynamic-import-this-function/_expected/iife.js index cae64e05522..0cf64319d02 100644 --- a/test/form/samples/dynamic-import-this-function/_expected/iife.js +++ b/test/form/samples/dynamic-import-this-function/_expected/iife.js @@ -15,8 +15,6 @@ var bundle = (function (exports, input) { exports.promise = promise; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, input); diff --git a/test/form/samples/dynamic-import-this-function/_expected/umd.js b/test/form/samples/dynamic-import-this-function/_expected/umd.js index 012afb22eb7..dae70b6a615 100644 --- a/test/form/samples/dynamic-import-this-function/_expected/umd.js +++ b/test/form/samples/dynamic-import-this-function/_expected/umd.js @@ -18,6 +18,4 @@ exports.promise = promise; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-all-before-named/_expected/amd.js b/test/form/samples/export-all-before-named/_expected/amd.js index d271281340d..e81dc2517b3 100644 --- a/test/form/samples/export-all-before-named/_expected/amd.js +++ b/test/form/samples/export-all-before-named/_expected/amd.js @@ -12,6 +12,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-all-before-named/_expected/cjs.js b/test/form/samples/export-all-before-named/_expected/cjs.js index 989b8a04595..81d3faca82a 100644 --- a/test/form/samples/export-all-before-named/_expected/cjs.js +++ b/test/form/samples/export-all-before-named/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); function internalFn(path) { diff --git a/test/form/samples/export-all-before-named/_expected/iife.js b/test/form/samples/export-all-before-named/_expected/iife.js index 304ac19d1cc..ca25dc01317 100644 --- a/test/form/samples/export-all-before-named/_expected/iife.js +++ b/test/form/samples/export-all-before-named/_expected/iife.js @@ -13,8 +13,6 @@ var exposedInternals = (function (exports, external) { }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/form/samples/export-all-before-named/_expected/umd.js b/test/form/samples/export-all-before-named/_expected/umd.js index 05be621a124..5eaf0dd684c 100644 --- a/test/form/samples/export-all-before-named/_expected/umd.js +++ b/test/form/samples/export-all-before-named/_expected/umd.js @@ -16,6 +16,4 @@ }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-all-from-internal/_expected/amd.js b/test/form/samples/export-all-from-internal/_expected/amd.js index 05abfb593d8..c9db0af538d 100644 --- a/test/form/samples/export-all-from-internal/_expected/amd.js +++ b/test/form/samples/export-all-from-internal/_expected/amd.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-all-from-internal/_expected/cjs.js b/test/form/samples/export-all-from-internal/_expected/cjs.js index e208b74e989..869bba079af 100644 --- a/test/form/samples/export-all-from-internal/_expected/cjs.js +++ b/test/form/samples/export-all-from-internal/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const a = 1; const b = 2; diff --git a/test/form/samples/export-all-from-internal/_expected/iife.js b/test/form/samples/export-all-from-internal/_expected/iife.js index a6c96fc0e1d..4ba6ea0a271 100644 --- a/test/form/samples/export-all-from-internal/_expected/iife.js +++ b/test/form/samples/export-all-from-internal/_expected/iife.js @@ -7,8 +7,6 @@ var exposedInternals = (function (exports) { exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/export-all-from-internal/_expected/umd.js b/test/form/samples/export-all-from-internal/_expected/umd.js index 6d492f62c91..c0a8d223420 100644 --- a/test/form/samples/export-all-from-internal/_expected/umd.js +++ b/test/form/samples/export-all-from-internal/_expected/umd.js @@ -10,6 +10,4 @@ exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-all-multiple/_expected/amd.js b/test/form/samples/export-all-multiple/_expected/amd.js index 6b8f83e558f..ab273e62230 100644 --- a/test/form/samples/export-all-multiple/_expected/amd.js +++ b/test/form/samples/export-all-multiple/_expected/amd.js @@ -21,6 +21,4 @@ define(['exports', 'foo', 'bar', 'baz'], (function (exports, foo, bar, baz) { 'u }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-all-multiple/_expected/cjs.js b/test/form/samples/export-all-multiple/_expected/cjs.js index 29b4dc5fe67..83bd195de61 100644 --- a/test/form/samples/export-all-multiple/_expected/cjs.js +++ b/test/form/samples/export-all-multiple/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var foo = require('foo'); var bar = require('bar'); var baz = require('baz'); diff --git a/test/form/samples/export-all-multiple/_expected/iife.js b/test/form/samples/export-all-multiple/_expected/iife.js index 021b7c159df..d759e3eef5f 100644 --- a/test/form/samples/export-all-multiple/_expected/iife.js +++ b/test/form/samples/export-all-multiple/_expected/iife.js @@ -22,8 +22,6 @@ var myBundle = (function (exports, foo, bar, baz) { }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, foo, bar, baz); diff --git a/test/form/samples/export-all-multiple/_expected/umd.js b/test/form/samples/export-all-multiple/_expected/umd.js index e950c182405..549b4f2fccc 100644 --- a/test/form/samples/export-all-multiple/_expected/umd.js +++ b/test/form/samples/export-all-multiple/_expected/umd.js @@ -23,6 +23,4 @@ }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-default-import/_expected/amd.js b/test/form/samples/export-default-import/_expected/amd.js index 756c83b7ce7..538d331f39a 100644 --- a/test/form/samples/export-default-import/_expected/amd.js +++ b/test/form/samples/export-default-import/_expected/amd.js @@ -11,6 +11,4 @@ define(['exports', 'x'], (function (exports, x) { 'use strict'; get: function () { return x__default.default; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-default-import/_expected/cjs.js b/test/form/samples/export-default-import/_expected/cjs.js index b1f5846a178..5cc40d61741 100644 --- a/test/form/samples/export-default-import/_expected/cjs.js +++ b/test/form/samples/export-default-import/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var x = require('x'); function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; } diff --git a/test/form/samples/export-default-import/_expected/iife.js b/test/form/samples/export-default-import/_expected/iife.js index 8adf9b163b8..a90c26c292f 100644 --- a/test/form/samples/export-default-import/_expected/iife.js +++ b/test/form/samples/export-default-import/_expected/iife.js @@ -12,8 +12,6 @@ var myBundle = (function (exports, x) { get: function () { return x__default.default; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, x); diff --git a/test/form/samples/export-default-import/_expected/umd.js b/test/form/samples/export-default-import/_expected/umd.js index 972985f934f..c069d52635d 100644 --- a/test/form/samples/export-default-import/_expected/umd.js +++ b/test/form/samples/export-default-import/_expected/umd.js @@ -15,6 +15,4 @@ get: function () { return x__default.default; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-globals/_expected/amd.js b/test/form/samples/export-globals/_expected/amd.js index bb48fc7d4cf..5b28ab9cc66 100644 --- a/test/form/samples/export-globals/_expected/amd.js +++ b/test/form/samples/export-globals/_expected/amd.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.isNaN = isNaN$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-globals/_expected/cjs.js b/test/form/samples/export-globals/_expected/cjs.js index c83da075373..2f1ab86f010 100644 --- a/test/form/samples/export-globals/_expected/cjs.js +++ b/test/form/samples/export-globals/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const localIsNaN = isNaN; const isNaN$1 = localIsNaN; diff --git a/test/form/samples/export-globals/_expected/iife.js b/test/form/samples/export-globals/_expected/iife.js index ac24624ddfb..208fb78b5ec 100644 --- a/test/form/samples/export-globals/_expected/iife.js +++ b/test/form/samples/export-globals/_expected/iife.js @@ -7,8 +7,6 @@ var myBundle = (function (exports) { exports.isNaN = isNaN$1; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/export-globals/_expected/umd.js b/test/form/samples/export-globals/_expected/umd.js index c07e271c069..b67e0006f5e 100644 --- a/test/form/samples/export-globals/_expected/umd.js +++ b/test/form/samples/export-globals/_expected/umd.js @@ -10,6 +10,4 @@ exports.isNaN = isNaN$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-live-bindings/_expected/amd.js b/test/form/samples/export-live-bindings/_expected/amd.js index 7d95bcef014..9d26797adbe 100644 --- a/test/form/samples/export-live-bindings/_expected/amd.js +++ b/test/form/samples/export-live-bindings/_expected/amd.js @@ -32,6 +32,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.updateBaz = update; exports.updateFoo = update$2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-live-bindings/_expected/cjs.js b/test/form/samples/export-live-bindings/_expected/cjs.js index 3650e960cbb..c0655cff2a4 100644 --- a/test/form/samples/export-live-bindings/_expected/cjs.js +++ b/test/form/samples/export-live-bindings/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function update$2 () { exports.foo += 10; } diff --git a/test/form/samples/export-live-bindings/_expected/iife.js b/test/form/samples/export-live-bindings/_expected/iife.js index cd910a4079b..1ae944f4734 100644 --- a/test/form/samples/export-live-bindings/_expected/iife.js +++ b/test/form/samples/export-live-bindings/_expected/iife.js @@ -33,8 +33,6 @@ var iife = (function (exports) { exports.updateBaz = update; exports.updateFoo = update$2; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/export-live-bindings/_expected/umd.js b/test/form/samples/export-live-bindings/_expected/umd.js index 937f28a162a..a85d6b84d3b 100644 --- a/test/form/samples/export-live-bindings/_expected/umd.js +++ b/test/form/samples/export-live-bindings/_expected/umd.js @@ -36,6 +36,4 @@ exports.updateBaz = update; exports.updateFoo = update$2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-namespace-as/_expected/amd.js b/test/form/samples/export-namespace-as/_expected/amd.js index a1ec2936e97..687d8701467 100644 --- a/test/form/samples/export-namespace-as/_expected/amd.js +++ b/test/form/samples/export-namespace-as/_expected/amd.js @@ -11,6 +11,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.dep = dep; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/export-namespace-as/_expected/cjs.js b/test/form/samples/export-namespace-as/_expected/cjs.js index f4d06b1841a..af62789cd80 100644 --- a/test/form/samples/export-namespace-as/_expected/cjs.js +++ b/test/form/samples/export-namespace-as/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 'foo1'; const bar = 'bar1'; diff --git a/test/form/samples/export-namespace-as/_expected/iife.js b/test/form/samples/export-namespace-as/_expected/iife.js index f5621fcf0bf..ddabe060114 100644 --- a/test/form/samples/export-namespace-as/_expected/iife.js +++ b/test/form/samples/export-namespace-as/_expected/iife.js @@ -12,8 +12,6 @@ var bundle = (function (exports) { exports.dep = dep; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/export-namespace-as/_expected/umd.js b/test/form/samples/export-namespace-as/_expected/umd.js index 84efdfa408b..2ce76a08cac 100644 --- a/test/form/samples/export-namespace-as/_expected/umd.js +++ b/test/form/samples/export-namespace-as/_expected/umd.js @@ -15,6 +15,4 @@ exports.dep = dep; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/exports-at-end-if-possible/_expected/amd.js b/test/form/samples/exports-at-end-if-possible/_expected/amd.js index e54ab39117e..9bf1231a7b7 100644 --- a/test/form/samples/exports-at-end-if-possible/_expected/amd.js +++ b/test/form/samples/exports-at-end-if-possible/_expected/amd.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.FOO = FOO; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/exports-at-end-if-possible/_expected/cjs.js b/test/form/samples/exports-at-end-if-possible/_expected/cjs.js index f62037c89b9..57d55d3cb81 100644 --- a/test/form/samples/exports-at-end-if-possible/_expected/cjs.js +++ b/test/form/samples/exports-at-end-if-possible/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var FOO = 'foo'; console.log( FOO ); diff --git a/test/form/samples/exports-at-end-if-possible/_expected/iife.js b/test/form/samples/exports-at-end-if-possible/_expected/iife.js index 7575534a46f..81f75f465ed 100644 --- a/test/form/samples/exports-at-end-if-possible/_expected/iife.js +++ b/test/form/samples/exports-at-end-if-possible/_expected/iife.js @@ -9,8 +9,6 @@ var myBundle = (function (exports) { exports.FOO = FOO; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/exports-at-end-if-possible/_expected/umd.js b/test/form/samples/exports-at-end-if-possible/_expected/umd.js index 3f885ef27a9..b9ae739b3b7 100644 --- a/test/form/samples/exports-at-end-if-possible/_expected/umd.js +++ b/test/form/samples/exports-at-end-if-possible/_expected/umd.js @@ -12,6 +12,4 @@ exports.FOO = FOO; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/extend-exports/_expected/amd.js b/test/form/samples/extend-exports/_expected/amd.js index f8bddcee737..abf361b15be 100644 --- a/test/form/samples/extend-exports/_expected/amd.js +++ b/test/form/samples/extend-exports/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/extend-exports/_expected/cjs.js b/test/form/samples/extend-exports/_expected/cjs.js index 316e49a5c1b..94b8c7ce11f 100644 --- a/test/form/samples/extend-exports/_expected/cjs.js +++ b/test/form/samples/extend-exports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const answer = 42; exports.answer = answer; diff --git a/test/form/samples/extend-exports/_expected/iife.js b/test/form/samples/extend-exports/_expected/iife.js index b6cd7c4fa9b..ad53d6c41f6 100644 --- a/test/form/samples/extend-exports/_expected/iife.js +++ b/test/form/samples/extend-exports/_expected/iife.js @@ -5,6 +5,4 @@ exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - })(this.foo = this.foo || {}); diff --git a/test/form/samples/extend-exports/_expected/umd.js b/test/form/samples/extend-exports/_expected/umd.js index 00da9b65fef..853481054c3 100644 --- a/test/form/samples/extend-exports/_expected/umd.js +++ b/test/form/samples/extend-exports/_expected/umd.js @@ -8,6 +8,4 @@ exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/extend-namespaced-exports/_expected/amd.js b/test/form/samples/extend-namespaced-exports/_expected/amd.js index f8bddcee737..abf361b15be 100644 --- a/test/form/samples/extend-namespaced-exports/_expected/amd.js +++ b/test/form/samples/extend-namespaced-exports/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/extend-namespaced-exports/_expected/cjs.js b/test/form/samples/extend-namespaced-exports/_expected/cjs.js index 316e49a5c1b..94b8c7ce11f 100644 --- a/test/form/samples/extend-namespaced-exports/_expected/cjs.js +++ b/test/form/samples/extend-namespaced-exports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const answer = 42; exports.answer = answer; diff --git a/test/form/samples/extend-namespaced-exports/_expected/iife.js b/test/form/samples/extend-namespaced-exports/_expected/iife.js index 8c0662c80e5..76ebf3dc5dd 100644 --- a/test/form/samples/extend-namespaced-exports/_expected/iife.js +++ b/test/form/samples/extend-namespaced-exports/_expected/iife.js @@ -7,6 +7,4 @@ this.foo.bar = this.foo.bar || {}; exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - })(this.foo.bar.baz = this.foo.bar.baz || {}); diff --git a/test/form/samples/extend-namespaced-exports/_expected/umd.js b/test/form/samples/extend-namespaced-exports/_expected/umd.js index 119a86b2fb5..7e77624dadb 100644 --- a/test/form/samples/extend-namespaced-exports/_expected/umd.js +++ b/test/form/samples/extend-namespaced-exports/_expected/umd.js @@ -8,6 +8,4 @@ exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/external-deshadowing/_expected/amd.js b/test/form/samples/external-deshadowing/_expected/amd.js index 8a1c5efa737..122452ecd6f 100644 --- a/test/form/samples/external-deshadowing/_expected/amd.js +++ b/test/form/samples/external-deshadowing/_expected/amd.js @@ -11,6 +11,4 @@ define(['exports', 'a', 'b'], (function (exports, a, Test$1) { 'use strict'; exports.Test = Test; exports.Test1 = Test1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/external-deshadowing/_expected/cjs.js b/test/form/samples/external-deshadowing/_expected/cjs.js index 0db266b818f..9f00f05c1a9 100644 --- a/test/form/samples/external-deshadowing/_expected/cjs.js +++ b/test/form/samples/external-deshadowing/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var a = require('a'); var Test$1 = require('b'); diff --git a/test/form/samples/external-deshadowing/_expected/iife.js b/test/form/samples/external-deshadowing/_expected/iife.js index c2fd5887d07..a201360e0ee 100644 --- a/test/form/samples/external-deshadowing/_expected/iife.js +++ b/test/form/samples/external-deshadowing/_expected/iife.js @@ -12,8 +12,6 @@ var myBundle = (function (exports, a, Test$1) { exports.Test = Test; exports.Test1 = Test1; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, a, b); diff --git a/test/form/samples/external-deshadowing/_expected/umd.js b/test/form/samples/external-deshadowing/_expected/umd.js index 0c1da0c536c..98eb524c2df 100644 --- a/test/form/samples/external-deshadowing/_expected/umd.js +++ b/test/form/samples/external-deshadowing/_expected/umd.js @@ -15,6 +15,4 @@ exports.Test = Test; exports.Test1 = Test1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/external-export-tracing/_expected/amd.js b/test/form/samples/external-export-tracing/_expected/amd.js index 434d4d85ff7..7302309f5fe 100644 --- a/test/form/samples/external-export-tracing/_expected/amd.js +++ b/test/form/samples/external-export-tracing/_expected/amd.js @@ -7,6 +7,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; get: function () { return external.p; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/external-export-tracing/_expected/cjs.js b/test/form/samples/external-export-tracing/_expected/cjs.js index f7e2ce636b9..0c1dd2d83b6 100644 --- a/test/form/samples/external-export-tracing/_expected/cjs.js +++ b/test/form/samples/external-export-tracing/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); diff --git a/test/form/samples/external-export-tracing/_expected/iife.js b/test/form/samples/external-export-tracing/_expected/iife.js index e57a9a135f6..a205fe2e3b4 100644 --- a/test/form/samples/external-export-tracing/_expected/iife.js +++ b/test/form/samples/external-export-tracing/_expected/iife.js @@ -8,8 +8,6 @@ var myBundle = (function (exports, external) { get: function () { return external.p; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/form/samples/external-export-tracing/_expected/umd.js b/test/form/samples/external-export-tracing/_expected/umd.js index bce4dec43ec..f03e9c224d3 100644 --- a/test/form/samples/external-export-tracing/_expected/umd.js +++ b/test/form/samples/external-export-tracing/_expected/umd.js @@ -9,6 +9,4 @@ get: function () { return external.p; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/external-namespace-reexport/_expected/amd.js b/test/form/samples/external-namespace-reexport/_expected/amd.js index 229e03d0bc5..0aa09e1e5bc 100644 --- a/test/form/samples/external-namespace-reexport/_expected/amd.js +++ b/test/form/samples/external-namespace-reexport/_expected/amd.js @@ -23,6 +23,4 @@ define(['exports', 'highcharts'], (function (exports, highcharts) { 'use strict' exports.Highcharts = highcharts__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/external-namespace-reexport/_expected/cjs.js b/test/form/samples/external-namespace-reexport/_expected/cjs.js index 20cda4dff7a..f6c032ceac1 100644 --- a/test/form/samples/external-namespace-reexport/_expected/cjs.js +++ b/test/form/samples/external-namespace-reexport/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var highcharts = require('highcharts'); function _interopNamespaceDefault(e) { diff --git a/test/form/samples/external-namespace-reexport/_expected/iife.js b/test/form/samples/external-namespace-reexport/_expected/iife.js index c3febf64792..490db1dc774 100644 --- a/test/form/samples/external-namespace-reexport/_expected/iife.js +++ b/test/form/samples/external-namespace-reexport/_expected/iife.js @@ -24,8 +24,6 @@ var myBundle = (function (exports, highcharts) { exports.Highcharts = highcharts__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, highcharts); diff --git a/test/form/samples/external-namespace-reexport/_expected/umd.js b/test/form/samples/external-namespace-reexport/_expected/umd.js index 260e2a573a2..85c14cbfb00 100644 --- a/test/form/samples/external-namespace-reexport/_expected/umd.js +++ b/test/form/samples/external-namespace-reexport/_expected/umd.js @@ -27,6 +27,4 @@ exports.Highcharts = highcharts__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/freeze/_expected/amd.js b/test/form/samples/freeze/_expected/amd.js index 478b4f113a1..10afc7b2dfc 100644 --- a/test/form/samples/freeze/_expected/amd.js +++ b/test/form/samples/freeze/_expected/amd.js @@ -17,6 +17,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/freeze/_expected/cjs.js b/test/form/samples/freeze/_expected/cjs.js index 2ee4ef34da1..4d7c8742215 100644 --- a/test/form/samples/freeze/_expected/cjs.js +++ b/test/form/samples/freeze/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 1; const bar = 2; diff --git a/test/form/samples/freeze/_expected/iife.js b/test/form/samples/freeze/_expected/iife.js index dbacfaa734c..16d7de3fad2 100644 --- a/test/form/samples/freeze/_expected/iife.js +++ b/test/form/samples/freeze/_expected/iife.js @@ -18,8 +18,6 @@ var myBundle = (function (exports) { exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/freeze/_expected/umd.js b/test/form/samples/freeze/_expected/umd.js index 8725f865161..ca42a4eeccf 100644 --- a/test/form/samples/freeze/_expected/umd.js +++ b/test/form/samples/freeze/_expected/umd.js @@ -21,6 +21,4 @@ exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/function-mutation/_expected/amd.js b/test/form/samples/function-mutation/_expected/amd.js index 2cd946dc877..25fec9ef334 100644 --- a/test/form/samples/function-mutation/_expected/amd.js +++ b/test/form/samples/function-mutation/_expected/amd.js @@ -45,6 +45,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.g = g; exports.i = i; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/function-mutation/_expected/cjs.js b/test/form/samples/function-mutation/_expected/cjs.js index 51b5d461cf8..5291f114edb 100644 --- a/test/form/samples/function-mutation/_expected/cjs.js +++ b/test/form/samples/function-mutation/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function foo () { console.log( 'foo' ); } diff --git a/test/form/samples/function-mutation/_expected/iife.js b/test/form/samples/function-mutation/_expected/iife.js index dff16f1dfd3..8ee2f0ac6fc 100644 --- a/test/form/samples/function-mutation/_expected/iife.js +++ b/test/form/samples/function-mutation/_expected/iife.js @@ -46,8 +46,6 @@ var bundle = (function (exports) { exports.g = g; exports.i = i; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/function-mutation/_expected/umd.js b/test/form/samples/function-mutation/_expected/umd.js index 4ebe59cad08..d7d3e2fe237 100644 --- a/test/form/samples/function-mutation/_expected/umd.js +++ b/test/form/samples/function-mutation/_expected/umd.js @@ -49,6 +49,4 @@ exports.g = g; exports.i = i; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/generated-code-compact/arrow-functions-false/_expected/amd.js b/test/form/samples/generated-code-compact/arrow-functions-false/_expected/amd.js index e4e96016f36..e0d2fd3d469 100644 --- a/test/form/samples/generated-code-compact/arrow-functions-false/_expected/amd.js +++ b/test/form/samples/generated-code-compact/arrow-functions-false/_expected/amd.js @@ -9,4 +9,4 @@ new Promise(function(c,e){require(['external'],function(m){c(/*#__PURE__*/_inter console.log(defaultCompat__namespace.default); console.log(externalAuto__default.default); console.log(externalDefault__namespace); -console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:function(){return defaultCompat.foo}});Object.keys(defaultCompat).forEach(function(k){if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return defaultCompat[k]}})});Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:function(){return defaultCompat.foo}});Object.keys(defaultCompat).forEach(function(k){if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return defaultCompat[k]}})});})); \ No newline at end of file diff --git a/test/form/samples/generated-code-compact/arrow-functions-false/_expected/cjs.js b/test/form/samples/generated-code-compact/arrow-functions-false/_expected/cjs.js index 7aac2f1e821..fcf3f0cf16a 100644 --- a/test/form/samples/generated-code-compact/arrow-functions-false/_expected/cjs.js +++ b/test/form/samples/generated-code-compact/arrow-functions-false/_expected/cjs.js @@ -1,4 +1,4 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});require('externalNoImport');var defaultCompat=require('external'),externalAuto=require('externalAuto'),externalDefault=require('externalDefault'),externalDefaultOnly=require('externalDefaultOnly');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespaceCompat(e){return e&&typeof e==='object'&&'default'in e?e:_interopNamespaceDefault(e)}function _interopNamespaceDefaultOnly(e){return Object.freeze({__proto__:null,default:e})}function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}function _mergeNamespaces(n, m){m.forEach(function(e){e&&typeof e!=='string'&&!Array.isArray(e)&&Object.keys(e).forEach(function(k){if(k!=='default'&&!(k in n)){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})});return Object.freeze(n);}var defaultCompat__namespace=/*#__PURE__*/_interopNamespaceCompat(defaultCompat);var externalAuto__default=/*#__PURE__*/_interopDefault(externalAuto);var externalDefault__namespace=/*#__PURE__*/_interopNamespaceDefault(externalDefault);var externalDefaultOnly__namespace=/*#__PURE__*/_interopNamespaceDefaultOnly(externalDefaultOnly);exports.a=void 0; +'use strict';require('externalNoImport');var defaultCompat=require('external'),externalAuto=require('externalAuto'),externalDefault=require('externalDefault'),externalDefaultOnly=require('externalDefaultOnly');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespaceCompat(e){return e&&typeof e==='object'&&'default'in e?e:_interopNamespaceDefault(e)}function _interopNamespaceDefaultOnly(e){return Object.freeze({__proto__:null,default:e})}function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}function _mergeNamespaces(n, m){m.forEach(function(e){e&&typeof e!=='string'&&!Array.isArray(e)&&Object.keys(e).forEach(function(k){if(k!=='default'&&!(k in n)){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})});return Object.freeze(n);}var defaultCompat__namespace=/*#__PURE__*/_interopNamespaceCompat(defaultCompat);var externalAuto__default=/*#__PURE__*/_interopDefault(externalAuto);var externalDefault__namespace=/*#__PURE__*/_interopNamespaceDefault(externalDefault);var externalDefaultOnly__namespace=/*#__PURE__*/_interopNamespaceDefaultOnly(externalDefaultOnly);exports.a=void 0; ({ a: exports.a } = defaultCompat.b); console.log({ a: exports.a } = defaultCompat.b); diff --git a/test/form/samples/generated-code-compact/arrow-functions-false/_expected/iife.js b/test/form/samples/generated-code-compact/arrow-functions-false/_expected/iife.js index 103aea45933..7ab3db90751 100644 --- a/test/form/samples/generated-code-compact/arrow-functions-false/_expected/iife.js +++ b/test/form/samples/generated-code-compact/arrow-functions-false/_expected/iife.js @@ -9,4 +9,4 @@ import('external').then(console.log); console.log(defaultCompat__namespace.default); console.log(externalAuto__default.default); console.log(externalDefault__namespace); -console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:function(){return defaultCompat.foo}});Object.keys(defaultCompat).forEach(function(k){if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return defaultCompat[k]}})});Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},null,defaultCompat,externalAuto,externalDefault,externalDefaultOnly); \ No newline at end of file +console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:function(){return defaultCompat.foo}});Object.keys(defaultCompat).forEach(function(k){if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return defaultCompat[k]}})});return exports;})({},null,defaultCompat,externalAuto,externalDefault,externalDefaultOnly); \ No newline at end of file diff --git a/test/form/samples/generated-code-compact/arrow-functions-false/_expected/umd.js b/test/form/samples/generated-code-compact/arrow-functions-false/_expected/umd.js index dba439e9dc0..3598e466331 100644 --- a/test/form/samples/generated-code-compact/arrow-functions-false/_expected/umd.js +++ b/test/form/samples/generated-code-compact/arrow-functions-false/_expected/umd.js @@ -9,4 +9,4 @@ import('external').then(console.log); console.log(defaultCompat__namespace.default); console.log(externalAuto__default.default); console.log(externalDefault__namespace); -console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:function(){return defaultCompat.foo}});Object.keys(defaultCompat).forEach(function(k){if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return defaultCompat[k]}})});Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:function(){return defaultCompat.foo}});Object.keys(defaultCompat).forEach(function(k){if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return defaultCompat[k]}})});})); \ No newline at end of file diff --git a/test/form/samples/generated-code-compact/arrow-functions-true/_expected/amd.js b/test/form/samples/generated-code-compact/arrow-functions-true/_expected/amd.js index 063165c5b37..7689ec45a54 100644 --- a/test/form/samples/generated-code-compact/arrow-functions-true/_expected/amd.js +++ b/test/form/samples/generated-code-compact/arrow-functions-true/_expected/amd.js @@ -9,4 +9,4 @@ new Promise((c,e)=>require(['external'],m=>c(/*#__PURE__*/_interopNamespaceCompa console.log(defaultCompat__namespace.default); console.log(externalAuto__default.default); console.log(externalDefault__namespace); -console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:()=>defaultCompat.foo});Object.keys(defaultCompat).forEach(k=>{if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:()=>defaultCompat[k]})});Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:()=>defaultCompat.foo});Object.keys(defaultCompat).forEach(k=>{if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:()=>defaultCompat[k]})});})); \ No newline at end of file diff --git a/test/form/samples/generated-code-compact/arrow-functions-true/_expected/cjs.js b/test/form/samples/generated-code-compact/arrow-functions-true/_expected/cjs.js index cd31ed76546..85fda17837c 100644 --- a/test/form/samples/generated-code-compact/arrow-functions-true/_expected/cjs.js +++ b/test/form/samples/generated-code-compact/arrow-functions-true/_expected/cjs.js @@ -1,4 +1,4 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});require('externalNoImport');var defaultCompat=require('external'),externalAuto=require('externalAuto'),externalDefault=require('externalDefault'),externalDefaultOnly=require('externalDefaultOnly');var _interopDefault=e=>e&&e.__esModule?e:{default:e};var _interopNamespaceCompat=e=>e&&typeof e==='object'&&'default'in e?e:_interopNamespaceDefault(e);var _interopNamespaceDefaultOnly=e=>Object.freeze({__proto__:null,default:e});function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(k=>{if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:()=>e[k]});}})}n.default=e;return Object.freeze(n)}function _mergeNamespaces(n, m){m.forEach(e=>e&&typeof e!=='string'&&!Array.isArray(e)&&Object.keys(e).forEach(k=>{if(k!=='default'&&!(k in n)){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:()=>e[k]});}}));return Object.freeze(n);}var defaultCompat__namespace=/*#__PURE__*/_interopNamespaceCompat(defaultCompat);var externalAuto__default=/*#__PURE__*/_interopDefault(externalAuto);var externalDefault__namespace=/*#__PURE__*/_interopNamespaceDefault(externalDefault);var externalDefaultOnly__namespace=/*#__PURE__*/_interopNamespaceDefaultOnly(externalDefaultOnly);exports.a=void 0; +'use strict';require('externalNoImport');var defaultCompat=require('external'),externalAuto=require('externalAuto'),externalDefault=require('externalDefault'),externalDefaultOnly=require('externalDefaultOnly');var _interopDefault=e=>e&&e.__esModule?e:{default:e};var _interopNamespaceCompat=e=>e&&typeof e==='object'&&'default'in e?e:_interopNamespaceDefault(e);var _interopNamespaceDefaultOnly=e=>Object.freeze({__proto__:null,default:e});function _interopNamespaceDefault(e){var n=Object.create(null);if(e){Object.keys(e).forEach(k=>{if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:()=>e[k]});}})}n.default=e;return Object.freeze(n)}function _mergeNamespaces(n, m){m.forEach(e=>e&&typeof e!=='string'&&!Array.isArray(e)&&Object.keys(e).forEach(k=>{if(k!=='default'&&!(k in n)){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:()=>e[k]});}}));return Object.freeze(n);}var defaultCompat__namespace=/*#__PURE__*/_interopNamespaceCompat(defaultCompat);var externalAuto__default=/*#__PURE__*/_interopDefault(externalAuto);var externalDefault__namespace=/*#__PURE__*/_interopNamespaceDefault(externalDefault);var externalDefaultOnly__namespace=/*#__PURE__*/_interopNamespaceDefaultOnly(externalDefaultOnly);exports.a=void 0; ({ a: exports.a } = defaultCompat.b); console.log({ a: exports.a } = defaultCompat.b); diff --git a/test/form/samples/generated-code-compact/arrow-functions-true/_expected/iife.js b/test/form/samples/generated-code-compact/arrow-functions-true/_expected/iife.js index a9ff2a45fc7..291cda49728 100644 --- a/test/form/samples/generated-code-compact/arrow-functions-true/_expected/iife.js +++ b/test/form/samples/generated-code-compact/arrow-functions-true/_expected/iife.js @@ -9,4 +9,4 @@ import('external').then(console.log); console.log(defaultCompat__namespace.default); console.log(externalAuto__default.default); console.log(externalDefault__namespace); -console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:()=>defaultCompat.foo});Object.keys(defaultCompat).forEach(k=>{if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:()=>defaultCompat[k]})});Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},null,defaultCompat,externalAuto,externalDefault,externalDefaultOnly); \ No newline at end of file +console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:()=>defaultCompat.foo});Object.keys(defaultCompat).forEach(k=>{if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:()=>defaultCompat[k]})});return exports;})({},null,defaultCompat,externalAuto,externalDefault,externalDefaultOnly); \ No newline at end of file diff --git a/test/form/samples/generated-code-compact/arrow-functions-true/_expected/umd.js b/test/form/samples/generated-code-compact/arrow-functions-true/_expected/umd.js index 4f8a0b2c4c6..9a6101cb85c 100644 --- a/test/form/samples/generated-code-compact/arrow-functions-true/_expected/umd.js +++ b/test/form/samples/generated-code-compact/arrow-functions-true/_expected/umd.js @@ -9,4 +9,4 @@ import('external').then(console.log); console.log(defaultCompat__namespace.default); console.log(externalAuto__default.default); console.log(externalDefault__namespace); -console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:()=>defaultCompat.foo});Object.keys(defaultCompat).forEach(k=>{if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:()=>defaultCompat[k]})});Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +console.log(externalDefaultOnly__namespace);var main=/*#__PURE__*/_mergeNamespaces({__proto__:null,get a(){return exports.a},foo:foo},[defaultCompat__namespace]);Object.defineProperty(exports,'foo',{enumerable:true,get:()=>defaultCompat.foo});Object.keys(defaultCompat).forEach(k=>{if(k!=='default'&&!exports.hasOwnProperty(k))Object.defineProperty(exports,k,{enumerable:true,get:()=>defaultCompat[k]})});})); \ No newline at end of file diff --git a/test/form/samples/generated-code/arrow-functions-false/_expected/amd.js b/test/form/samples/generated-code/arrow-functions-false/_expected/amd.js index b9e7017c486..1c6cbec4b06 100644 --- a/test/form/samples/generated-code/arrow-functions-false/_expected/amd.js +++ b/test/form/samples/generated-code/arrow-functions-false/_expected/amd.js @@ -73,6 +73,4 @@ define(['require', 'exports', 'externalNoImport', 'external', 'externalAuto', 'e }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/generated-code/arrow-functions-false/_expected/cjs.js b/test/form/samples/generated-code/arrow-functions-false/_expected/cjs.js index 7d5e505ca24..0de832bd967 100644 --- a/test/form/samples/generated-code/arrow-functions-false/_expected/cjs.js +++ b/test/form/samples/generated-code/arrow-functions-false/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - require('externalNoImport'); var defaultCompat = require('external'); var externalAuto = require('externalAuto'); diff --git a/test/form/samples/generated-code/arrow-functions-false/_expected/iife.js b/test/form/samples/generated-code/arrow-functions-false/_expected/iife.js index 838c44fb87c..d7dacf56299 100644 --- a/test/form/samples/generated-code/arrow-functions-false/_expected/iife.js +++ b/test/form/samples/generated-code/arrow-functions-false/_expected/iife.js @@ -74,8 +74,6 @@ var bundle = (function (exports, externalNoImport, defaultCompat, externalAuto, }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, null, defaultCompat, externalAuto, externalDefault, externalDefaultOnly); diff --git a/test/form/samples/generated-code/arrow-functions-false/_expected/umd.js b/test/form/samples/generated-code/arrow-functions-false/_expected/umd.js index e3cbb5a8f57..59f091df315 100644 --- a/test/form/samples/generated-code/arrow-functions-false/_expected/umd.js +++ b/test/form/samples/generated-code/arrow-functions-false/_expected/umd.js @@ -82,6 +82,4 @@ }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/generated-code/arrow-functions-true/_expected/amd.js b/test/form/samples/generated-code/arrow-functions-true/_expected/amd.js index bb5c446a9dc..4f34def0725 100644 --- a/test/form/samples/generated-code/arrow-functions-true/_expected/amd.js +++ b/test/form/samples/generated-code/arrow-functions-true/_expected/amd.js @@ -73,6 +73,4 @@ define(['require', 'exports', 'externalNoImport', 'external', 'externalAuto', 'e }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/generated-code/arrow-functions-true/_expected/cjs.js b/test/form/samples/generated-code/arrow-functions-true/_expected/cjs.js index 13ec5996060..f22a7a8125b 100644 --- a/test/form/samples/generated-code/arrow-functions-true/_expected/cjs.js +++ b/test/form/samples/generated-code/arrow-functions-true/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - require('externalNoImport'); var defaultCompat = require('external'); var externalAuto = require('externalAuto'); diff --git a/test/form/samples/generated-code/arrow-functions-true/_expected/iife.js b/test/form/samples/generated-code/arrow-functions-true/_expected/iife.js index 4bfac3b1bbf..f6bdef0a3ec 100644 --- a/test/form/samples/generated-code/arrow-functions-true/_expected/iife.js +++ b/test/form/samples/generated-code/arrow-functions-true/_expected/iife.js @@ -74,8 +74,6 @@ var bundle = (function (exports, externalNoImport, defaultCompat, externalAuto, }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, null, defaultCompat, externalAuto, externalDefault, externalDefaultOnly); diff --git a/test/form/samples/generated-code/arrow-functions-true/_expected/umd.js b/test/form/samples/generated-code/arrow-functions-true/_expected/umd.js index d10380afa29..a3c40435f99 100644 --- a/test/form/samples/generated-code/arrow-functions-true/_expected/umd.js +++ b/test/form/samples/generated-code/arrow-functions-true/_expected/umd.js @@ -82,6 +82,4 @@ }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/interop-per-reexported-dependency/_expected/amd.js b/test/form/samples/interop-per-reexported-dependency/_expected/amd.js index e8eb900c887..51d0d3b00fc 100644 --- a/test/form/samples/interop-per-reexported-dependency/_expected/amd.js +++ b/test/form/samples/interop-per-reexported-dependency/_expected/amd.js @@ -50,6 +50,4 @@ define(['exports', 'external-auto', 'external-default', 'external-defaultOnly', get: function () { return externalEsModule.default; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/interop-per-reexported-dependency/_expected/cjs.js b/test/form/samples/interop-per-reexported-dependency/_expected/cjs.js index d515000f136..7c6ceb7ab79 100644 --- a/test/form/samples/interop-per-reexported-dependency/_expected/cjs.js +++ b/test/form/samples/interop-per-reexported-dependency/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var externalAuto = require('external-auto'); var externalDefault = require('external-default'); var externalDefaultOnly = require('external-defaultOnly'); diff --git a/test/form/samples/interop-per-reexported-dependency/_expected/iife.js b/test/form/samples/interop-per-reexported-dependency/_expected/iife.js index 4d8a103d757..13ae54405de 100644 --- a/test/form/samples/interop-per-reexported-dependency/_expected/iife.js +++ b/test/form/samples/interop-per-reexported-dependency/_expected/iife.js @@ -51,8 +51,6 @@ var bundle = (function (exports, externalAuto, externalDefault, externalDefaultO get: function () { return externalEsModule.default; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, externalauto, externaldefault, externaldefaultOnly, externalesModule); diff --git a/test/form/samples/interop-per-reexported-dependency/_expected/umd.js b/test/form/samples/interop-per-reexported-dependency/_expected/umd.js index 33b723de6a0..e2a2294a9f7 100644 --- a/test/form/samples/interop-per-reexported-dependency/_expected/umd.js +++ b/test/form/samples/interop-per-reexported-dependency/_expected/umd.js @@ -54,6 +54,4 @@ get: function () { return externalEsModule.default; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/logical-expression/mutate-logical-expression/_expected/amd.js b/test/form/samples/logical-expression/mutate-logical-expression/_expected/amd.js index a25f0ef6211..5b474e013d4 100644 --- a/test/form/samples/logical-expression/mutate-logical-expression/_expected/amd.js +++ b/test/form/samples/logical-expression/mutate-logical-expression/_expected/amd.js @@ -16,6 +16,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.bExp = bExp; exports.cExp = cExp; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/logical-expression/mutate-logical-expression/_expected/cjs.js b/test/form/samples/logical-expression/mutate-logical-expression/_expected/cjs.js index cb639a91a09..2a72123b962 100644 --- a/test/form/samples/logical-expression/mutate-logical-expression/_expected/cjs.js +++ b/test/form/samples/logical-expression/mutate-logical-expression/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var aExp = {}; var logicalAExp = aExp || {}; logicalAExp.bar = 1; diff --git a/test/form/samples/logical-expression/mutate-logical-expression/_expected/iife.js b/test/form/samples/logical-expression/mutate-logical-expression/_expected/iife.js index 863d7482562..7dcdf795cbf 100644 --- a/test/form/samples/logical-expression/mutate-logical-expression/_expected/iife.js +++ b/test/form/samples/logical-expression/mutate-logical-expression/_expected/iife.js @@ -17,8 +17,6 @@ var bundle = (function (exports) { exports.bExp = bExp; exports.cExp = cExp; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/logical-expression/mutate-logical-expression/_expected/umd.js b/test/form/samples/logical-expression/mutate-logical-expression/_expected/umd.js index 74e5e61bca4..f14730028f0 100644 --- a/test/form/samples/logical-expression/mutate-logical-expression/_expected/umd.js +++ b/test/form/samples/logical-expression/mutate-logical-expression/_expected/umd.js @@ -20,6 +20,4 @@ exports.bExp = bExp; exports.cExp = cExp; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/mjs/_expected/amd.js b/test/form/samples/mjs/_expected/amd.js index d8e615c3994..387e4aaf6c2 100644 --- a/test/form/samples/mjs/_expected/amd.js +++ b/test/form/samples/mjs/_expected/amd.js @@ -7,6 +7,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.depJs = dep$1; exports.depMjs = dep; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/mjs/_expected/cjs.js b/test/form/samples/mjs/_expected/cjs.js index e4cae3624e3..50133a96f36 100644 --- a/test/form/samples/mjs/_expected/cjs.js +++ b/test/form/samples/mjs/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var dep$1 = 'js'; var dep = 'mjs'; diff --git a/test/form/samples/mjs/_expected/iife.js b/test/form/samples/mjs/_expected/iife.js index 745dcc22103..f6988777ecd 100644 --- a/test/form/samples/mjs/_expected/iife.js +++ b/test/form/samples/mjs/_expected/iife.js @@ -8,8 +8,6 @@ var myBundle = (function (exports) { exports.depJs = dep$1; exports.depMjs = dep; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/mjs/_expected/umd.js b/test/form/samples/mjs/_expected/umd.js index 4a8cae15efa..1fcc3857b96 100644 --- a/test/form/samples/mjs/_expected/umd.js +++ b/test/form/samples/mjs/_expected/umd.js @@ -11,6 +11,4 @@ exports.depJs = dep$1; exports.depMjs = dep; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/module-name-scoped-package/_expected/amd.js b/test/form/samples/module-name-scoped-package/_expected/amd.js index 0e083577469..30fcfbbe3fd 100644 --- a/test/form/samples/module-name-scoped-package/_expected/amd.js +++ b/test/form/samples/module-name-scoped-package/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/module-name-scoped-package/_expected/cjs.js b/test/form/samples/module-name-scoped-package/_expected/cjs.js index 796e3ef7f16..0814d99690d 100644 --- a/test/form/samples/module-name-scoped-package/_expected/cjs.js +++ b/test/form/samples/module-name-scoped-package/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - let foo = 'foo'; exports.foo = foo; diff --git a/test/form/samples/module-name-scoped-package/_expected/iife.js b/test/form/samples/module-name-scoped-package/_expected/iife.js index b607a7a4859..6568d188a8b 100644 --- a/test/form/samples/module-name-scoped-package/_expected/iife.js +++ b/test/form/samples/module-name-scoped-package/_expected/iife.js @@ -5,6 +5,4 @@ exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })(this["@scoped/npm-package"] = this["@scoped/npm-package"] || {}); diff --git a/test/form/samples/module-name-scoped-package/_expected/umd.js b/test/form/samples/module-name-scoped-package/_expected/umd.js index d6011624a7d..9fd7f3b9c0e 100644 --- a/test/form/samples/module-name-scoped-package/_expected/umd.js +++ b/test/form/samples/module-name-scoped-package/_expected/umd.js @@ -8,6 +8,4 @@ exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/module-name-wat/_expected/amd.js b/test/form/samples/module-name-wat/_expected/amd.js index 0e083577469..30fcfbbe3fd 100644 --- a/test/form/samples/module-name-wat/_expected/amd.js +++ b/test/form/samples/module-name-wat/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/module-name-wat/_expected/cjs.js b/test/form/samples/module-name-wat/_expected/cjs.js index 796e3ef7f16..0814d99690d 100644 --- a/test/form/samples/module-name-wat/_expected/cjs.js +++ b/test/form/samples/module-name-wat/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - let foo = 'foo'; exports.foo = foo; diff --git a/test/form/samples/module-name-wat/_expected/iife.js b/test/form/samples/module-name-wat/_expected/iife.js index 14410de5ed2..999bbce831e 100644 --- a/test/form/samples/module-name-wat/_expected/iife.js +++ b/test/form/samples/module-name-wat/_expected/iife.js @@ -8,8 +8,6 @@ this.foo["@scoped/npm-package"].bar["why-would-you-do-this"] = (function (export exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/module-name-wat/_expected/umd.js b/test/form/samples/module-name-wat/_expected/umd.js index 91ab706544b..87d8fb89915 100644 --- a/test/form/samples/module-name-wat/_expected/umd.js +++ b/test/form/samples/module-name-wat/_expected/umd.js @@ -8,6 +8,4 @@ exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/module-name-with-dashes/_expected/amd.js b/test/form/samples/module-name-with-dashes/_expected/amd.js index 0e083577469..30fcfbbe3fd 100644 --- a/test/form/samples/module-name-with-dashes/_expected/amd.js +++ b/test/form/samples/module-name-with-dashes/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/module-name-with-dashes/_expected/cjs.js b/test/form/samples/module-name-with-dashes/_expected/cjs.js index 796e3ef7f16..0814d99690d 100644 --- a/test/form/samples/module-name-with-dashes/_expected/cjs.js +++ b/test/form/samples/module-name-with-dashes/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - let foo = 'foo'; exports.foo = foo; diff --git a/test/form/samples/module-name-with-dashes/_expected/iife.js b/test/form/samples/module-name-with-dashes/_expected/iife.js index 2a1351bea45..2576c4735ca 100644 --- a/test/form/samples/module-name-with-dashes/_expected/iife.js +++ b/test/form/samples/module-name-with-dashes/_expected/iife.js @@ -5,6 +5,4 @@ exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })(this["module-name-with-dashes"] = this["module-name-with-dashes"] || {}); diff --git a/test/form/samples/module-name-with-dashes/_expected/umd.js b/test/form/samples/module-name-with-dashes/_expected/umd.js index 515aa3ee6ed..be8d785c33b 100644 --- a/test/form/samples/module-name-with-dashes/_expected/umd.js +++ b/test/form/samples/module-name-with-dashes/_expected/umd.js @@ -8,6 +8,4 @@ exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/multiple-exports/_expected/amd.js b/test/form/samples/multiple-exports/_expected/amd.js index 66f40f43b4e..fb736e6346e 100644 --- a/test/form/samples/multiple-exports/_expected/amd.js +++ b/test/form/samples/multiple-exports/_expected/amd.js @@ -6,6 +6,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.bar = bar; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/multiple-exports/_expected/cjs.js b/test/form/samples/multiple-exports/_expected/cjs.js index 20d23e9d884..1301b1283b9 100644 --- a/test/form/samples/multiple-exports/_expected/cjs.js +++ b/test/form/samples/multiple-exports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var foo = 1; var bar = 2; diff --git a/test/form/samples/multiple-exports/_expected/iife.js b/test/form/samples/multiple-exports/_expected/iife.js index 7fb67aefa87..2ad00847523 100644 --- a/test/form/samples/multiple-exports/_expected/iife.js +++ b/test/form/samples/multiple-exports/_expected/iife.js @@ -7,8 +7,6 @@ var myBundle = (function (exports) { exports.bar = bar; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/multiple-exports/_expected/umd.js b/test/form/samples/multiple-exports/_expected/umd.js index 0edff421aca..4f557b3813b 100644 --- a/test/form/samples/multiple-exports/_expected/umd.js +++ b/test/form/samples/multiple-exports/_expected/umd.js @@ -10,6 +10,4 @@ exports.bar = bar; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-import-reexport-2/_expected/amd.js b/test/form/samples/namespace-import-reexport-2/_expected/amd.js index 97f38c7d159..3b1389908c4 100644 --- a/test/form/samples/namespace-import-reexport-2/_expected/amd.js +++ b/test/form/samples/namespace-import-reexport-2/_expected/amd.js @@ -27,6 +27,4 @@ define(['exports', 'external1', 'external2'], (function (exports, external1, ext }); exports.ext = external2__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-import-reexport-2/_expected/cjs.js b/test/form/samples/namespace-import-reexport-2/_expected/cjs.js index 40b2b5be795..d9360a66598 100644 --- a/test/form/samples/namespace-import-reexport-2/_expected/cjs.js +++ b/test/form/samples/namespace-import-reexport-2/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external1 = require('external1'); var external2 = require('external2'); diff --git a/test/form/samples/namespace-import-reexport-2/_expected/iife.js b/test/form/samples/namespace-import-reexport-2/_expected/iife.js index 382caaf5395..4d51d2e3c4e 100644 --- a/test/form/samples/namespace-import-reexport-2/_expected/iife.js +++ b/test/form/samples/namespace-import-reexport-2/_expected/iife.js @@ -28,8 +28,6 @@ var iife = (function (exports, external1, external2) { }); exports.ext = external2__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external1, external2); diff --git a/test/form/samples/namespace-import-reexport-2/_expected/umd.js b/test/form/samples/namespace-import-reexport-2/_expected/umd.js index 2551351dcc9..699e9056791 100644 --- a/test/form/samples/namespace-import-reexport-2/_expected/umd.js +++ b/test/form/samples/namespace-import-reexport-2/_expected/umd.js @@ -31,6 +31,4 @@ }); exports.ext = external2__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-import-reexport/_expected/amd.js b/test/form/samples/namespace-import-reexport/_expected/amd.js index b58cbf5002d..bef93879c10 100644 --- a/test/form/samples/namespace-import-reexport/_expected/amd.js +++ b/test/form/samples/namespace-import-reexport/_expected/amd.js @@ -23,6 +23,4 @@ define(['exports', 'external-package'], (function (exports, externalPackage) { ' exports.ext = externalPackage__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-import-reexport/_expected/cjs.js b/test/form/samples/namespace-import-reexport/_expected/cjs.js index 45eb526db64..019cf183b3b 100644 --- a/test/form/samples/namespace-import-reexport/_expected/cjs.js +++ b/test/form/samples/namespace-import-reexport/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var externalPackage = require('external-package'); function _interopNamespaceDefault(e) { diff --git a/test/form/samples/namespace-import-reexport/_expected/iife.js b/test/form/samples/namespace-import-reexport/_expected/iife.js index 2d9d35d5ed4..ce7e2147e87 100644 --- a/test/form/samples/namespace-import-reexport/_expected/iife.js +++ b/test/form/samples/namespace-import-reexport/_expected/iife.js @@ -24,8 +24,6 @@ var iife = (function (exports, externalPackage) { exports.ext = externalPackage__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, externalPackage); diff --git a/test/form/samples/namespace-import-reexport/_expected/umd.js b/test/form/samples/namespace-import-reexport/_expected/umd.js index eeb01244035..a274c3b5b76 100644 --- a/test/form/samples/namespace-import-reexport/_expected/umd.js +++ b/test/form/samples/namespace-import-reexport/_expected/umd.js @@ -27,6 +27,4 @@ exports.ext = externalPackage__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-reexport-name/_expected/amd.js b/test/form/samples/namespace-reexport-name/_expected/amd.js index f1b3a02f1b3..6634da5cab0 100644 --- a/test/form/samples/namespace-reexport-name/_expected/amd.js +++ b/test/form/samples/namespace-reexport-name/_expected/amd.js @@ -14,6 +14,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-reexport-name/_expected/cjs.js b/test/form/samples/namespace-reexport-name/_expected/cjs.js index d7d1b79238a..89d7b994b7b 100644 --- a/test/form/samples/namespace-reexport-name/_expected/cjs.js +++ b/test/form/samples/namespace-reexport-name/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); const renamedIndirectOverride = external.indirectOverride; diff --git a/test/form/samples/namespace-reexport-name/_expected/iife.js b/test/form/samples/namespace-reexport-name/_expected/iife.js index 1d4cc35c91a..19a5683d8d2 100644 --- a/test/form/samples/namespace-reexport-name/_expected/iife.js +++ b/test/form/samples/namespace-reexport-name/_expected/iife.js @@ -15,8 +15,6 @@ var bundle = (function (exports, external) { }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/form/samples/namespace-reexport-name/_expected/umd.js b/test/form/samples/namespace-reexport-name/_expected/umd.js index 4fe6c1e6c15..9c182ed1488 100644 --- a/test/form/samples/namespace-reexport-name/_expected/umd.js +++ b/test/form/samples/namespace-reexport-name/_expected/umd.js @@ -18,6 +18,4 @@ }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-self-import/_expected/amd.js b/test/form/samples/namespace-self-import/_expected/amd.js index f0792df1896..7e2de6bb781 100644 --- a/test/form/samples/namespace-self-import/_expected/amd.js +++ b/test/form/samples/namespace-self-import/_expected/amd.js @@ -11,6 +11,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.p = p; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-self-import/_expected/cjs.js b/test/form/samples/namespace-self-import/_expected/cjs.js index 286ebc2c57a..8ce75a0202c 100644 --- a/test/form/samples/namespace-self-import/_expected/cjs.js +++ b/test/form/samples/namespace-self-import/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var self = /*#__PURE__*/Object.freeze({ __proto__: null, get p () { return p; } diff --git a/test/form/samples/namespace-self-import/_expected/iife.js b/test/form/samples/namespace-self-import/_expected/iife.js index a91d523de39..cbb4aa0c432 100644 --- a/test/form/samples/namespace-self-import/_expected/iife.js +++ b/test/form/samples/namespace-self-import/_expected/iife.js @@ -12,8 +12,6 @@ var iife = (function (exports) { exports.p = p; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/namespace-self-import/_expected/umd.js b/test/form/samples/namespace-self-import/_expected/umd.js index 79df178d711..586f27e7895 100644 --- a/test/form/samples/namespace-self-import/_expected/umd.js +++ b/test/form/samples/namespace-self-import/_expected/umd.js @@ -15,6 +15,4 @@ exports.p = p; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespace-tostring/entry-named/_expected/amd.js b/test/form/samples/namespace-tostring/entry-named/_expected/amd.js index a686695eb27..9b68f32c6d1 100644 --- a/test/form/samples/namespace-tostring/entry-named/_expected/amd.js +++ b/test/form/samples/namespace-tostring/entry-named/_expected/amd.js @@ -4,6 +4,6 @@ define(['exports'], (function (exports) { 'use strict'; exports.foo = foo; - Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); })); diff --git a/test/form/samples/namespace-tostring/entry-named/_expected/cjs.js b/test/form/samples/namespace-tostring/entry-named/_expected/cjs.js index 0a7f7b36138..3ced9f15180 100644 --- a/test/form/samples/namespace-tostring/entry-named/_expected/cjs.js +++ b/test/form/samples/namespace-tostring/entry-named/_expected/cjs.js @@ -1,6 +1,6 @@ 'use strict'; -Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); +Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const foo = 42; diff --git a/test/form/samples/namespace-tostring/entry-named/_expected/iife.js b/test/form/samples/namespace-tostring/entry-named/_expected/iife.js index caef71c5aaa..031b5a7ba73 100644 --- a/test/form/samples/namespace-tostring/entry-named/_expected/iife.js +++ b/test/form/samples/namespace-tostring/entry-named/_expected/iife.js @@ -5,7 +5,7 @@ var bundle = (function (exports) { exports.foo = foo; - Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); return exports; diff --git a/test/form/samples/namespace-tostring/entry-named/_expected/umd.js b/test/form/samples/namespace-tostring/entry-named/_expected/umd.js index d1b1697e7cd..f69065ef0da 100644 --- a/test/form/samples/namespace-tostring/entry-named/_expected/umd.js +++ b/test/form/samples/namespace-tostring/entry-named/_expected/umd.js @@ -8,6 +8,6 @@ exports.foo = foo; - Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } }); + Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); })); diff --git a/test/form/samples/namespaced-named-exports/_expected/amd.js b/test/form/samples/namespaced-named-exports/_expected/amd.js index 824f7df5d11..17e9e504d62 100644 --- a/test/form/samples/namespaced-named-exports/_expected/amd.js +++ b/test/form/samples/namespaced-named-exports/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespaced-named-exports/_expected/cjs.js b/test/form/samples/namespaced-named-exports/_expected/cjs.js index f58e06dbe20..9ac4d858bc4 100644 --- a/test/form/samples/namespaced-named-exports/_expected/cjs.js +++ b/test/form/samples/namespaced-named-exports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var answer = 42; exports.answer = answer; diff --git a/test/form/samples/namespaced-named-exports/_expected/iife.js b/test/form/samples/namespaced-named-exports/_expected/iife.js index 1853388f6d9..6863e4b811f 100644 --- a/test/form/samples/namespaced-named-exports/_expected/iife.js +++ b/test/form/samples/namespaced-named-exports/_expected/iife.js @@ -7,8 +7,6 @@ this.foo.bar.baz = (function (exports) { exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/namespaced-named-exports/_expected/umd.js b/test/form/samples/namespaced-named-exports/_expected/umd.js index e830109c53c..73df328eaa4 100644 --- a/test/form/samples/namespaced-named-exports/_expected/umd.js +++ b/test/form/samples/namespaced-named-exports/_expected/umd.js @@ -8,6 +8,4 @@ exports.answer = answer; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespaces-have-null-prototype/_expected/amd.js b/test/form/samples/namespaces-have-null-prototype/_expected/amd.js index 618e00a3277..7aad5f7cfbf 100644 --- a/test/form/samples/namespaces-have-null-prototype/_expected/amd.js +++ b/test/form/samples/namespaces-have-null-prototype/_expected/amd.js @@ -17,6 +17,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/namespaces-have-null-prototype/_expected/cjs.js b/test/form/samples/namespaces-have-null-prototype/_expected/cjs.js index 445e1b89d69..2dba5073811 100644 --- a/test/form/samples/namespaces-have-null-prototype/_expected/cjs.js +++ b/test/form/samples/namespaces-have-null-prototype/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const foo = 1; const bar = 2; diff --git a/test/form/samples/namespaces-have-null-prototype/_expected/iife.js b/test/form/samples/namespaces-have-null-prototype/_expected/iife.js index 9eae062a49f..f6c3a9d8b6e 100644 --- a/test/form/samples/namespaces-have-null-prototype/_expected/iife.js +++ b/test/form/samples/namespaces-have-null-prototype/_expected/iife.js @@ -18,8 +18,6 @@ var myBundle = (function (exports) { exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/namespaces-have-null-prototype/_expected/umd.js b/test/form/samples/namespaces-have-null-prototype/_expected/umd.js index a2742478ff3..b6da0338171 100644 --- a/test/form/samples/namespaces-have-null-prototype/_expected/umd.js +++ b/test/form/samples/namespaces-have-null-prototype/_expected/umd.js @@ -21,6 +21,4 @@ exports.a = a; exports.b = b; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/no-external-live-bindings-compact/_expected/amd.js b/test/form/samples/no-external-live-bindings-compact/_expected/amd.js index cc90ec0c872..2c3116ec8c0 100644 --- a/test/form/samples/no-external-live-bindings-compact/_expected/amd.js +++ b/test/form/samples/no-external-live-bindings-compact/_expected/amd.js @@ -1 +1 @@ -define(['require','exports','external1','external2'],(function(require,exports,external1,external2){'use strict';function _interopNamespaceDefault(e){var n=Object.create(null);if(e){for(var k in e){n[k]=e[k];}}n.default=e;return Object.freeze(n)}const dynamic = new Promise(function(c,e){require(['external3'],function(m){c(/*#__PURE__*/_interopNamespaceDefault(m))},e)});exports.external1=external1.external1;exports.dynamic=dynamic;for(var k in external2){if(k!=='default'&&!exports.hasOwnProperty(k))exports[k]=external2[k]}Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +define(['require','exports','external1','external2'],(function(require,exports,external1,external2){'use strict';function _interopNamespaceDefault(e){var n=Object.create(null);if(e){for(var k in e){n[k]=e[k];}}n.default=e;return Object.freeze(n)}const dynamic = new Promise(function(c,e){require(['external3'],function(m){c(/*#__PURE__*/_interopNamespaceDefault(m))},e)});exports.external1=external1.external1;exports.dynamic=dynamic;for(var k in external2){if(k!=='default'&&!exports.hasOwnProperty(k))exports[k]=external2[k]}})); \ No newline at end of file diff --git a/test/form/samples/no-external-live-bindings-compact/_expected/cjs.js b/test/form/samples/no-external-live-bindings-compact/_expected/cjs.js index 00f3b7e3dc2..5916ba0514e 100644 --- a/test/form/samples/no-external-live-bindings-compact/_expected/cjs.js +++ b/test/form/samples/no-external-live-bindings-compact/_expected/cjs.js @@ -1 +1 @@ -'use strict';Object.defineProperty(exports,'__esModule',{value:true});var external1=require('external1'),external2=require('external2');function _interopNamespaceDefault(e){var n=Object.create(null);if(e){for(var k in e){n[k]=e[k];}}n.default=e;return Object.freeze(n)}const dynamic = Promise.resolve().then(function(){return /*#__PURE__*/_interopNamespaceDefault(require('external3'))});exports.external1=external1.external1;exports.dynamic=dynamic;for(var k in external2){if(k!=='default'&&!exports.hasOwnProperty(k))exports[k]=external2[k]} \ No newline at end of file +'use strict';var external1=require('external1'),external2=require('external2');function _interopNamespaceDefault(e){var n=Object.create(null);if(e){for(var k in e){n[k]=e[k];}}n.default=e;return Object.freeze(n)}const dynamic = Promise.resolve().then(function(){return /*#__PURE__*/_interopNamespaceDefault(require('external3'))});exports.external1=external1.external1;exports.dynamic=dynamic;for(var k in external2){if(k!=='default'&&!exports.hasOwnProperty(k))exports[k]=external2[k]} \ No newline at end of file diff --git a/test/form/samples/no-external-live-bindings-compact/_expected/iife.js b/test/form/samples/no-external-live-bindings-compact/_expected/iife.js index 06fd0501b80..44af1471935 100644 --- a/test/form/samples/no-external-live-bindings-compact/_expected/iife.js +++ b/test/form/samples/no-external-live-bindings-compact/_expected/iife.js @@ -1 +1 @@ -var bundle=(function(exports,external1,external2){'use strict';const dynamic = import('external3');exports.external1=external1.external1;exports.dynamic=dynamic;for(var k in external2){if(k!=='default'&&!exports.hasOwnProperty(k))exports[k]=external2[k]}Object.defineProperty(exports,'__esModule',{value:true});return exports;})({},external1,external2); \ No newline at end of file +var bundle=(function(exports,external1,external2){'use strict';const dynamic = import('external3');exports.external1=external1.external1;exports.dynamic=dynamic;for(var k in external2){if(k!=='default'&&!exports.hasOwnProperty(k))exports[k]=external2[k]}return exports;})({},external1,external2); \ No newline at end of file diff --git a/test/form/samples/no-external-live-bindings-compact/_expected/umd.js b/test/form/samples/no-external-live-bindings-compact/_expected/umd.js index 376cb159b91..267786fd17d 100644 --- a/test/form/samples/no-external-live-bindings-compact/_expected/umd.js +++ b/test/form/samples/no-external-live-bindings-compact/_expected/umd.js @@ -1 +1 @@ -(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports,require('external1'),require('external2')):typeof define==='function'&&define.amd?define(['exports','external1','external2'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.bundle={},g.external1,g.external2));})(this,(function(exports,external1,external2){'use strict';const dynamic = import('external3');exports.external1=external1.external1;exports.dynamic=dynamic;for(var k in external2){if(k!=='default'&&!exports.hasOwnProperty(k))exports[k]=external2[k]}Object.defineProperty(exports,'__esModule',{value:true});})); \ No newline at end of file +(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports,require('external1'),require('external2')):typeof define==='function'&&define.amd?define(['exports','external1','external2'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.bundle={},g.external1,g.external2));})(this,(function(exports,external1,external2){'use strict';const dynamic = import('external3');exports.external1=external1.external1;exports.dynamic=dynamic;for(var k in external2){if(k!=='default'&&!exports.hasOwnProperty(k))exports[k]=external2[k]}})); \ No newline at end of file diff --git a/test/form/samples/no-external-live-bindings/_expected/amd.js b/test/form/samples/no-external-live-bindings/_expected/amd.js index b0d39bd09bf..46fe8d1c810 100644 --- a/test/form/samples/no-external-live-bindings/_expected/amd.js +++ b/test/form/samples/no-external-live-bindings/_expected/amd.js @@ -19,6 +19,4 @@ define(['require', 'exports', 'external1', 'external2'], (function (require, exp if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = external2[k]; } - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/no-external-live-bindings/_expected/cjs.js b/test/form/samples/no-external-live-bindings/_expected/cjs.js index d215417797f..0303fbd1d56 100644 --- a/test/form/samples/no-external-live-bindings/_expected/cjs.js +++ b/test/form/samples/no-external-live-bindings/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external1 = require('external1'); var external2 = require('external2'); diff --git a/test/form/samples/no-external-live-bindings/_expected/iife.js b/test/form/samples/no-external-live-bindings/_expected/iife.js index 5bee7f640b5..06927fa4cdd 100644 --- a/test/form/samples/no-external-live-bindings/_expected/iife.js +++ b/test/form/samples/no-external-live-bindings/_expected/iife.js @@ -9,8 +9,6 @@ var bundle = (function (exports, external1, external2) { if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = external2[k]; } - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external1, external2); diff --git a/test/form/samples/no-external-live-bindings/_expected/umd.js b/test/form/samples/no-external-live-bindings/_expected/umd.js index 5ce46e0ec54..1186ec6c76a 100644 --- a/test/form/samples/no-external-live-bindings/_expected/umd.js +++ b/test/form/samples/no-external-live-bindings/_expected/umd.js @@ -12,6 +12,4 @@ if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = external2[k]; } - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/ns-external-star-reexport/_expected/amd.js b/test/form/samples/ns-external-star-reexport/_expected/amd.js index 8ffc138ec31..8eb9be8902f 100644 --- a/test/form/samples/ns-external-star-reexport/_expected/amd.js +++ b/test/form/samples/ns-external-star-reexport/_expected/amd.js @@ -54,6 +54,4 @@ define(['exports', 'external1', 'external2'], (function (exports, external1, ext exports.external = reexportExternal; exports.externalOverride = reexportExternalsWithOverride$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/ns-external-star-reexport/_expected/cjs.js b/test/form/samples/ns-external-star-reexport/_expected/cjs.js index dd980adc3e0..1991adf9634 100644 --- a/test/form/samples/ns-external-star-reexport/_expected/cjs.js +++ b/test/form/samples/ns-external-star-reexport/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external1 = require('external1'); var external2 = require('external2'); diff --git a/test/form/samples/ns-external-star-reexport/_expected/iife.js b/test/form/samples/ns-external-star-reexport/_expected/iife.js index 2a7a88bffd9..0ed10a3c0bb 100644 --- a/test/form/samples/ns-external-star-reexport/_expected/iife.js +++ b/test/form/samples/ns-external-star-reexport/_expected/iife.js @@ -55,8 +55,6 @@ var bundle = (function (exports, external1, external2) { exports.external = reexportExternal; exports.externalOverride = reexportExternalsWithOverride$1; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external1, external2); diff --git a/test/form/samples/ns-external-star-reexport/_expected/umd.js b/test/form/samples/ns-external-star-reexport/_expected/umd.js index 4fef1eac9b6..d23f8c02a58 100644 --- a/test/form/samples/ns-external-star-reexport/_expected/umd.js +++ b/test/form/samples/ns-external-star-reexport/_expected/umd.js @@ -58,6 +58,4 @@ exports.external = reexportExternal; exports.externalOverride = reexportExternalsWithOverride$1; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/output-named-library/_expected/amd.js b/test/form/samples/output-named-library/_expected/amd.js index e7a86ac713a..2d2b0559bd8 100644 --- a/test/form/samples/output-named-library/_expected/amd.js +++ b/test/form/samples/output-named-library/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.valueOnLib = valueOnLib; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/output-named-library/_expected/cjs.js b/test/form/samples/output-named-library/_expected/cjs.js index 9b595a69c87..45a2994456d 100644 --- a/test/form/samples/output-named-library/_expected/cjs.js +++ b/test/form/samples/output-named-library/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const valueOnLib = 42; exports.valueOnLib = valueOnLib; diff --git a/test/form/samples/output-named-library/_expected/iife.js b/test/form/samples/output-named-library/_expected/iife.js index 57d5a9a9094..d1cd25a943f 100644 --- a/test/form/samples/output-named-library/_expected/iife.js +++ b/test/form/samples/output-named-library/_expected/iife.js @@ -5,8 +5,6 @@ var libraryName = (function (exports) { exports.valueOnLib = valueOnLib; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/output-named-library/_expected/umd.js b/test/form/samples/output-named-library/_expected/umd.js index fba8d4bd67e..144735e8bc0 100644 --- a/test/form/samples/output-named-library/_expected/umd.js +++ b/test/form/samples/output-named-library/_expected/umd.js @@ -8,6 +8,4 @@ exports.valueOnLib = valueOnLib; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/override-external-namespace/_expected/amd.js b/test/form/samples/override-external-namespace/_expected/amd.js index fc03dcf6dea..8910f9431c9 100644 --- a/test/form/samples/override-external-namespace/_expected/amd.js +++ b/test/form/samples/override-external-namespace/_expected/amd.js @@ -15,6 +15,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/override-external-namespace/_expected/cjs.js b/test/form/samples/override-external-namespace/_expected/cjs.js index 0facc0aac55..1f13331dd05 100644 --- a/test/form/samples/override-external-namespace/_expected/cjs.js +++ b/test/form/samples/override-external-namespace/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); const a = 'defined'; diff --git a/test/form/samples/override-external-namespace/_expected/iife.js b/test/form/samples/override-external-namespace/_expected/iife.js index d6e095526e8..c571fe44af3 100644 --- a/test/form/samples/override-external-namespace/_expected/iife.js +++ b/test/form/samples/override-external-namespace/_expected/iife.js @@ -16,8 +16,6 @@ var bundle = (function (exports, external) { }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/form/samples/override-external-namespace/_expected/umd.js b/test/form/samples/override-external-namespace/_expected/umd.js index 2b09422a428..3e0f5749b3d 100644 --- a/test/form/samples/override-external-namespace/_expected/umd.js +++ b/test/form/samples/override-external-namespace/_expected/umd.js @@ -19,6 +19,4 @@ }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/pattern-assignments/_expected/amd.js b/test/form/samples/pattern-assignments/_expected/amd.js index f940a27220d..8ab0b9501c5 100644 --- a/test/form/samples/pattern-assignments/_expected/amd.js +++ b/test/form/samples/pattern-assignments/_expected/amd.js @@ -39,6 +39,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.u = u; exports.v = v; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/pattern-assignments/_expected/cjs.js b/test/form/samples/pattern-assignments/_expected/cjs.js index f663cfac812..4e1887b44fd 100644 --- a/test/form/samples/pattern-assignments/_expected/cjs.js +++ b/test/form/samples/pattern-assignments/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var effect = () => console.log( 'effect' ); var { a } = { a: effect }; diff --git a/test/form/samples/pattern-assignments/_expected/iife.js b/test/form/samples/pattern-assignments/_expected/iife.js index 2cbaf059823..2c099588d58 100644 --- a/test/form/samples/pattern-assignments/_expected/iife.js +++ b/test/form/samples/pattern-assignments/_expected/iife.js @@ -40,8 +40,6 @@ var bundle = (function (exports) { exports.u = u; exports.v = v; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/pattern-assignments/_expected/umd.js b/test/form/samples/pattern-assignments/_expected/umd.js index 2b85f898faa..1f35fee60c5 100644 --- a/test/form/samples/pattern-assignments/_expected/umd.js +++ b/test/form/samples/pattern-assignments/_expected/umd.js @@ -43,6 +43,4 @@ exports.u = u; exports.v = v; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/preserves-comments-after-imports/_expected/amd.js b/test/form/samples/preserves-comments-after-imports/_expected/amd.js index 66dc63f5caa..a923b337417 100644 --- a/test/form/samples/preserves-comments-after-imports/_expected/amd.js +++ b/test/form/samples/preserves-comments-after-imports/_expected/amd.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.obj = obj; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/preserves-comments-after-imports/_expected/cjs.js b/test/form/samples/preserves-comments-after-imports/_expected/cjs.js index 723b1cb3ec0..8b15cd1f241 100644 --- a/test/form/samples/preserves-comments-after-imports/_expected/cjs.js +++ b/test/form/samples/preserves-comments-after-imports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - /** A comment for a number */ var number = 5; diff --git a/test/form/samples/preserves-comments-after-imports/_expected/iife.js b/test/form/samples/preserves-comments-after-imports/_expected/iife.js index dc0d9a8c7e0..64982e6ee3e 100644 --- a/test/form/samples/preserves-comments-after-imports/_expected/iife.js +++ b/test/form/samples/preserves-comments-after-imports/_expected/iife.js @@ -9,8 +9,6 @@ var myBundle = (function (exports) { exports.obj = obj; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/preserves-comments-after-imports/_expected/umd.js b/test/form/samples/preserves-comments-after-imports/_expected/umd.js index 220feb47624..6ebd8d6cbd3 100644 --- a/test/form/samples/preserves-comments-after-imports/_expected/umd.js +++ b/test/form/samples/preserves-comments-after-imports/_expected/umd.js @@ -12,6 +12,4 @@ exports.obj = obj; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/protect-cjs-globals/_expected/amd.js b/test/form/samples/protect-cjs-globals/_expected/amd.js index 17a88fc547b..2f06d90e7b6 100644 --- a/test/form/samples/protect-cjs-globals/_expected/amd.js +++ b/test/form/samples/protect-cjs-globals/_expected/amd.js @@ -12,6 +12,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.module = module; exports.require = require; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/protect-cjs-globals/_expected/cjs.js b/test/form/samples/protect-cjs-globals/_expected/cjs.js index 513260e0d7d..1303a625cb0 100644 --- a/test/form/samples/protect-cjs-globals/_expected/cjs.js +++ b/test/form/samples/protect-cjs-globals/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const exports$1 = 1; const require$1 = 2; const module$1 = 3; diff --git a/test/form/samples/protect-cjs-globals/_expected/iife.js b/test/form/samples/protect-cjs-globals/_expected/iife.js index 00172dddd39..37e2831d6fa 100644 --- a/test/form/samples/protect-cjs-globals/_expected/iife.js +++ b/test/form/samples/protect-cjs-globals/_expected/iife.js @@ -13,8 +13,6 @@ var bundle = (function (exports) { exports.module = module; exports.require = require; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/protect-cjs-globals/_expected/umd.js b/test/form/samples/protect-cjs-globals/_expected/umd.js index edcfbfc7349..91c7e195e56 100644 --- a/test/form/samples/protect-cjs-globals/_expected/umd.js +++ b/test/form/samples/protect-cjs-globals/_expected/umd.js @@ -16,6 +16,4 @@ exports.module = module; exports.require = require; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/re-export-aliasing/_expected/amd.js b/test/form/samples/re-export-aliasing/_expected/amd.js index fc944e56023..887ae736960 100644 --- a/test/form/samples/re-export-aliasing/_expected/amd.js +++ b/test/form/samples/re-export-aliasing/_expected/amd.js @@ -7,6 +7,4 @@ define(['exports', 'd'], (function (exports, d) { 'use strict'; get: function () { return d.d; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/re-export-aliasing/_expected/cjs.js b/test/form/samples/re-export-aliasing/_expected/cjs.js index 4daace86d00..d5b742f7313 100644 --- a/test/form/samples/re-export-aliasing/_expected/cjs.js +++ b/test/form/samples/re-export-aliasing/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var d = require('d'); diff --git a/test/form/samples/re-export-aliasing/_expected/iife.js b/test/form/samples/re-export-aliasing/_expected/iife.js index 4271c780612..d65fce2c1ef 100644 --- a/test/form/samples/re-export-aliasing/_expected/iife.js +++ b/test/form/samples/re-export-aliasing/_expected/iife.js @@ -8,8 +8,6 @@ var reexportsAliasingExternal = (function (exports, d) { get: function () { return d.d; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, d); diff --git a/test/form/samples/re-export-aliasing/_expected/umd.js b/test/form/samples/re-export-aliasing/_expected/umd.js index ac9465b82b4..6c9b34df21e 100644 --- a/test/form/samples/re-export-aliasing/_expected/umd.js +++ b/test/form/samples/re-export-aliasing/_expected/umd.js @@ -9,6 +9,4 @@ get: function () { return d.d; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reassigned-exported-functions-and-classes/_expected/amd.js b/test/form/samples/reassigned-exported-functions-and-classes/_expected/amd.js index b65b3e3e61d..9b2fa64c035 100644 --- a/test/form/samples/reassigned-exported-functions-and-classes/_expected/amd.js +++ b/test/form/samples/reassigned-exported-functions-and-classes/_expected/amd.js @@ -9,6 +9,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.bar = bar; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reassigned-exported-functions-and-classes/_expected/cjs.js b/test/form/samples/reassigned-exported-functions-and-classes/_expected/cjs.js index 953927befc5..d9fbc579806 100644 --- a/test/form/samples/reassigned-exported-functions-and-classes/_expected/cjs.js +++ b/test/form/samples/reassigned-exported-functions-and-classes/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function foo () {} foo = 1; diff --git a/test/form/samples/reassigned-exported-functions-and-classes/_expected/iife.js b/test/form/samples/reassigned-exported-functions-and-classes/_expected/iife.js index d5c2406026d..8ba9c38e0cf 100644 --- a/test/form/samples/reassigned-exported-functions-and-classes/_expected/iife.js +++ b/test/form/samples/reassigned-exported-functions-and-classes/_expected/iife.js @@ -10,8 +10,6 @@ var bundle = (function (exports) { exports.bar = bar; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/reassigned-exported-functions-and-classes/_expected/umd.js b/test/form/samples/reassigned-exported-functions-and-classes/_expected/umd.js index 453e5038a22..e749c11030a 100644 --- a/test/form/samples/reassigned-exported-functions-and-classes/_expected/umd.js +++ b/test/form/samples/reassigned-exported-functions-and-classes/_expected/umd.js @@ -13,6 +13,4 @@ exports.bar = bar; exports.foo = foo; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-external-default-as-name-and-name/_expected/amd.js b/test/form/samples/reexport-external-default-as-name-and-name/_expected/amd.js index a2fcc6a036b..0f081608f76 100644 --- a/test/form/samples/reexport-external-default-as-name-and-name/_expected/amd.js +++ b/test/form/samples/reexport-external-default-as-name-and-name/_expected/amd.js @@ -4,6 +4,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; exports.reexported = external; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-external-default-as-name-and-name/_expected/cjs.js b/test/form/samples/reexport-external-default-as-name-and-name/_expected/cjs.js index f4039072abc..5c131e7b0d0 100644 --- a/test/form/samples/reexport-external-default-as-name-and-name/_expected/cjs.js +++ b/test/form/samples/reexport-external-default-as-name-and-name/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); console.log(external.value); diff --git a/test/form/samples/reexport-external-default-as-name-and-name/_expected/iife.js b/test/form/samples/reexport-external-default-as-name-and-name/_expected/iife.js index f1777f25f3b..4d449cf4fbc 100644 --- a/test/form/samples/reexport-external-default-as-name-and-name/_expected/iife.js +++ b/test/form/samples/reexport-external-default-as-name-and-name/_expected/iife.js @@ -5,8 +5,6 @@ var bundle = (function (exports, external) { exports.reexported = external; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/form/samples/reexport-external-default-as-name-and-name/_expected/umd.js b/test/form/samples/reexport-external-default-as-name-and-name/_expected/umd.js index 36f82fcfffc..487302a71d7 100644 --- a/test/form/samples/reexport-external-default-as-name-and-name/_expected/umd.js +++ b/test/form/samples/reexport-external-default-as-name-and-name/_expected/umd.js @@ -8,6 +8,4 @@ exports.reexported = external; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-external-name/_expected/amd.js b/test/form/samples/reexport-external-name/_expected/amd.js index 4ab93afabb1..684bd771d5f 100644 --- a/test/form/samples/reexport-external-name/_expected/amd.js +++ b/test/form/samples/reexport-external-name/_expected/amd.js @@ -11,6 +11,4 @@ define(['exports', 'external1', 'external2'], (function (exports, external1, ext get: function () { return external2.foo; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-external-name/_expected/cjs.js b/test/form/samples/reexport-external-name/_expected/cjs.js index 7c751b91393..5aa22d86840 100644 --- a/test/form/samples/reexport-external-name/_expected/cjs.js +++ b/test/form/samples/reexport-external-name/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external1 = require('external1'); var external2 = require('external2'); diff --git a/test/form/samples/reexport-external-name/_expected/iife.js b/test/form/samples/reexport-external-name/_expected/iife.js index 6c685860aba..e3109dc3fe6 100644 --- a/test/form/samples/reexport-external-name/_expected/iife.js +++ b/test/form/samples/reexport-external-name/_expected/iife.js @@ -12,8 +12,6 @@ var bundle = (function (exports, external1, external2) { get: function () { return external2.foo; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external1, external2); diff --git a/test/form/samples/reexport-external-name/_expected/umd.js b/test/form/samples/reexport-external-name/_expected/umd.js index cc485108d86..055a5d51d42 100644 --- a/test/form/samples/reexport-external-name/_expected/umd.js +++ b/test/form/samples/reexport-external-name/_expected/umd.js @@ -13,6 +13,4 @@ get: function () { return external2.foo; } }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-external-namespace-as/_expected/amd.js b/test/form/samples/reexport-external-namespace-as/_expected/amd.js index 8f13cc5804e..a34c79682d0 100644 --- a/test/form/samples/reexport-external-namespace-as/_expected/amd.js +++ b/test/form/samples/reexport-external-namespace-as/_expected/amd.js @@ -24,6 +24,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; exports.external = external__namespace; exports.indirect = external__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-external-namespace-as/_expected/cjs.js b/test/form/samples/reexport-external-namespace-as/_expected/cjs.js index acb2aa992b6..c32f787db01 100644 --- a/test/form/samples/reexport-external-namespace-as/_expected/cjs.js +++ b/test/form/samples/reexport-external-namespace-as/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); function _interopNamespaceDefault(e) { diff --git a/test/form/samples/reexport-external-namespace-as/_expected/iife.js b/test/form/samples/reexport-external-namespace-as/_expected/iife.js index ad5fb948f91..3e5601fed23 100644 --- a/test/form/samples/reexport-external-namespace-as/_expected/iife.js +++ b/test/form/samples/reexport-external-namespace-as/_expected/iife.js @@ -25,8 +25,6 @@ var bundle = (function (exports, external) { exports.external = external__namespace; exports.indirect = external__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/form/samples/reexport-external-namespace-as/_expected/umd.js b/test/form/samples/reexport-external-namespace-as/_expected/umd.js index 3b14e561f38..7c6d425494d 100644 --- a/test/form/samples/reexport-external-namespace-as/_expected/umd.js +++ b/test/form/samples/reexport-external-namespace-as/_expected/umd.js @@ -28,6 +28,4 @@ exports.external = external__namespace; exports.indirect = external__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-external-namespace/_expected/amd.js b/test/form/samples/reexport-external-namespace/_expected/amd.js index 6431ea29f45..ed258cf8567 100644 --- a/test/form/samples/reexport-external-namespace/_expected/amd.js +++ b/test/form/samples/reexport-external-namespace/_expected/amd.js @@ -9,6 +9,4 @@ define(['exports', 'external'], (function (exports, external) { 'use strict'; }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-external-namespace/_expected/cjs.js b/test/form/samples/reexport-external-namespace/_expected/cjs.js index c7424a46c98..79c07555fd1 100644 --- a/test/form/samples/reexport-external-namespace/_expected/cjs.js +++ b/test/form/samples/reexport-external-namespace/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var external = require('external'); diff --git a/test/form/samples/reexport-external-namespace/_expected/iife.js b/test/form/samples/reexport-external-namespace/_expected/iife.js index a6f3b8c782d..c70e4c538ae 100644 --- a/test/form/samples/reexport-external-namespace/_expected/iife.js +++ b/test/form/samples/reexport-external-namespace/_expected/iife.js @@ -10,8 +10,6 @@ var bundle = (function (exports, external) { }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external); diff --git a/test/form/samples/reexport-external-namespace/_expected/umd.js b/test/form/samples/reexport-external-namespace/_expected/umd.js index 6f396ee06cf..495c87ce597 100644 --- a/test/form/samples/reexport-external-namespace/_expected/umd.js +++ b/test/form/samples/reexport-external-namespace/_expected/umd.js @@ -11,6 +11,4 @@ }); }); - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-used-external-namespace-as/_expected/amd.js b/test/form/samples/reexport-used-external-namespace-as/_expected/amd.js index c65464cc566..e707fe759d5 100644 --- a/test/form/samples/reexport-used-external-namespace-as/_expected/amd.js +++ b/test/form/samples/reexport-used-external-namespace-as/_expected/amd.js @@ -25,6 +25,4 @@ define(['exports', 'external1', 'external2'], (function (exports, imported1, ext exports.external1 = imported1__namespace; exports.external2 = external2__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/reexport-used-external-namespace-as/_expected/cjs.js b/test/form/samples/reexport-used-external-namespace-as/_expected/cjs.js index 1b73e13bc25..8ad9c96cf65 100644 --- a/test/form/samples/reexport-used-external-namespace-as/_expected/cjs.js +++ b/test/form/samples/reexport-used-external-namespace-as/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var imported1 = require('external1'); var external2 = require('external2'); diff --git a/test/form/samples/reexport-used-external-namespace-as/_expected/iife.js b/test/form/samples/reexport-used-external-namespace-as/_expected/iife.js index d187748e304..53940a08b7c 100644 --- a/test/form/samples/reexport-used-external-namespace-as/_expected/iife.js +++ b/test/form/samples/reexport-used-external-namespace-as/_expected/iife.js @@ -26,8 +26,6 @@ var bundle = (function (exports, imported1, external2) { exports.external1 = imported1__namespace; exports.external2 = external2__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, external1, external2); diff --git a/test/form/samples/reexport-used-external-namespace-as/_expected/umd.js b/test/form/samples/reexport-used-external-namespace-as/_expected/umd.js index 59d95d1ce51..5808e7786d4 100644 --- a/test/form/samples/reexport-used-external-namespace-as/_expected/umd.js +++ b/test/form/samples/reexport-used-external-namespace-as/_expected/umd.js @@ -29,6 +29,4 @@ exports.external1 = imported1__namespace; exports.external2 = external2__namespace; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/render-declaration-semicolons/_expected/amd.js b/test/form/samples/render-declaration-semicolons/_expected/amd.js index d59f1f9da9e..d5bb2f96660 100644 --- a/test/form/samples/render-declaration-semicolons/_expected/amd.js +++ b/test/form/samples/render-declaration-semicolons/_expected/amd.js @@ -29,6 +29,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.o = o; exports.p = p; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/render-declaration-semicolons/_expected/cjs.js b/test/form/samples/render-declaration-semicolons/_expected/cjs.js index c7e1b4cb0c7..21c4947ddaa 100644 --- a/test/form/samples/render-declaration-semicolons/_expected/cjs.js +++ b/test/form/samples/render-declaration-semicolons/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var a, b; console.log(a, b); diff --git a/test/form/samples/render-declaration-semicolons/_expected/iife.js b/test/form/samples/render-declaration-semicolons/_expected/iife.js index 120e97bed76..70af482ab1a 100644 --- a/test/form/samples/render-declaration-semicolons/_expected/iife.js +++ b/test/form/samples/render-declaration-semicolons/_expected/iife.js @@ -30,8 +30,6 @@ var bundle = (function (exports) { exports.o = o; exports.p = p; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/render-declaration-semicolons/_expected/umd.js b/test/form/samples/render-declaration-semicolons/_expected/umd.js index faf114da317..6f84eb14f44 100644 --- a/test/form/samples/render-declaration-semicolons/_expected/umd.js +++ b/test/form/samples/render-declaration-semicolons/_expected/umd.js @@ -33,6 +33,4 @@ exports.o = o; exports.p = p; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/render-named-export-declarations/_expected/amd.js b/test/form/samples/render-named-export-declarations/_expected/amd.js index 6a18a15abef..613cc34c2e4 100644 --- a/test/form/samples/render-named-export-declarations/_expected/amd.js +++ b/test/form/samples/render-named-export-declarations/_expected/amd.js @@ -17,6 +17,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.cFoo = cFoo; exports.dBar = dBar; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/render-named-export-declarations/_expected/cjs.js b/test/form/samples/render-named-export-declarations/_expected/cjs.js index f21aa19e750..9fb89410f31 100644 --- a/test/form/samples/render-named-export-declarations/_expected/cjs.js +++ b/test/form/samples/render-named-export-declarations/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var aFoo; exports.aBar = void 0; exports.aBar = 2; diff --git a/test/form/samples/render-named-export-declarations/_expected/iife.js b/test/form/samples/render-named-export-declarations/_expected/iife.js index 5267bf9d448..34eab475362 100644 --- a/test/form/samples/render-named-export-declarations/_expected/iife.js +++ b/test/form/samples/render-named-export-declarations/_expected/iife.js @@ -18,8 +18,6 @@ var bundle = (function (exports) { exports.cFoo = cFoo; exports.dBar = dBar; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/render-named-export-declarations/_expected/umd.js b/test/form/samples/render-named-export-declarations/_expected/umd.js index 9be6795e9cf..c889ff37651 100644 --- a/test/form/samples/render-named-export-declarations/_expected/umd.js +++ b/test/form/samples/render-named-export-declarations/_expected/umd.js @@ -21,6 +21,4 @@ exports.cFoo = cFoo; exports.dBar = dBar; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/resolve-external-dynamic-imports/_expected/amd.js b/test/form/samples/resolve-external-dynamic-imports/_expected/amd.js index 24c8f778082..8e6ef4e1af5 100644 --- a/test/form/samples/resolve-external-dynamic-imports/_expected/amd.js +++ b/test/form/samples/resolve-external-dynamic-imports/_expected/amd.js @@ -24,6 +24,4 @@ define(['require', 'exports', 'external'], (function (require, exports, myExtern exports.someDynamicImport = someDynamicImport; exports.test = test; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/resolve-external-dynamic-imports/_expected/cjs.js b/test/form/samples/resolve-external-dynamic-imports/_expected/cjs.js index d2d90cd4e22..c18ed55b1b4 100644 --- a/test/form/samples/resolve-external-dynamic-imports/_expected/cjs.js +++ b/test/form/samples/resolve-external-dynamic-imports/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var myExternal = require('external'); function _interopNamespaceDefault(e) { diff --git a/test/form/samples/resolve-external-dynamic-imports/_expected/iife.js b/test/form/samples/resolve-external-dynamic-imports/_expected/iife.js index ef8a0c3e226..dd9cc63ac78 100644 --- a/test/form/samples/resolve-external-dynamic-imports/_expected/iife.js +++ b/test/form/samples/resolve-external-dynamic-imports/_expected/iife.js @@ -8,8 +8,6 @@ var bundle = (function (exports, myExternal) { exports.someDynamicImport = someDynamicImport; exports.test = test; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}, myExternal); diff --git a/test/form/samples/resolve-external-dynamic-imports/_expected/umd.js b/test/form/samples/resolve-external-dynamic-imports/_expected/umd.js index 7ce5c836cee..b66451582d9 100644 --- a/test/form/samples/resolve-external-dynamic-imports/_expected/umd.js +++ b/test/form/samples/resolve-external-dynamic-imports/_expected/umd.js @@ -11,6 +11,4 @@ exports.someDynamicImport = someDynamicImport; exports.test = test; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/resolve-import-meta-url-export/_expected/amd.js b/test/form/samples/resolve-import-meta-url-export/_expected/amd.js index 90ecd765508..f68ef1ec247 100644 --- a/test/form/samples/resolve-import-meta-url-export/_expected/amd.js +++ b/test/form/samples/resolve-import-meta-url-export/_expected/amd.js @@ -6,6 +6,4 @@ define(['module', 'exports'], (function (module, exports) { 'use strict'; exports.meta = meta; exports.url = url; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/resolve-import-meta-url-export/_expected/cjs.js b/test/form/samples/resolve-import-meta-url-export/_expected/cjs.js index 13803f6f4ab..c99ee245fd6 100644 --- a/test/form/samples/resolve-import-meta-url-export/_expected/cjs.js +++ b/test/form/samples/resolve-import-meta-url-export/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const url = 'url'; const meta = 'meta'; diff --git a/test/form/samples/resolve-import-meta-url-export/_expected/iife.js b/test/form/samples/resolve-import-meta-url-export/_expected/iife.js index a4c48f8c50f..0341d484e2c 100644 --- a/test/form/samples/resolve-import-meta-url-export/_expected/iife.js +++ b/test/form/samples/resolve-import-meta-url-export/_expected/iife.js @@ -7,8 +7,6 @@ var bundle = (function (exports) { exports.meta = meta; exports.url = url; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/resolve-import-meta-url-export/_expected/umd.js b/test/form/samples/resolve-import-meta-url-export/_expected/umd.js index 92b28d4a0b7..1220e540a99 100644 --- a/test/form/samples/resolve-import-meta-url-export/_expected/umd.js +++ b/test/form/samples/resolve-import-meta-url-export/_expected/umd.js @@ -10,6 +10,4 @@ exports.meta = meta; exports.url = url; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/side-effects-delete/_expected/amd.js b/test/form/samples/side-effects-delete/_expected/amd.js index 0abd4b8301a..b7ea318adf5 100644 --- a/test/form/samples/side-effects-delete/_expected/amd.js +++ b/test/form/samples/side-effects-delete/_expected/amd.js @@ -7,6 +7,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.x = x; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/side-effects-delete/_expected/cjs.js b/test/form/samples/side-effects-delete/_expected/cjs.js index cdaada5d697..e6921aece27 100644 --- a/test/form/samples/side-effects-delete/_expected/cjs.js +++ b/test/form/samples/side-effects-delete/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - var x = {foo: 'bar'}; delete x.foo; diff --git a/test/form/samples/side-effects-delete/_expected/iife.js b/test/form/samples/side-effects-delete/_expected/iife.js index 0040d79d24c..90c7a370402 100644 --- a/test/form/samples/side-effects-delete/_expected/iife.js +++ b/test/form/samples/side-effects-delete/_expected/iife.js @@ -8,8 +8,6 @@ var myBundle = (function (exports) { exports.x = x; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/side-effects-delete/_expected/umd.js b/test/form/samples/side-effects-delete/_expected/umd.js index 2fb476fd0cf..d91938bdd0c 100644 --- a/test/form/samples/side-effects-delete/_expected/umd.js +++ b/test/form/samples/side-effects-delete/_expected/umd.js @@ -11,6 +11,4 @@ exports.x = x; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/simplified-initializer/_expected/amd.js b/test/form/samples/simplified-initializer/_expected/amd.js index 6819298bda7..a1219a0a4d0 100644 --- a/test/form/samples/simplified-initializer/_expected/amd.js +++ b/test/form/samples/simplified-initializer/_expected/amd.js @@ -8,6 +8,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.b = b; exports.c = c; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/simplified-initializer/_expected/cjs.js b/test/form/samples/simplified-initializer/_expected/cjs.js index 495e50393b3..188f321a643 100644 --- a/test/form/samples/simplified-initializer/_expected/cjs.js +++ b/test/form/samples/simplified-initializer/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - const a = window.config ? 1 : 2; const b = 1 ; const c = 2; diff --git a/test/form/samples/simplified-initializer/_expected/iife.js b/test/form/samples/simplified-initializer/_expected/iife.js index 150de538b8a..e89d9eba578 100644 --- a/test/form/samples/simplified-initializer/_expected/iife.js +++ b/test/form/samples/simplified-initializer/_expected/iife.js @@ -9,8 +9,6 @@ var bundle = (function (exports) { exports.b = b; exports.c = c; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/simplified-initializer/_expected/umd.js b/test/form/samples/simplified-initializer/_expected/umd.js index 7acdf13041f..dc1af22f9d6 100644 --- a/test/form/samples/simplified-initializer/_expected/umd.js +++ b/test/form/samples/simplified-initializer/_expected/umd.js @@ -12,6 +12,4 @@ exports.b = b; exports.c = c; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/umd-noconflict-extend/_expected/amd.js b/test/form/samples/umd-noconflict-extend/_expected/amd.js index 092454a1efe..7854ff6b6a0 100644 --- a/test/form/samples/umd-noconflict-extend/_expected/amd.js +++ b/test/form/samples/umd-noconflict-extend/_expected/amd.js @@ -12,6 +12,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/umd-noconflict-extend/_expected/cjs.js b/test/form/samples/umd-noconflict-extend/_expected/cjs.js index 05952881691..94847dc35a0 100644 --- a/test/form/samples/umd-noconflict-extend/_expected/cjs.js +++ b/test/form/samples/umd-noconflict-extend/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function doThings() { console.log( 'doing things...' ); } diff --git a/test/form/samples/umd-noconflict-extend/_expected/iife.js b/test/form/samples/umd-noconflict-extend/_expected/iife.js index aa51ff5b9d3..3458187fb27 100644 --- a/test/form/samples/umd-noconflict-extend/_expected/iife.js +++ b/test/form/samples/umd-noconflict-extend/_expected/iife.js @@ -13,6 +13,4 @@ exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - })(this.FooBar = this.FooBar || {}); diff --git a/test/form/samples/umd-noconflict-extend/_expected/umd.js b/test/form/samples/umd-noconflict-extend/_expected/umd.js index 6e452e207d3..d3628d82101 100644 --- a/test/form/samples/umd-noconflict-extend/_expected/umd.js +++ b/test/form/samples/umd-noconflict-extend/_expected/umd.js @@ -21,6 +21,4 @@ exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/umd-noconflict-namespaced/_expected/amd.js b/test/form/samples/umd-noconflict-namespaced/_expected/amd.js index 092454a1efe..7854ff6b6a0 100644 --- a/test/form/samples/umd-noconflict-namespaced/_expected/amd.js +++ b/test/form/samples/umd-noconflict-namespaced/_expected/amd.js @@ -12,6 +12,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/umd-noconflict-namespaced/_expected/cjs.js b/test/form/samples/umd-noconflict-namespaced/_expected/cjs.js index 05952881691..94847dc35a0 100644 --- a/test/form/samples/umd-noconflict-namespaced/_expected/cjs.js +++ b/test/form/samples/umd-noconflict-namespaced/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function doThings() { console.log( 'doing things...' ); } diff --git a/test/form/samples/umd-noconflict-namespaced/_expected/iife.js b/test/form/samples/umd-noconflict-namespaced/_expected/iife.js index 93be5fa03fe..9499324cf8e 100644 --- a/test/form/samples/umd-noconflict-namespaced/_expected/iife.js +++ b/test/form/samples/umd-noconflict-namespaced/_expected/iife.js @@ -16,8 +16,6 @@ this.my.name.spaced.module = (function (exports) { exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/umd-noconflict-namespaced/_expected/umd.js b/test/form/samples/umd-noconflict-namespaced/_expected/umd.js index 81960e08580..7bc84974f32 100644 --- a/test/form/samples/umd-noconflict-namespaced/_expected/umd.js +++ b/test/form/samples/umd-noconflict-namespaced/_expected/umd.js @@ -21,6 +21,4 @@ exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/umd-noconflict/_expected/amd.js b/test/form/samples/umd-noconflict/_expected/amd.js index 092454a1efe..7854ff6b6a0 100644 --- a/test/form/samples/umd-noconflict/_expected/amd.js +++ b/test/form/samples/umd-noconflict/_expected/amd.js @@ -12,6 +12,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/umd-noconflict/_expected/cjs.js b/test/form/samples/umd-noconflict/_expected/cjs.js index 05952881691..94847dc35a0 100644 --- a/test/form/samples/umd-noconflict/_expected/cjs.js +++ b/test/form/samples/umd-noconflict/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - function doThings() { console.log( 'doing things...' ); } diff --git a/test/form/samples/umd-noconflict/_expected/iife.js b/test/form/samples/umd-noconflict/_expected/iife.js index 82360ea4bd7..257d74ec593 100644 --- a/test/form/samples/umd-noconflict/_expected/iife.js +++ b/test/form/samples/umd-noconflict/_expected/iife.js @@ -13,8 +13,6 @@ var FooBar = (function (exports) { exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/umd-noconflict/_expected/umd.js b/test/form/samples/umd-noconflict/_expected/umd.js index b7324ca82a4..a6ac7db34f1 100644 --- a/test/form/samples/umd-noconflict/_expected/umd.js +++ b/test/form/samples/umd-noconflict/_expected/umd.js @@ -21,6 +21,4 @@ exports.number = number; exports.setting = setting; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/updating-assignments/_expected/amd.js b/test/form/samples/updating-assignments/_expected/amd.js index 0d08c9de51e..b93e3af25aa 100644 --- a/test/form/samples/updating-assignments/_expected/amd.js +++ b/test/form/samples/updating-assignments/_expected/amd.js @@ -15,6 +15,4 @@ define(['exports'], (function (exports) { 'use strict'; exports.x ^= 2; exports.x |= 2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/form/samples/updating-assignments/_expected/cjs.js b/test/form/samples/updating-assignments/_expected/cjs.js index 3824b02062a..fe8c94b26dd 100644 --- a/test/form/samples/updating-assignments/_expected/cjs.js +++ b/test/form/samples/updating-assignments/_expected/cjs.js @@ -1,7 +1,5 @@ 'use strict'; -Object.defineProperty(exports, '__esModule', { value: true }); - exports.x = 1; exports.x = 2; exports.x += 1; diff --git a/test/form/samples/updating-assignments/_expected/iife.js b/test/form/samples/updating-assignments/_expected/iife.js index f4243a16550..913bb7b37b6 100644 --- a/test/form/samples/updating-assignments/_expected/iife.js +++ b/test/form/samples/updating-assignments/_expected/iife.js @@ -16,8 +16,6 @@ var bundle = (function (exports) { exports.x ^= 2; exports.x |= 2; - Object.defineProperty(exports, '__esModule', { value: true }); - return exports; })({}); diff --git a/test/form/samples/updating-assignments/_expected/umd.js b/test/form/samples/updating-assignments/_expected/umd.js index eb0dee7fe24..66d4cfdb2c9 100644 --- a/test/form/samples/updating-assignments/_expected/umd.js +++ b/test/form/samples/updating-assignments/_expected/umd.js @@ -19,6 +19,4 @@ exports.x ^= 2; exports.x |= 2; - Object.defineProperty(exports, '__esModule', { value: true }); - })); diff --git a/test/function/samples/output-options-hook/_config.js b/test/function/samples/output-options-hook/_config.js index 03a89029fcc..0f65c9bae60 100644 --- a/test/function/samples/output-options-hook/_config.js +++ b/test/function/samples/output-options-hook/_config.js @@ -24,7 +24,7 @@ module.exports = { chunkFileNames: '[name]-[hash].js', compact: false, entryFileNames: '[name].js', - esModule: true, + esModule: 'if-default-prop', exports: 'auto', extend: false, externalLiveBindings: true, diff --git a/test/misc/iife.js b/test/misc/iife.js index 3adf428a1f6..759a053132a 100644 --- a/test/misc/iife.js +++ b/test/misc/iife.js @@ -136,8 +136,6 @@ describe('The IIFE wrapper with an illegal name', () => { '\n' + '\texports.x = x;\n' + '\n' + - "\tObject.defineProperty(exports, '__esModule', { value: true });\n" + - '\n' + '})(this["my=name"] = this["my=name"] || {});\n' ) ));