@@ -381,6 +381,8 @@ exports[`loader should work with object value with "default" syntax: warnings 1`
381
381
382
382
exports [` loader should work with object value: errors 1` ] = ` []` ;
383
383
384
+ exports [` loader should work with object value: errors 2` ] = ` []` ;
385
+
384
386
exports [` loader should work with object value: module 1` ] = `
385
387
"var Foo = Foo || { } ;
386
388
var Bar = Bar || { } ;
@@ -416,6 +418,41 @@ export {
416
418
"
417
419
` ;
418
420
421
+ exports [` loader should work with object value: module 2` ] = `
422
+ "var Foo = Foo || { } ;
423
+ var Bar = Bar || { } ;
424
+ var Baz = {
425
+ nestedNumber : ' 12' ,
426
+ nestedFunction : function test() {}
427
+ } ;
428
+ var simple = function simple() { } ;
429
+ var simple_foo = [1, 2, 3, 4, 5];
430
+
431
+ Foo.Image = function(width, height, data){
432
+ this .width = width || 0 ;
433
+ this .height = height || 0 ;
434
+ this .data = data || [];
435
+ } ;
436
+
437
+ Bar.test = [1, 2, 3, 4];
438
+
439
+ class MyClass {
440
+ myFunction () {
441
+ return 12;
442
+ }
443
+ }
444
+
445
+ const single = 'single';
446
+
447
+ const myVariable = new MyClass();
448
+
449
+ /*** EXPORTS FROM exports-loader ***/
450
+ export {
451
+ Foo
452
+ } ;
453
+ "
454
+ ` ;
455
+
419
456
exports [` loader should work with object value: result 1` ] = `
420
457
{
421
458
" Foo" : {
@@ -424,8 +461,18 @@ exports[`loader should work with object value: result 1`] = `
424
461
}
425
462
` ;
426
463
464
+ exports [` loader should work with object value: result 2` ] = `
465
+ {
466
+ " Foo" : {
467
+ " Image" : [Function ],
468
+ },
469
+ }
470
+ ` ;
471
+
427
472
exports [` loader should work with object value: warnings 1` ] = ` []` ;
428
473
474
+ exports [` loader should work with object value: warnings 2` ] = ` []` ;
475
+
429
476
exports [` loader should work with source maps when the "devtool" option is enabled: errors 1` ] = ` []` ;
430
477
431
478
exports [` loader should work with source maps when the "devtool" option is enabled: module 1` ] = `
0 commit comments