-
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
4,487 additions
and
1,712 deletions.
There are no files selected for viewing
17 changes: 12 additions & 5 deletions
17
packages/commonjs/test/fixtures/form/async-function/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
|
||
var input = async function () { | ||
// TODO | ||
}; | ||
var input; | ||
var hasRequiredInput; | ||
|
||
export default /*@__PURE__*/commonjsHelpers.getDefaultExportFromCjs(input); | ||
export { input as __moduleExports }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input = async function () { | ||
// TODO | ||
}; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/compiled-esm-assign-exports/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/compiled-esm-assign-exports/input.js?commonjs-exports"; | ||
|
||
input.__esModule = true; | ||
var _default = input.default = 'x'; | ||
var foo = input.foo = 'foo'; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, foo, _default as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input.__esModule = true; | ||
input.default = 'x'; | ||
input.foo = 'foo'; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/compiled-esm-assign-module/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/compiled-esm-assign-module/input.js?commonjs-exports"; | ||
|
||
input.__esModule = true; | ||
var _default = input.default = 'x'; | ||
var foo = input.foo = 'foo'; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, foo, _default as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input.__esModule = true; | ||
input.default = 'x'; | ||
input.foo = 'foo'; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/compiled-esm-deconflict/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/compiled-esm-deconflict/input.js?commonjs-exports"; | ||
|
||
Object.defineProperty(input, '__esModule', { value: true }); | ||
var foo_1 = input.foo = 'bar'; | ||
var hasRequiredInput; | ||
|
||
const foo = 'also bar'; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
Object.defineProperty(input, '__esModule', { value: true }); | ||
input.foo = 'bar'; | ||
|
||
export { input as __moduleExports, foo_1 as foo, input as default }; | ||
const foo = 'also bar'; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
11 changes: 9 additions & 2 deletions
11
packages/commonjs/test/fixtures/form/compiled-esm-define-exports-empty/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/compiled-esm-define-exports-empty/input.js?commonjs-exports"; | ||
|
||
Object.defineProperty(input, "__esModule", { value: true }); | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, input as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
Object.defineProperty(input, "__esModule", { value: true }); | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/compiled-esm-define-exports/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/compiled-esm-define-exports/input.js?commonjs-exports"; | ||
|
||
Object.defineProperty(input, '__esModule', { value: true }); | ||
var _default = input.default = 'x'; | ||
var foo = input.foo = 'foo'; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, foo, _default as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
Object.defineProperty(input, '__esModule', { value: true }); | ||
input.default = 'x'; | ||
input.foo = 'foo'; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/compiled-esm-define-module/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/compiled-esm-define-module/input.js?commonjs-exports"; | ||
|
||
Object.defineProperty(input, '__esModule', { value: true }); | ||
var _default = input.default = 'x'; | ||
var foo = input.foo = 'foo'; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, foo, _default as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
Object.defineProperty(input, '__esModule', { value: true }); | ||
input.default = 'x'; | ||
input.foo = 'foo'; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
13 changes: 10 additions & 3 deletions
13
packages/commonjs/test/fixtures/form/compiled-esm-minified/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/compiled-esm-minified/input.js?commonjs-exports"; | ||
|
||
Object.defineProperty(input, '__esModule', { value: !0 }); | ||
var foo = input.foo = 'foo'; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, foo, input as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
Object.defineProperty(input, '__esModule', { value: !0 }); | ||
input.foo = 'foo'; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/compiled-esm-only-named/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/compiled-esm-only-named/input.js?commonjs-exports"; | ||
|
||
Object.defineProperty(input, '__esModule', { value: true }); | ||
var foo = input.foo = 'bar'; | ||
var bar = input.bar = 'foo'; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, foo, bar, input as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
Object.defineProperty(input, '__esModule', { value: true }); | ||
input.foo = 'bar'; | ||
input.bar = 'foo'; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/defaultIsModuleExports-auto-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/defaultIsModuleExports-auto-__esModule/input.js?commonjs-exports"; | ||
|
||
input.__esModule = true; | ||
var _default = input.default = 2; | ||
var named = input.named = 3; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, named, _default as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input.__esModule = true; | ||
input.default = 2; | ||
input.named = 3; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
13 changes: 10 additions & 3 deletions
13
packages/commonjs/test/fixtures/form/defaultIsModuleExports-auto-no-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/defaultIsModuleExports-auto-no-__esModule/input.js?commonjs-exports"; | ||
|
||
var _default = input.default = 2; | ||
var named = input.named = 3; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, named, input as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input.default = 2; | ||
input.named = 3; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
13 changes: 10 additions & 3 deletions
13
...onjs/test/fixtures/form/defaultIsModuleExports-auto-reassign-exports-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
|
||
var input = { __esModule: true, default: { foo: 'bar' }} | ||
var input; | ||
var hasRequiredInput; | ||
|
||
export default /*@__PURE__*/commonjsHelpers.getDefaultExportFromCjs(input); | ||
export { input as __moduleExports }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input = { __esModule: true, default: { foo: 'bar' }} | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
13 changes: 10 additions & 3 deletions
13
...s/test/fixtures/form/defaultIsModuleExports-auto-reassign-exports-no-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
|
||
var input = { default: { foo: 'bar' }} | ||
var input; | ||
var hasRequiredInput; | ||
|
||
export default /*@__PURE__*/commonjsHelpers.getDefaultExportFromCjs(input); | ||
export { input as __moduleExports }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input = { default: { foo: 'bar' }} | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/defaultIsModuleExports-false-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/defaultIsModuleExports-false-__esModule/input.js?commonjs-exports"; | ||
|
||
input.__esModule = true; | ||
var _default = input.default = 2; | ||
var named = input.named = 3; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, named, _default as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input.__esModule = true; | ||
input.default = 2; | ||
input.named = 3; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
13 changes: 10 additions & 3 deletions
13
packages/commonjs/test/fixtures/form/defaultIsModuleExports-false-no-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/defaultIsModuleExports-false-no-__esModule/input.js?commonjs-exports"; | ||
|
||
var _default = input.default = 2; | ||
var named = input.named = 3; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, named, _default as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input.default = 2; | ||
input.named = 3; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
11 changes: 9 additions & 2 deletions
11
packages/commonjs/test/fixtures/form/defaultIsModuleExports-false-no-default/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/defaultIsModuleExports-false-no-default/input.js?commonjs-exports"; | ||
|
||
var named = input.named = 3; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, named, input as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input.named = 3; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
13 changes: 10 additions & 3 deletions
13
...njs/test/fixtures/form/defaultIsModuleExports-false-reassign-exports-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
|
||
var input = { __esModule: true, default: { foo: 'bar' }}; | ||
var input; | ||
var hasRequiredInput; | ||
|
||
export default input.default; | ||
export { input as __moduleExports }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input = { __esModule: true, default: { foo: 'bar' }}; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
13 changes: 10 additions & 3 deletions
13
.../test/fixtures/form/defaultIsModuleExports-false-reassign-exports-no-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
|
||
var input = { default: { foo: 'bar' }}; | ||
var input; | ||
var hasRequiredInput; | ||
|
||
export default input.default; | ||
export { input as __moduleExports }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input = { default: { foo: 'bar' }}; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
15 changes: 11 additions & 4 deletions
15
packages/commonjs/test/fixtures/form/defaultIsModuleExports-true-__esModule/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import * as commonjsHelpers from "_commonjsHelpers.js"; | ||
import { __exports as input } from "\u0000fixtures/form/defaultIsModuleExports-true-__esModule/input.js?commonjs-exports"; | ||
|
||
input.__esModule = true; | ||
var _default = input.default = 2; | ||
var named = input.named = 3; | ||
var hasRequiredInput; | ||
|
||
export { input as __moduleExports, named, input as default }; | ||
function requireInput () { | ||
if (hasRequiredInput) return input; | ||
hasRequiredInput = 1; | ||
input.__esModule = true; | ||
input.default = 2; | ||
input.named = 3; | ||
return input; | ||
} | ||
|
||
export { requireInput as __require }; |
Oops, something went wrong.