|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`/webpack.js should accept an existing processor instance 1`] = ` |
| 4 | +"/******/ (function(modules) { // webpackBootstrap |
| 5 | +/******/ // The module cache |
| 6 | +/******/ var installedModules = {}; |
| 7 | +/******/ |
| 8 | +/******/ // The require function |
| 9 | +/******/ function __webpack_require__(moduleId) { |
| 10 | +/******/ |
| 11 | +/******/ // Check if module is in cache |
| 12 | +/******/ if(installedModules[moduleId]) { |
| 13 | +/******/ return installedModules[moduleId].exports; |
| 14 | +/******/ } |
| 15 | +/******/ // Create a new module (and put it into the cache) |
| 16 | +/******/ var module = installedModules[moduleId] = { |
| 17 | +/******/ i: moduleId, |
| 18 | +/******/ l: false, |
| 19 | +/******/ exports: {} |
| 20 | +/******/ }; |
| 21 | +/******/ |
| 22 | +/******/ // Execute the module function |
| 23 | +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); |
| 24 | +/******/ |
| 25 | +/******/ // Flag the module as loaded |
| 26 | +/******/ module.l = true; |
| 27 | +/******/ |
| 28 | +/******/ // Return the exports of the module |
| 29 | +/******/ return module.exports; |
| 30 | +/******/ } |
| 31 | +/******/ |
| 32 | +/******/ |
| 33 | +/******/ // expose the modules object (__webpack_modules__) |
| 34 | +/******/ __webpack_require__.m = modules; |
| 35 | +/******/ |
| 36 | +/******/ // expose the module cache |
| 37 | +/******/ __webpack_require__.c = installedModules; |
| 38 | +/******/ |
| 39 | +/******/ // define getter function for harmony exports |
| 40 | +/******/ __webpack_require__.d = function(exports, name, getter) { |
| 41 | +/******/ if(!__webpack_require__.o(exports, name)) { |
| 42 | +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); |
| 43 | +/******/ } |
| 44 | +/******/ }; |
| 45 | +/******/ |
| 46 | +/******/ // define __esModule on exports |
| 47 | +/******/ __webpack_require__.r = function(exports) { |
| 48 | +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { |
| 49 | +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); |
| 50 | +/******/ } |
| 51 | +/******/ Object.defineProperty(exports, '__esModule', { value: true }); |
| 52 | +/******/ }; |
| 53 | +/******/ |
| 54 | +/******/ // create a fake namespace object |
| 55 | +/******/ // mode & 1: value is a module id, require it |
| 56 | +/******/ // mode & 2: merge all properties of value into the ns |
| 57 | +/******/ // mode & 4: return value when already ns object |
| 58 | +/******/ // mode & 8|1: behave like require |
| 59 | +/******/ __webpack_require__.t = function(value, mode) { |
| 60 | +/******/ if(mode & 1) value = __webpack_require__(value); |
| 61 | +/******/ if(mode & 8) return value; |
| 62 | +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; |
| 63 | +/******/ var ns = Object.create(null); |
| 64 | +/******/ __webpack_require__.r(ns); |
| 65 | +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); |
| 66 | +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); |
| 67 | +/******/ return ns; |
| 68 | +/******/ }; |
| 69 | +/******/ |
| 70 | +/******/ // getDefaultExport function for compatibility with non-harmony modules |
| 71 | +/******/ __webpack_require__.n = function(module) { |
| 72 | +/******/ var getter = module && module.__esModule ? |
| 73 | +/******/ function getDefault() { return module['default']; } : |
| 74 | +/******/ function getModuleExports() { return module; }; |
| 75 | +/******/ __webpack_require__.d(getter, 'a', getter); |
| 76 | +/******/ return getter; |
| 77 | +/******/ }; |
| 78 | +/******/ |
| 79 | +/******/ // Object.prototype.hasOwnProperty.call |
| 80 | +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; |
| 81 | +/******/ |
| 82 | +/******/ // __webpack_public_path__ |
| 83 | +/******/ __webpack_require__.p = \\"\\"; |
| 84 | +/******/ |
| 85 | +/******/ |
| 86 | +/******/ // Load entry module and return exports |
| 87 | +/******/ return __webpack_require__(__webpack_require__.s = \\"./packages/webpack/test/specimens/simple.js\\"); |
| 88 | +/******/ }) |
| 89 | +/************************************************************************/ |
| 90 | +/******/ ({ |
| 91 | +
|
| 92 | +/***/ \\"./packages/webpack/test/specimens/simple.css\\": |
| 93 | +/*!****************************************************!*\\\\ |
| 94 | + !*** ./packages/webpack/test/specimens/simple.css ***! |
| 95 | + \\\\****************************************************/ |
| 96 | +/*! exports provided: default, wooga */ |
| 97 | +/***/ (function(module, __webpack_exports__, __webpack_require__) { |
| 98 | +
|
| 99 | +\\"use strict\\"; |
| 100 | +eval(\\"__webpack_require__.r(__webpack_exports__);\\\\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \\\\\\"wooga\\\\\\", function() { return wooga; });\\\\n/* harmony default export */ __webpack_exports__[\\\\\\"default\\\\\\"] = ({\\\\n \\\\\\"wooga\\\\\\": \\\\\\"mc8d99986b_wooga\\\\\\"\\\\n});\\\\nvar wooga = \\\\\\"mc8d99986b_wooga\\\\\\";\\\\n\\\\n//# sourceURL=webpack:///./packages/webpack/test/specimens/simple.css?\\"); |
| 101 | +
|
| 102 | +/***/ }), |
| 103 | +
|
| 104 | +/***/ \\"./packages/webpack/test/specimens/simple.js\\": |
| 105 | +/*!***************************************************!*\\\\ |
| 106 | + !*** ./packages/webpack/test/specimens/simple.js ***! |
| 107 | + \\\\***************************************************/ |
| 108 | +/*! no static exports found */ |
| 109 | +/***/ (function(module, exports, __webpack_require__) { |
| 110 | +
|
| 111 | +eval(\\"__webpack_require__(/*! ./simple.css */ \\\\\\"./packages/webpack/test/specimens/simple.css\\\\\\");\\\\n\\\\n\\\\n//# sourceURL=webpack:///./packages/webpack/test/specimens/simple.js?\\"); |
| 112 | +
|
| 113 | +/***/ }) |
| 114 | +
|
| 115 | +/******/ });" |
| 116 | +`; |
| 117 | + |
| 118 | +exports[`/webpack.js should accept an existing processor instance 2`] = ` |
| 119 | +"/* packages/webpack/test/specimens/fake.css */ |
| 120 | +.mc89f5ebd2_fake { |
| 121 | + color: yellow; |
| 122 | +} |
| 123 | +/* packages/webpack/test/specimens/simple.css */ |
| 124 | +.mc8d99986b_wooga { color: red; }" |
| 125 | +`; |
| 126 | + |
3 | 127 | exports[`/webpack.js should generate correct builds in watch mode when files change 1`] = `
|
4 | 128 | "/******/ (function(modules) { // webpackBootstrap
|
5 | 129 | /******/ // The module cache
|
|
0 commit comments