@@ -1377,6 +1377,121 @@ exports[`/webpack.js should support ES2015 named exports 2`] = `
1377
1377
"
1378
1378
` ;
1379
1379
1380
+ exports [` /webpack.js should support disabling defaultExport when the option is set 1` ] = `
1381
+ "/******/ (function(modules) { // webpackBootstrap
1382
+ /** ****/ // The module cache
1383
+ /** ****/ var installedModules = {};
1384
+ /** ****/
1385
+ /** ****/ // The require function
1386
+ /** ****/ function __webpack_require__(moduleId ) {
1387
+ /** ****/
1388
+ /** ****/ // Check if module is in cache
1389
+ /** ****/ if (installedModules [moduleId ]) {
1390
+ /** ****/ return installedModules [moduleId ].exports ;
1391
+ /** ****/ }
1392
+ /** ****/ // Create a new module (and put it into the cache)
1393
+ /** ****/ var module = installedModules [moduleId ] = {
1394
+ /** ****/ i: moduleId ,
1395
+ /** ****/ l: false ,
1396
+ /** ****/ exports: {}
1397
+ /** ****/ };
1398
+ /** ****/
1399
+ /** ****/ // Execute the module function
1400
+ /** ****/ modules [moduleId ].call (module .exports , module , module .exports , __webpack_require__ );
1401
+ /** ****/
1402
+ /** ****/ // Flag the module as loaded
1403
+ /** ****/ module .l = true ;
1404
+ /** ****/
1405
+ /** ****/ // Return the exports of the module
1406
+ /** ****/ return module .exports ;
1407
+ /** ****/ }
1408
+ /** ****/
1409
+ /** ****/
1410
+ /** ****/ // expose the modules object (__webpack_modules__)
1411
+ /** ****/ __webpack_require__ .m = modules ;
1412
+ /** ****/
1413
+ /** ****/ // expose the module cache
1414
+ /** ****/ __webpack_require__ .c = installedModules ;
1415
+ /** ****/
1416
+ /** ****/ // define getter function for harmony exports
1417
+ /** ****/ __webpack_require__ .d = function (exports , name , getter ) {
1418
+ /** ****/ if (! __webpack_require__ .o (exports , name )) {
1419
+ /** ****/ Object .defineProperty (exports , name , { enumerable: true , get: getter });
1420
+ /** ****/ }
1421
+ /** ****/ };
1422
+ /** ****/
1423
+ /** ****/ // define __esModule on exports
1424
+ /** ****/ __webpack_require__ .r = function (exports ) {
1425
+ /** ****/ if (typeof Symbol !== ' undefined' && Symbol .toStringTag ) {
1426
+ /** ****/ Object .defineProperty (exports , Symbol .toStringTag , { value: ' Module' });
1427
+ /** ****/ }
1428
+ /** ****/ Object .defineProperty (exports , ' __esModule' , { value: true });
1429
+ /** ****/ };
1430
+ /** ****/
1431
+ /** ****/ // create a fake namespace object
1432
+ /** ****/ // mode & 1: value is a module id, require it
1433
+ /** ****/ // mode & 2: merge all properties of value into the ns
1434
+ /** ****/ // mode & 4: return value when already ns object
1435
+ /** ****/ // mode & 8|1: behave like require
1436
+ /** ****/ __webpack_require__ .t = function (value , mode ) {
1437
+ /** ****/ if (mode & 1 ) value = __webpack_require__ (value );
1438
+ /** ****/ if (mode & 8 ) return value ;
1439
+ /** ****/ if ((mode & 4 ) && typeof value === ' object' && value && value .__esModule ) return value ;
1440
+ /** ****/ var ns = Object .create (null );
1441
+ /** ****/ __webpack_require__ .r (ns );
1442
+ /** ****/ Object .defineProperty (ns , ' default' , { enumerable: true , value: value });
1443
+ /** ****/ if (mode & 2 && typeof value != ' string' ) for (var key in value ) __webpack_require__ .d (ns , key , function (key ) { return value [key ]; }.bind (null , key ));
1444
+ /** ****/ return ns ;
1445
+ /** ****/ };
1446
+ /** ****/
1447
+ /** ****/ // getDefaultExport function for compatibility with non-harmony modules
1448
+ /** ****/ __webpack_require__ .n = function (module ) {
1449
+ /** ****/ var getter = module && module .__esModule ?
1450
+ /** ****/ function getDefault() { return module [' default' ]; } :
1451
+ /** ****/ function getModuleExports() { return module ; };
1452
+ /** ****/ __webpack_require__ .d (getter , ' a' , getter );
1453
+ /** ****/ return getter ;
1454
+ /** ****/ };
1455
+ /** ****/
1456
+ /** ****/ // Object.prototype.hasOwnProperty.call
1457
+ /** ****/ __webpack_require__ .o = function (object , property ) { return Object .prototype .hasOwnProperty .call (object , property ); };
1458
+ /** ****/
1459
+ /** ****/ // __webpack_public_path__
1460
+ /** ****/ __webpack_require__ .p = \\" \\ " ;
1461
+ /** ****/
1462
+ /** ****/
1463
+ /** ****/ // Load entry module and return exports
1464
+ /** ****/ return __webpack_require__ (__webpack_require__ .s = \\" ./packages/webpack/test/specimens/simple.js\\ " );
1465
+ /** ****/ } )
1466
+ /************************************************************************/
1467
+ /******/ ({
1468
+
1469
+ /***/ \\" ./packages/webpack/test/specimens/simple.css\\ " :
1470
+ /* !****************************************************!*\\\\
1471
+ !*** ./packages/webpack/test/specimens/simple.css ***!
1472
+ \\\\****************************************************/
1473
+ /* ! exports provided: wooga, styles */
1474
+ /***/ (function (module , __webpack_exports__ , __webpack_require__ ) {
1475
+
1476
+ \\" use strict\\ " ;
1477
+ eval (\\" __webpack_require__.r(__webpack_exports__);\\\\ n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\ " wooga \\\\\\" , function() { return wooga; });\\\\ n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\ " styles \\\\\\" , function() { return styles; });\\\\ nvar wooga = \\\\\\ " wooga \\\\\\" ;\\\\ nvar styles = \\\\\\ " .wooga { color: red ; }\\\\\\\\n \\\\\\" ;\\\\ n\\\\ n//# sourceURL=webpack:///./packages/webpack/test/specimens/simple.css?\\ " );
1478
+
1479
+ /***/ }),
1480
+
1481
+ /***/ \\" ./packages/webpack/test/specimens/simple.js\\ " :
1482
+ /* !***************************************************!*\\\\
1483
+ !*** ./packages/webpack/test/specimens/simple.js ***!
1484
+ \\\\***************************************************/
1485
+ /* ! no static exports found */
1486
+ /***/ (function (module , exports , __webpack_require__ ) {
1487
+
1488
+ eval (\\" __webpack_require__(/*! ./simple.css */ \\\\\\ " ./ packages / webpack / test / specimens / simple .css \\\\\\" );\\\\ n\\\\ n\\\\ n//# sourceURL=webpack:///./packages/webpack/test/specimens/simple.js?\\ " );
1489
+
1490
+ /***/ })
1491
+
1492
+ /** ****/ } );"
1493
+ ` ;
1494
+
1380
1495
exports [` /webpack.js should support disabling namedExports when the option is set 1` ] = `
1381
1496
"/******/ (function(modules) { // webpackBootstrap
1382
1497
/** ****/ // The module cache
0 commit comments