From 29871bd0f5b5d2f1f5e75a0aa8b02d8a703c8ab4 Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Tue, 22 Mar 2016 19:36:32 +0100 Subject: [PATCH] Fix dist files --- examples/appcache/dist/webpack-2/bundle.js | 14 ++++----- .../custom-template/dist/webpack-2/bundle.js | 14 ++++----- examples/default/dist/webpack-2/bundle.js | 30 +++++++++---------- examples/favicon/dist/webpack-2/bundle.js | 14 ++++----- examples/html-loader/dist/webpack-2/bundle.js | 14 ++++----- examples/jade-loader/dist/webpack-2/bundle.js | 18 +++++------ .../dist/webpack-2/bundle.js | 18 +++++------ examples/javascript/dist/webpack-2/bundle.js | 18 +++++------ examples/javascript/dist/webpack-2/index.html | 2 +- examples/rebuild.js | 25 ++++++++++++++++ 10 files changed, 96 insertions(+), 71 deletions(-) create mode 100644 examples/rebuild.js diff --git a/examples/appcache/dist/webpack-2/bundle.js b/examples/appcache/dist/webpack-2/bundle.js index 84f1879..5e10a56 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].exports; +/******/ return installedModules[moduleId].e; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false +/******/ e: {}, +/******/ i: moduleId, +/******/ l: false /******/ }; /******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__); /******/ // Flag the module as loaded -/******/ module.loaded = true; +/******/ module.l = true; /******/ // Return the exports of the module -/******/ return module.exports; +/******/ return module.e; /******/ } diff --git a/examples/custom-template/dist/webpack-2/bundle.js b/examples/custom-template/dist/webpack-2/bundle.js index 84f1879..5e10a56 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].exports; +/******/ return installedModules[moduleId].e; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false +/******/ e: {}, +/******/ i: moduleId, +/******/ l: false /******/ }; /******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__); /******/ // Flag the module as loaded -/******/ module.loaded = true; +/******/ module.l = true; /******/ // Return the exports of the module -/******/ return module.exports; +/******/ return module.e; /******/ } diff --git a/examples/default/dist/webpack-2/bundle.js b/examples/default/dist/webpack-2/bundle.js index e752b7e..df25951 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].exports; +/******/ return installedModules[moduleId].e; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false +/******/ e: {}, +/******/ i: moduleId, +/******/ l: false /******/ }; /******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ modules[moduleId].call(module.e, module, module.e, __webpack_require__); /******/ // Flag the module as loaded -/******/ module.loaded = true; +/******/ module.l = true; /******/ // Return the exports of the module -/******/ return module.exports; +/******/ return module.e; /******/ } @@ -48,10 +48,10 @@ // load the styles var content = __webpack_require__(2); - if(typeof content === 'string') content = [[module.id, content, '']]; + if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__(4)(content, {}); - if(content.locals) module.exports = content.locals; + if(content.locals) module.e = content.locals; // Hot Module Replacement if(false) { // When the styles change, update the