@@ -48,7 +48,7 @@ describe('loader', () => {
48
48
49
49
it ( 'should work multiple commonjs exports' , async ( ) => {
50
50
const compiler = getCompiler ( 'simple-commonjs2-multiple-export.js' , {
51
- exposes : [ 'myOtherGlobal' , 'myGlobal.globalObject2 globalObject2' ] ,
51
+ exposes : [ 'myOtherGlobal' , 'myGlobal.globalObject2| globalObject2' ] ,
52
52
} ) ;
53
53
const stats = await compile ( compiler ) ;
54
54
@@ -80,7 +80,7 @@ describe('loader', () => {
80
80
81
81
it ( 'should work for nested properties for a global object' , async ( ) => {
82
82
const compiler = getCompiler ( 'simple-commonjs2-single-export.js' , {
83
- exposes : [ 'myGlobal.nested' , 'myOtherGlobal.nested foo' ] ,
83
+ exposes : [ 'myGlobal.nested' , 'myOtherGlobal.nested| foo' ] ,
84
84
} ) ;
85
85
const stats = await compile ( compiler ) ;
86
86
@@ -113,9 +113,9 @@ describe('loader', () => {
113
113
it ( 'should work string config' , async ( ) => {
114
114
const compiler = getCompiler ( 'simple-module-named-export.js' , {
115
115
exposes : [
116
- 'myGlobal_alias.globalObject6 globalObject6' ,
117
- 'myGlobal_alias.globalObject7 globalObject7' ,
118
- 'myGlobal_alias.default default' ,
116
+ 'myGlobal_alias.globalObject6| globalObject6' ,
117
+ 'myGlobal_alias.globalObject7| globalObject7' ,
118
+ 'myGlobal_alias.default| default' ,
119
119
'myGlobal' ,
120
120
'myOtherGlobal' ,
121
121
] ,
@@ -162,7 +162,7 @@ describe('loader', () => {
162
162
globalName : [ 'myGlobal_alias' , 'globalObject7' ] ,
163
163
localName : 'globalObject7' ,
164
164
} ,
165
- 'myGlobal_alias.default default' ,
165
+ 'myGlobal_alias.default| default' ,
166
166
] ,
167
167
} ) ;
168
168
const stats = await compile ( compiler ) ;
@@ -264,7 +264,7 @@ describe('loader', () => {
264
264
const stats = await compile ( compiler ) ;
265
265
266
266
const webpack4Filename = 'main-b0db002e.bundle.js' ;
267
- const webpack5Filename = 'main-effaed92 .bundle.js' ;
267
+ const webpack5Filename = 'main-22966fe7 .bundle.js' ;
268
268
const bundleName =
269
269
webpack . version [ 0 ] === '5' ? webpack5Filename : webpack4Filename ;
270
270
@@ -312,7 +312,7 @@ describe('loader', () => {
312
312
313
313
it ( 'should emit error because of many arguments' , async ( ) => {
314
314
const compiler = getCompiler ( 'simple-module-named-export.js' , {
315
- exposes : [ 'myGlobal_alias globalObject6 excessArgument' ] ,
315
+ exposes : [ 'myGlobal_alias| globalObject6| excessArgument' ] ,
316
316
} ) ;
317
317
const stats = await compile ( compiler ) ;
318
318
0 commit comments