From cdd97c327921829adc38499f366c587b1fe6226f Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Mon, 25 Apr 2016 19:27:03 +0200 Subject: [PATCH] Adjust tests for webpack 2 beta --- examples/appcache/dist/webpack-2/bundle.js | 10 ++++----- .../appcache/dist/webpack-2/manifest.appcache | 2 +- .../custom-template/dist/webpack-2/bundle.js | 10 ++++----- examples/default/dist/webpack-2/bundle.js | 22 +++++++++---------- examples/favicon/dist/webpack-2/bundle.js | 10 ++++----- examples/html-loader/dist/webpack-2/bundle.js | 10 ++++----- examples/inline/dist/webpack-2/bundle.js | 10 ++++----- examples/inline/dist/webpack-2/index.html | 10 ++++----- examples/jade-loader/dist/webpack-2/bundle.js | 14 ++++++------ .../dist/webpack-2/bundle.js | 14 ++++++------ examples/javascript/dist/webpack-2/bundle.js | 14 ++++++------ examples/javascript/dist/webpack-2/index.html | 2 +- 12 files changed, 64 insertions(+), 64 deletions(-) diff --git a/examples/appcache/dist/webpack-2/bundle.js b/examples/appcache/dist/webpack-2/bundle.js index 5e10a56..eb776b8 100644 --- a/examples/appcache/dist/webpack-2/bundle.js +++ b/examples/appcache/dist/webpack-2/bundle.js @@ -7,23 +7,23 @@ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].e; +/******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { -/******/ e: {}, /******/ i: moduleId, -/******/ l: false +/******/ l: false, +/******/ exports: {} /******/ }; /******/ // Execute the module function -/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__); +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module -/******/ return module.e; +/******/ return module.exports; /******/ } diff --git a/examples/appcache/dist/webpack-2/manifest.appcache b/examples/appcache/dist/webpack-2/manifest.appcache index fa216ec..74eed74 100644 --- a/examples/appcache/dist/webpack-2/manifest.appcache +++ b/examples/appcache/dist/webpack-2/manifest.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# 4dd687f1b70b04b5bb2e +# 6ee6c7ddf81fcd66e06a 0714810ae3fb211173e2964249507195.png bundle.js diff --git a/examples/custom-template/dist/webpack-2/bundle.js b/examples/custom-template/dist/webpack-2/bundle.js index 5e10a56..eb776b8 100644 --- a/examples/custom-template/dist/webpack-2/bundle.js +++ b/examples/custom-template/dist/webpack-2/bundle.js @@ -7,23 +7,23 @@ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].e; +/******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { -/******/ e: {}, /******/ i: moduleId, -/******/ l: false +/******/ l: false, +/******/ exports: {} /******/ }; /******/ // Execute the module function -/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__); +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module -/******/ return module.e; +/******/ return module.exports; /******/ } diff --git a/examples/default/dist/webpack-2/bundle.js b/examples/default/dist/webpack-2/bundle.js index f5b7b6e..b26aa1d 100644 --- a/examples/default/dist/webpack-2/bundle.js +++ b/examples/default/dist/webpack-2/bundle.js @@ -7,23 +7,23 @@ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].e; +/******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { -/******/ e: {}, /******/ i: moduleId, -/******/ l: false +/******/ l: false, +/******/ exports: {} /******/ }; /******/ // Execute the module function -/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__); +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module -/******/ return module.e; +/******/ return module.exports; /******/ } @@ -51,7 +51,7 @@ if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__(4)(content, {}); - if(content.locals) module.e = content.locals; + if(content.locals) module.exports = content.locals; // Hot Module Replacement if(false) { // When the styles change, update the