You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/dependency-extraction-webpack-plugin/test/__snapshots__/build.js.snap
+72-106
Original file line number
Diff line number
Diff line change
@@ -1,82 +1,68 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
-
exports[`Webpack \`combine-assets\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('fileA.js' => array('dependencies' => array('lodash', 'wp-blob'), 'version' => '2ac177723ec97b400d9b7c46f5270974'), 'fileB.js' => array('dependencies' => array('wp-token-list'), 'version' => 'bddb08fb8608759738528b9de111454d'));"`;
3
+
exports[`Webpack \`combine-assets\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('fileA.js' => array('dependencies' => array('lodash', 'wp-blob'), 'version' => 'a3da22ced6876ec052d2861d383960fc'), 'fileB.js' => array('dependencies' => array('wp-token-list'), 'version' => '1a2b3802cc39dc1a607ecc4d0b23fcb0'));"`;
4
4
5
5
exports[`Webpack \`combine-assets\` should produce expected output: External modules should match snapshot 1`] =`
6
6
Array [
7
7
Object {
8
-
"externalType": "this",
9
-
"request": Object {
10
-
"this": Array [
11
-
"wp",
12
-
"blob",
13
-
],
14
-
},
8
+
"externalType": "window",
9
+
"request": Array [
10
+
"wp",
11
+
"blob",
12
+
],
15
13
"userRequest": "@wordpress/blob",
16
14
},
17
15
Object {
18
-
"externalType": "this",
19
-
"request": Object {
20
-
"this": Array [
21
-
"wp",
22
-
"tokenList",
23
-
],
24
-
},
16
+
"externalType": "window",
17
+
"request": Array [
18
+
"wp",
19
+
"tokenList",
20
+
],
25
21
"userRequest": "@wordpress/token-list",
26
22
},
27
23
Object {
28
-
"externalType": "this",
29
-
"request": Object {
30
-
"this": "lodash",
31
-
},
24
+
"externalType": "window",
25
+
"request": "lodash",
32
26
"userRequest": "lodash",
33
27
},
34
28
]
35
29
`;
36
30
37
-
exports[`Webpack \`dynamic-import\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('lodash', 'wp-blob'), 'version' => '5d8e58fe98bc4c6277a76ece11fcb8b7');"`;
31
+
exports[`Webpack \`dynamic-import\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('lodash', 'wp-blob'), 'version' => 'd5c613274c346f46e16ab4d320fc01e6');"`;
38
32
39
33
exports[`Webpack \`dynamic-import\` should produce expected output: External modules should match snapshot 1`] =`
40
34
Array [
41
35
Object {
42
-
"externalType": "this",
43
-
"request": Object {
44
-
"this": Array [
45
-
"wp",
46
-
"blob",
47
-
],
48
-
},
36
+
"externalType": "window",
37
+
"request": Array [
38
+
"wp",
39
+
"blob",
40
+
],
49
41
"userRequest": "@wordpress/blob",
50
42
},
51
43
Object {
52
-
"externalType": "this",
53
-
"request": Object {
54
-
"this": "lodash",
55
-
},
44
+
"externalType": "window",
45
+
"request": "lodash",
56
46
"userRequest": "lodash",
57
47
},
58
48
]
59
49
`;
60
50
61
-
exports[`Webpack \`function-output-filename\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('lodash', 'wp-blob'), 'version' => '407eacfb62231e58aaca5eec87e63725');"`;
51
+
exports[`Webpack \`function-output-filename\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('lodash', 'wp-blob'), 'version' => 'f6dc46e27c3a9e7338ed4fa9fdf8f606');"`;
62
52
63
53
exports[`Webpack \`function-output-filename\` should produce expected output: External modules should match snapshot 1`] =`
64
54
Array [
65
55
Object {
66
-
"externalType": "this",
67
-
"request": Object {
68
-
"this": Array [
69
-
"wp",
70
-
"blob",
71
-
],
72
-
},
56
+
"externalType": "window",
57
+
"request": Array [
58
+
"wp",
59
+
"blob",
60
+
],
73
61
"userRequest": "@wordpress/blob",
74
62
},
75
63
Object {
76
-
"externalType": "this",
77
-
"request": Object {
78
-
"this": "lodash",
79
-
},
64
+
"externalType": "window",
65
+
"request": "lodash",
80
66
"userRequest": "lodash",
81
67
},
82
68
]
@@ -90,65 +76,55 @@ exports[`Webpack \`no-deps\` should produce expected output: Asset file should m
90
76
91
77
exports[`Webpack \`no-deps\` should produce expected output: External modules should match snapshot 1`] =`Array []`;
92
78
93
-
exports[`Webpack \`output-format-json\` should produce expected output: Asset file should match snapshot 1`] =`"{\\"dependencies\\":[\\"lodash\\"],\\"version\\":\\"0e6d34ea09104a64e6184f524b48ad65\\"}"`;
79
+
exports[`Webpack \`output-format-json\` should produce expected output: Asset file should match snapshot 1`] =`"{\\"dependencies\\":[\\"lodash\\"],\\"version\\":\\"aeb5066a5e17aea01932c77baf342372\\"}"`;
94
80
95
81
exports[`Webpack \`output-format-json\` should produce expected output: External modules should match snapshot 1`] =`
96
82
Array [
97
83
Object {
98
-
"externalType": "this",
99
-
"request": Object {
100
-
"this": "lodash",
101
-
},
84
+
"externalType": "window",
85
+
"request": "lodash",
102
86
"userRequest": "lodash",
103
87
},
104
88
]
105
89
`;
106
90
107
-
exports[`Webpack \`overrides\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('wp-blob', 'wp-script-handle-for-rxjs', 'wp-url'), 'version' => '2fd24c89b50c763f2e2dcc02a6933c16');"`;
91
+
exports[`Webpack \`overrides\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('wp-blob', 'wp-script-handle-for-rxjs', 'wp-url'), 'version' => '67d711ce8940ddb82e7f264f61a5a3d9');"`;
108
92
109
93
exports[`Webpack \`overrides\` should produce expected output: External modules should match snapshot 1`] =`
110
94
Array [
111
95
Object {
112
-
"externalType": "this",
113
-
"request": Object {
114
-
"this": Array [
115
-
"wp",
116
-
"blob",
117
-
],
118
-
},
96
+
"externalType": "window",
97
+
"request": Array [
98
+
"wp",
99
+
"blob",
100
+
],
119
101
"userRequest": "@wordpress/blob",
120
102
},
121
103
Object {
122
-
"externalType": "this",
123
-
"request": Object {
124
-
"this": Array [
125
-
"wp",
126
-
"url",
127
-
],
128
-
},
104
+
"externalType": "window",
105
+
"request": Array [
106
+
"wp",
107
+
"url",
108
+
],
129
109
"userRequest": "@wordpress/url",
130
110
},
131
111
Object {
132
-
"externalType": "this",
133
-
"request": Object {
134
-
"this": Array [
135
-
"rxjs",
136
-
"operators",
137
-
],
138
-
},
112
+
"externalType": "window",
113
+
"request": Array [
114
+
"rxjs",
115
+
"operators",
116
+
],
139
117
"userRequest": "rxjs/operators",
140
118
},
141
119
Object {
142
-
"externalType": "this",
143
-
"request": Object {
144
-
"this": "rxjs",
145
-
},
120
+
"externalType": "window",
121
+
"request": "rxjs",
146
122
"userRequest": "rxjs",
147
123
},
148
124
]
149
125
`;
150
126
151
-
exports[`Webpack \`with-externs\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('wp-url'), 'version' => 'e987036543f42978608ac27e589b5fe3');"`;
127
+
exports[`Webpack \`with-externs\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('wp-url'), 'version' => '43ee069ad238d0c92526824ddfb9e4fb');"`;
152
128
153
129
exports[`Webpack \`with-externs\` should produce expected output: External modules should match snapshot 1`] =`
154
130
Array [
@@ -158,13 +134,11 @@ Array [
158
134
"userRequest": "@wordpress/blob",
159
135
},
160
136
Object {
161
-
"externalType": "this",
162
-
"request": Object {
163
-
"this": Array [
164
-
"wp",
165
-
"url",
166
-
],
167
-
},
137
+
"externalType": "window",
138
+
"request": Array [
139
+
"wp",
140
+
"url",
141
+
],
168
142
"userRequest": "@wordpress/url",
169
143
},
170
144
Object {
@@ -180,49 +154,41 @@ Array [
180
154
]
181
155
`;
182
156
183
-
exports[`Webpack \`wordpress\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('lodash', 'wp-blob'), 'version' => 'f6f0d227edbcb02382070c0efac33b51');"`;
157
+
exports[`Webpack \`wordpress\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('lodash', 'wp-blob'), 'version' => '202b3ce17cfd72799ce45e7efa04d83c');"`;
184
158
185
159
exports[`Webpack \`wordpress\` should produce expected output: External modules should match snapshot 1`] =`
186
160
Array [
187
161
Object {
188
-
"externalType": "this",
189
-
"request": Object {
190
-
"this": Array [
191
-
"wp",
192
-
"blob",
193
-
],
194
-
},
162
+
"externalType": "window",
163
+
"request": Array [
164
+
"wp",
165
+
"blob",
166
+
],
195
167
"userRequest": "@wordpress/blob",
196
168
},
197
169
Object {
198
-
"externalType": "this",
199
-
"request": Object {
200
-
"this": "lodash",
201
-
},
170
+
"externalType": "window",
171
+
"request": "lodash",
202
172
"userRequest": "lodash",
203
173
},
204
174
]
205
175
`;
206
176
207
-
exports[`Webpack \`wordpress-require\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('lodash', 'wp-blob'), 'version' => '31a7631b4838830b14b5ab10e17f3e0f');"`;
177
+
exports[`Webpack \`wordpress-require\` should produce expected output: Asset file should match snapshot 1`] =`"<?php return array('dependencies' => array('lodash', 'wp-blob'), 'version' => '47b0c1540a1caf08b8931e4a4328db04');"`;
208
178
209
179
exports[`Webpack \`wordpress-require\` should produce expected output: External modules should match snapshot 1`] =`
0 commit comments