-
Notifications
You must be signed in to change notification settings - Fork 59
/
entrypoints.ts.snap
218 lines (148 loc) Β· 6.17 KB
/
entrypoints.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`two entrypoints where one requires the other entrypoint: dist/importing-another-entrypoint.cjs.dev.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
let identity = x => x;
exports.identity = identity;
"
`;
exports[`two entrypoints where one requires the other entrypoint: dist/importing-another-entrypoint.cjs.js 1`] = `
"'use strict';
if (process.env.NODE_ENV === "production") {
module.exports = require("./importing-another-entrypoint.cjs.prod.js");
} else {
module.exports = require("./importing-another-entrypoint.cjs.dev.js");
}
"
`;
exports[`two entrypoints where one requires the other entrypoint: dist/importing-another-entrypoint.cjs.prod.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
let identity = x => x;
exports.identity = identity;
"
`;
exports[`two entrypoints where one requires the other entrypoint: multiply/dist/importing-another-entrypoint-multiply.cjs.dev.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var dist_importingAnotherEntrypoint = require('../../dist/importing-another-entrypoint.cjs.dev.js');
let multiply = (a, b) => dist_importingAnotherEntrypoint.identity(a * b);
exports.multiply = multiply;
"
`;
exports[`two entrypoints where one requires the other entrypoint: multiply/dist/importing-another-entrypoint-multiply.cjs.js 1`] = `
"'use strict';
if (process.env.NODE_ENV === "production") {
module.exports = require("./importing-another-entrypoint-multiply.cjs.prod.js");
} else {
module.exports = require("./importing-another-entrypoint-multiply.cjs.dev.js");
}
"
`;
exports[`two entrypoints where one requires the other entrypoint: multiply/dist/importing-another-entrypoint-multiply.cjs.prod.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var dist_importingAnotherEntrypoint = require('../../dist/importing-another-entrypoint.cjs.prod.js');
let multiply = (a, b) => dist_importingAnotherEntrypoint.identity(a * b);
exports.multiply = multiply;
"
`;
exports[`two entrypoints where one requires the other entrypoint: src/index.js 1`] = `"export let identity = (x) => x;"`;
exports[`two entrypoints where one requires the other entrypoint: src/multiply.js 1`] = `
"import { identity } from "./index";
export let multiply = (a, b) => identity(a * b);"
`;
exports[`two entrypoints with a common dependency: dist/common-dependency-two-entrypoints.cjs.dev.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var identity = require('./identity-some-hash.cjs.dev.js');
let sum = (a, b) => identity.identity(a + b);
exports.identity = identity.identity;
exports.sum = sum;
"
`;
exports[`two entrypoints with a common dependency: dist/common-dependency-two-entrypoints.cjs.js 1`] = `
"'use strict';
if (process.env.NODE_ENV === "production") {
module.exports = require("./common-dependency-two-entrypoints.cjs.prod.js");
} else {
module.exports = require("./common-dependency-two-entrypoints.cjs.dev.js");
}
"
`;
exports[`two entrypoints with a common dependency: dist/common-dependency-two-entrypoints.cjs.prod.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var identity = require('./identity-some-hash.cjs.prod.js');
let sum = (a, b) => identity.identity(a + b);
exports.identity = identity.identity;
exports.sum = sum;
"
`;
exports[`two entrypoints with a common dependency: dist/common-dependency-two-entrypoints.esm.js 1`] = `
"import { i as identity } from './identity-some-hash.esm.js';
let sum = (a, b) => identity(a + b);
export { identity, sum };
"
`;
exports[`two entrypoints with a common dependency: dist/identity-this-is-not-the-real-hash-09d8aa2cd41dd37e55ea1ca5c8546d35.esm.js 1`] = `
"let identity = x => x;
export { identity as i };
"
`;
exports[`two entrypoints with a common dependency: dist/identity-this-is-not-the-real-hash-f57161fefd97e3101601d153708a46b8.cjs.dev.js 1`] = `
"'use strict';
let identity = x => x;
exports.identity = identity;
"
`;
exports[`two entrypoints with a common dependency: dist/identity-this-is-not-the-real-hash-f57161fefd97e3101601d153708a46b8.cjs.prod.js 1`] = `
"'use strict';
let identity = x => x;
exports.identity = identity;
"
`;
exports[`two entrypoints with a common dependency: multiply/dist/common-dependency-two-entrypoints-multiply.cjs.dev.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var identity = require('../../dist/identity-some-hash.cjs.dev.js');
let multiply = (a, b) => identity.identity(a * b);
exports.identity = identity.identity;
exports.multiply = multiply;
"
`;
exports[`two entrypoints with a common dependency: multiply/dist/common-dependency-two-entrypoints-multiply.cjs.js 1`] = `
"'use strict';
if (process.env.NODE_ENV === "production") {
module.exports = require("./common-dependency-two-entrypoints-multiply.cjs.prod.js");
} else {
module.exports = require("./common-dependency-two-entrypoints-multiply.cjs.dev.js");
}
"
`;
exports[`two entrypoints with a common dependency: multiply/dist/common-dependency-two-entrypoints-multiply.cjs.prod.js 1`] = `
"'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var identity = require('../../dist/identity-some-hash.cjs.prod.js');
let multiply = (a, b) => identity.identity(a * b);
exports.identity = identity.identity;
exports.multiply = multiply;
"
`;
exports[`two entrypoints with a common dependency: multiply/dist/common-dependency-two-entrypoints-multiply.esm.js 1`] = `
"import { i as identity } from '../../dist/identity-some-hash.esm.js';
let multiply = (a, b) => identity(a * b);
export { identity, multiply };
"
`;
exports[`two entrypoints with a common dependency: src/identity.js 1`] = `"export let identity = (x) => x;"`;
exports[`two entrypoints with a common dependency: src/index.js 1`] = `
"import { identity } from "./identity";
export let sum = (a, b) => identity(a + b);
export { identity };"
`;
exports[`two entrypoints with a common dependency: src/multiply.js 1`] = `
"import { identity } from "./identity";
export let multiply = (a, b) => identity(a * b);
export { identity };"
`;