Skip to content

Commit c1eb338

Browse files
committed
Standardize usage of webpack_bundles/ instead of bundles/
1 parent 87fdfaa commit c1eb338

File tree

8 files changed

+34026
-0
lines changed

8 files changed

+34026
-0
lines changed

examples/code-splitting/assets/bundles/main-f9a06994986b9a38cfa1.js

Lines changed: 180 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3+
* This devtool is neither made for production nor for readable output files.
4+
* It uses "eval()" calls to create a separate source file in the browser devtools.
5+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6+
* or disable the default devtool with "devtool: false".
7+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8+
*/
9+
/******/ (() => { // webpackBootstrap
10+
/******/ var __webpack_modules__ = ({
11+
12+
/***/ "./assets/js/other.js":
13+
/*!****************************!*\
14+
!*** ./assets/js/other.js ***!
15+
\****************************/
16+
/***/ (() => {
17+
18+
eval("console.log(\"Hello from other entry point\");\n\n//# sourceURL=webpack://example/./assets/js/other.js?");
19+
20+
/***/ })
21+
22+
/******/ });
23+
/************************************************************************/
24+
/******/
25+
/******/ // startup
26+
/******/ // Load entry module and return exports
27+
/******/ // This entry module can't be inlined because the eval devtool is used.
28+
/******/ var __webpack_exports__ = {};
29+
/******/ __webpack_modules__["./assets/js/other.js"]();
30+
/******/
31+
/******/ })()
32+
;
Lines changed: 305 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,305 @@
1+
/*
2+
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3+
* This devtool is neither made for production nor for readable output files.
4+
* It uses "eval()" calls to create a separate source file in the browser devtools.
5+
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6+
* or disable the default devtool with "devtool: false".
7+
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8+
*/
9+
/******/ (() => { // webpackBootstrap
10+
/******/ var __webpack_modules__ = ({
11+
12+
/***/ "./assets/js/index.jsx":
13+
/*!*****************************!*\
14+
!*** ./assets/js/index.jsx ***!
15+
\*****************************/
16+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
17+
18+
eval("function getComponent() {\n return __webpack_require__.e(/*! import() */ \"vendors-node_modules_lodash_lodash_js\").then(__webpack_require__.t.bind(__webpack_require__, /*! lodash */ \"./node_modules/lodash/lodash.js\", 23)).then(function (_ref) {\n var _ = _ref[\"default\"];\n var element = document.createElement(\"div\");\n element.innerHTML = _.join([\"Hello\", \"webpack\"], \" \");\n return element;\n })[\"catch\"](function (error) {\n return \"An error occurred while loading the component\";\n });\n}\ngetComponent().then(function (component) {\n document.body.appendChild(component);\n});\n\n//# sourceURL=webpack://example/./assets/js/index.jsx?");
19+
20+
/***/ })
21+
22+
/******/ });
23+
/************************************************************************/
24+
/******/ // The module cache
25+
/******/ var __webpack_module_cache__ = {};
26+
/******/
27+
/******/ // The require function
28+
/******/ function __webpack_require__(moduleId) {
29+
/******/ // Check if module is in cache
30+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
31+
/******/ if (cachedModule !== undefined) {
32+
/******/ return cachedModule.exports;
33+
/******/ }
34+
/******/ // Create a new module (and put it into the cache)
35+
/******/ var module = __webpack_module_cache__[moduleId] = {
36+
/******/ id: moduleId,
37+
/******/ loaded: false,
38+
/******/ exports: {}
39+
/******/ };
40+
/******/
41+
/******/ // Execute the module function
42+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
43+
/******/
44+
/******/ // Flag the module as loaded
45+
/******/ module.loaded = true;
46+
/******/
47+
/******/ // Return the exports of the module
48+
/******/ return module.exports;
49+
/******/ }
50+
/******/
51+
/******/ // expose the modules object (__webpack_modules__)
52+
/******/ __webpack_require__.m = __webpack_modules__;
53+
/******/
54+
/************************************************************************/
55+
/******/ /* webpack/runtime/create fake namespace object */
56+
/******/ (() => {
57+
/******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
58+
/******/ var leafPrototypes;
59+
/******/ // create a fake namespace object
60+
/******/ // mode & 1: value is a module id, require it
61+
/******/ // mode & 2: merge all properties of value into the ns
62+
/******/ // mode & 4: return value when already ns object
63+
/******/ // mode & 16: return value when it's Promise-like
64+
/******/ // mode & 8|1: behave like require
65+
/******/ __webpack_require__.t = function(value, mode) {
66+
/******/ if(mode & 1) value = this(value);
67+
/******/ if(mode & 8) return value;
68+
/******/ if(typeof value === 'object' && value) {
69+
/******/ if((mode & 4) && value.__esModule) return value;
70+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
71+
/******/ }
72+
/******/ var ns = Object.create(null);
73+
/******/ __webpack_require__.r(ns);
74+
/******/ var def = {};
75+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
76+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
77+
/******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
78+
/******/ }
79+
/******/ def['default'] = () => (value);
80+
/******/ __webpack_require__.d(ns, def);
81+
/******/ return ns;
82+
/******/ };
83+
/******/ })();
84+
/******/
85+
/******/ /* webpack/runtime/define property getters */
86+
/******/ (() => {
87+
/******/ // define getter functions for harmony exports
88+
/******/ __webpack_require__.d = (exports, definition) => {
89+
/******/ for(var key in definition) {
90+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
91+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
92+
/******/ }
93+
/******/ }
94+
/******/ };
95+
/******/ })();
96+
/******/
97+
/******/ /* webpack/runtime/ensure chunk */
98+
/******/ (() => {
99+
/******/ __webpack_require__.f = {};
100+
/******/ // This file contains only the entry chunk.
101+
/******/ // The chunk loading function for additional chunks
102+
/******/ __webpack_require__.e = (chunkId) => {
103+
/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
104+
/******/ __webpack_require__.f[key](chunkId, promises);
105+
/******/ return promises;
106+
/******/ }, []));
107+
/******/ };
108+
/******/ })();
109+
/******/
110+
/******/ /* webpack/runtime/get javascript chunk filename */
111+
/******/ (() => {
112+
/******/ // This function allow to reference async chunks
113+
/******/ __webpack_require__.u = (chunkId) => {
114+
/******/ // return url for filenames based on template
115+
/******/ return "" + chunkId + "-" + "8a71f59c9d87df0d1b5b" + ".js";
116+
/******/ };
117+
/******/ })();
118+
/******/
119+
/******/ /* webpack/runtime/global */
120+
/******/ (() => {
121+
/******/ __webpack_require__.g = (function() {
122+
/******/ if (typeof globalThis === 'object') return globalThis;
123+
/******/ try {
124+
/******/ return this || new Function('return this')();
125+
/******/ } catch (e) {
126+
/******/ if (typeof window === 'object') return window;
127+
/******/ }
128+
/******/ })();
129+
/******/ })();
130+
/******/
131+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
132+
/******/ (() => {
133+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
134+
/******/ })();
135+
/******/
136+
/******/ /* webpack/runtime/load script */
137+
/******/ (() => {
138+
/******/ var inProgress = {};
139+
/******/ var dataWebpackPrefix = "example:";
140+
/******/ // loadScript function to load a script via script tag
141+
/******/ __webpack_require__.l = (url, done, key, chunkId) => {
142+
/******/ if(inProgress[url]) { inProgress[url].push(done); return; }
143+
/******/ var script, needAttach;
144+
/******/ if(key !== undefined) {
145+
/******/ var scripts = document.getElementsByTagName("script");
146+
/******/ for(var i = 0; i < scripts.length; i++) {
147+
/******/ var s = scripts[i];
148+
/******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
149+
/******/ }
150+
/******/ }
151+
/******/ if(!script) {
152+
/******/ needAttach = true;
153+
/******/ script = document.createElement('script');
154+
/******/
155+
/******/ script.charset = 'utf-8';
156+
/******/ script.timeout = 120;
157+
/******/ if (__webpack_require__.nc) {
158+
/******/ script.setAttribute("nonce", __webpack_require__.nc);
159+
/******/ }
160+
/******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
161+
/******/
162+
/******/ script.src = url;
163+
/******/ }
164+
/******/ inProgress[url] = [done];
165+
/******/ var onScriptComplete = (prev, event) => {
166+
/******/ // avoid mem leaks in IE.
167+
/******/ script.onerror = script.onload = null;
168+
/******/ clearTimeout(timeout);
169+
/******/ var doneFns = inProgress[url];
170+
/******/ delete inProgress[url];
171+
/******/ script.parentNode && script.parentNode.removeChild(script);
172+
/******/ doneFns && doneFns.forEach((fn) => (fn(event)));
173+
/******/ if(prev) return prev(event);
174+
/******/ }
175+
/******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
176+
/******/ script.onerror = onScriptComplete.bind(null, script.onerror);
177+
/******/ script.onload = onScriptComplete.bind(null, script.onload);
178+
/******/ needAttach && document.head.appendChild(script);
179+
/******/ };
180+
/******/ })();
181+
/******/
182+
/******/ /* webpack/runtime/make namespace object */
183+
/******/ (() => {
184+
/******/ // define __esModule on exports
185+
/******/ __webpack_require__.r = (exports) => {
186+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
187+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
188+
/******/ }
189+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
190+
/******/ };
191+
/******/ })();
192+
/******/
193+
/******/ /* webpack/runtime/node module decorator */
194+
/******/ (() => {
195+
/******/ __webpack_require__.nmd = (module) => {
196+
/******/ module.paths = [];
197+
/******/ if (!module.children) module.children = [];
198+
/******/ return module;
199+
/******/ };
200+
/******/ })();
201+
/******/
202+
/******/ /* webpack/runtime/publicPath */
203+
/******/ (() => {
204+
/******/ __webpack_require__.p = "/static/bundles/";
205+
/******/ })();
206+
/******/
207+
/******/ /* webpack/runtime/jsonp chunk loading */
208+
/******/ (() => {
209+
/******/ // no baseURI
210+
/******/
211+
/******/ // object to store loaded and loading chunks
212+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
213+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
214+
/******/ var installedChunks = {
215+
/******/ "main": 0
216+
/******/ };
217+
/******/
218+
/******/ __webpack_require__.f.j = (chunkId, promises) => {
219+
/******/ // JSONP chunk loading for javascript
220+
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
221+
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
222+
/******/
223+
/******/ // a Promise means "currently loading".
224+
/******/ if(installedChunkData) {
225+
/******/ promises.push(installedChunkData[2]);
226+
/******/ } else {
227+
/******/ if(true) { // all chunks have JS
228+
/******/ // setup Promise in chunk cache
229+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
230+
/******/ promises.push(installedChunkData[2] = promise);
231+
/******/
232+
/******/ // start chunk loading
233+
/******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
234+
/******/ // create error before stack unwound to get useful stacktrace later
235+
/******/ var error = new Error();
236+
/******/ var loadingEnded = (event) => {
237+
/******/ if(__webpack_require__.o(installedChunks, chunkId)) {
238+
/******/ installedChunkData = installedChunks[chunkId];
239+
/******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
240+
/******/ if(installedChunkData) {
241+
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
242+
/******/ var realSrc = event && event.target && event.target.src;
243+
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
244+
/******/ error.name = 'ChunkLoadError';
245+
/******/ error.type = errorType;
246+
/******/ error.request = realSrc;
247+
/******/ installedChunkData[1](error);
248+
/******/ }
249+
/******/ }
250+
/******/ };
251+
/******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
252+
/******/ }
253+
/******/ }
254+
/******/ }
255+
/******/ };
256+
/******/
257+
/******/ // no prefetching
258+
/******/
259+
/******/ // no preloaded
260+
/******/
261+
/******/ // no HMR
262+
/******/
263+
/******/ // no HMR manifest
264+
/******/
265+
/******/ // no on chunks loaded
266+
/******/
267+
/******/ // install a JSONP callback for chunk loading
268+
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
269+
/******/ var [chunkIds, moreModules, runtime] = data;
270+
/******/ // add "moreModules" to the modules object,
271+
/******/ // then flag all "chunkIds" as loaded and fire callback
272+
/******/ var moduleId, chunkId, i = 0;
273+
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
274+
/******/ for(moduleId in moreModules) {
275+
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
276+
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
277+
/******/ }
278+
/******/ }
279+
/******/ if(runtime) var result = runtime(__webpack_require__);
280+
/******/ }
281+
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
282+
/******/ for(;i < chunkIds.length; i++) {
283+
/******/ chunkId = chunkIds[i];
284+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
285+
/******/ installedChunks[chunkId][0]();
286+
/******/ }
287+
/******/ installedChunks[chunkId] = 0;
288+
/******/ }
289+
/******/
290+
/******/ }
291+
/******/
292+
/******/ var chunkLoadingGlobal = self["webpackChunkexample"] = self["webpackChunkexample"] || [];
293+
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
294+
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
295+
/******/ })();
296+
/******/
297+
/************************************************************************/
298+
/******/
299+
/******/ // startup
300+
/******/ // Load entry module and return exports
301+
/******/ // This entry module can't be inlined because the eval devtool is used.
302+
/******/ var __webpack_exports__ = __webpack_require__("./assets/js/index.jsx");
303+
/******/
304+
/******/ })()
305+
;

examples/dynamic-imports/assets/bundles/vendors-node_modules_lodash_lodash_js-8a71f59c9d87df0d1b5b.js

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)