Skip to content

Commit

Permalink
test: update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Nov 27, 2023
1 parent 3e9230d commit a154222
Show file tree
Hide file tree
Showing 46 changed files with 4,487 additions and 1,712 deletions.
17 changes: 12 additions & 5 deletions packages/commonjs/test/fixtures/form/async-function/output.js
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ import * as commonjsHelpers from "_commonjsHelpers.js";
import { __module as inputModule } from "\u0000fixtures/form/compiled-esm-reassign-exports/input.js?commonjs-module";
var input = inputModule.exports;

Object.defineProperty(input, '__esModule', { value: true });
inputModule.exports = { foo: 'bar' };
var hasRequiredInput;

var inputExports = inputModule.exports;
export default /*@__PURE__*/commonjsHelpers.getDefaultExportFromCjs(inputExports);
export { inputExports as __moduleExports };
function requireInput () {
if (hasRequiredInput) return inputModule.exports;
hasRequiredInput = 1;
Object.defineProperty(input, '__esModule', { value: true });
inputModule.exports = { foo: 'bar' };
return inputModule.exports;
}

export { requireInput as __require };
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ import * as commonjsHelpers from "_commonjsHelpers.js";
import { __exports as input } from "\u0000fixtures/form/constant-template-literal/input.js?commonjs-exports";
import require$$0 from "\u0000CWD/fixtures/form/constant-template-literal/tape.js?commonjs-proxy";

var foo = require$$0;
console.log(foo);
var hasRequiredInput;

export { input as __moduleExports, input as default };
function requireInput () {
if (hasRequiredInput) return input;
hasRequiredInput = 1;
var foo = require$$0;
console.log(foo);
return input;
}

export { requireInput as __require };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
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 };
Loading

0 comments on commit a154222

Please sign in to comment.