2017-03-26 18:45:49 +08:00
|
|
|
# example.js
|
|
|
|
|
|
|
|
This example illustrates how to specify chunk name in `require.ensure()` and `import()` to separated modules into separate chunks manually.
|
|
|
|
|
|
|
|
``` javascript
|
2017-04-10 17:44:59 +08:00
|
|
|
import("./templates/foo" /* webpackChunkName: "chunk-foo" */ ).then(function(foo) {
|
|
|
|
console.log('foo:', foo);
|
2017-03-26 18:45:49 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
require.ensure([], function(require) {
|
2017-04-10 17:44:59 +08:00
|
|
|
var foo = require("./templates/foo");
|
|
|
|
console.log('foo:', foo);
|
2017-03-26 18:45:49 +08:00
|
|
|
}, "chunk-foo1");
|
|
|
|
|
|
|
|
var createContextVar = "r";
|
2017-04-10 17:44:59 +08:00
|
|
|
import("./templates/ba" + createContextVar /* webpackChunkName: "chunk-bar-baz" */ ).then(function(bar) {
|
|
|
|
console.log('bar:', bar);
|
2017-03-26 18:45:49 +08:00
|
|
|
})
|
|
|
|
```
|
|
|
|
|
|
|
|
# templates/
|
|
|
|
|
|
|
|
* foo.js
|
|
|
|
* baz.js
|
|
|
|
* bar.js
|
|
|
|
|
|
|
|
All templates are of this pattern:
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
var foo = "foo";
|
|
|
|
|
|
|
|
export default foo;
|
|
|
|
```
|
|
|
|
|
|
|
|
# js/output.js
|
|
|
|
|
2017-04-10 17:44:59 +08:00
|
|
|
<details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></summary>
|
|
|
|
|
2017-03-26 18:45:49 +08:00
|
|
|
``` javascript
|
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ // install a JSONP callback for chunk loading
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ function webpackJsonpCallback(data) {
|
|
|
|
/******/ var chunkIds = data[0], moreModules = data[1], executeModules = data[2];
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ // add "moreModules" to the modules object,
|
|
|
|
/******/ // then flag all "chunkIds" as loaded and fire callback
|
|
|
|
/******/ var moduleId, chunkId, i = 0, resolves = [], result;
|
|
|
|
/******/ for(;i < chunkIds.length; i++) {
|
|
|
|
/******/ chunkId = chunkIds[i];
|
2017-05-23 04:45:18 +08:00
|
|
|
/******/ if(installedChunks[chunkId]) {
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ resolves.push(installedChunks[chunkId][0]);
|
2017-05-23 04:45:18 +08:00
|
|
|
/******/ }
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ installedChunks[chunkId] = 0;
|
|
|
|
/******/ }
|
|
|
|
/******/ for(moduleId in moreModules) {
|
|
|
|
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
|
|
|
/******/ modules[moduleId] = moreModules[moduleId];
|
|
|
|
/******/ }
|
|
|
|
/******/ }
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
2017-05-23 04:45:18 +08:00
|
|
|
/******/ while(resolves.length) {
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ resolves.shift()();
|
2017-05-23 04:45:18 +08:00
|
|
|
/******/ }
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ var installedModules = {};
|
|
|
|
/******/
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ // object to store loaded and loading chunks
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ var installedChunks = {
|
2017-05-23 04:45:18 +08:00
|
|
|
/******/ 3: 0
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ };
|
|
|
|
/******/
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ var scheduledModules = [];
|
|
|
|
/******/
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ // The require function
|
|
|
|
/******/ function __webpack_require__(moduleId) {
|
|
|
|
/******/
|
|
|
|
/******/ // Check if module is in cache
|
2017-05-23 04:45:18 +08:00
|
|
|
/******/ if(installedModules[moduleId]) {
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ return installedModules[moduleId].exports;
|
2017-05-23 04:45:18 +08:00
|
|
|
/******/ }
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ // Create a new module (and put it into the cache)
|
|
|
|
/******/ var module = installedModules[moduleId] = {
|
|
|
|
/******/ i: moduleId,
|
|
|
|
/******/ l: false,
|
|
|
|
/******/ exports: {}
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // Execute the module function
|
|
|
|
/******/ 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.exports;
|
|
|
|
/******/ }
|
|
|
|
/******/
|
|
|
|
/******/ // This file contains only the entry chunk.
|
|
|
|
/******/ // The chunk loading function for additional chunks
|
|
|
|
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ var promises = [];
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/
|
|
|
|
/******/
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ // JSONP chunk loading for javascript
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ var installedChunkData = installedChunks[chunkId];
|
|
|
|
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ // a Promise means "currently loading".
|
|
|
|
/******/ if(installedChunkData) {
|
|
|
|
/******/ promises.push(installedChunkData[2]);
|
|
|
|
/******/ } else {
|
|
|
|
/******/ // setup Promise in chunk cache
|
|
|
|
/******/ var promise = new Promise(function(resolve, reject) {
|
|
|
|
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
|
|
|
|
/******/ });
|
|
|
|
/******/ promises.push(installedChunkData[2] = promise);
|
|
|
|
/******/
|
|
|
|
/******/ // start chunk loading
|
|
|
|
/******/ var head = document.getElementsByTagName('head')[0];
|
|
|
|
/******/ var script = document.createElement('script');
|
2018-01-05 04:14:02 +08:00
|
|
|
/******/
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ script.charset = 'utf-8';
|
|
|
|
/******/ script.timeout = 120000;
|
|
|
|
/******/
|
|
|
|
/******/ if (__webpack_require__.nc) {
|
|
|
|
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
2017-05-23 04:45:18 +08:00
|
|
|
/******/ }
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ script.src = __webpack_require__.p + "" + chunkId + ".output.js";
|
|
|
|
/******/ var timeout = setTimeout(function(){
|
|
|
|
/******/ onScriptComplete({ type: 'timeout', target: script });
|
|
|
|
/******/ }, 120000);
|
|
|
|
/******/ script.onerror = script.onload = onScriptComplete;
|
|
|
|
/******/ function onScriptComplete(event) {
|
|
|
|
/******/ // avoid mem leaks in IE.
|
|
|
|
/******/ script.onerror = script.onload = null;
|
|
|
|
/******/ clearTimeout(timeout);
|
|
|
|
/******/ var chunk = installedChunks[chunkId];
|
|
|
|
/******/ if(chunk !== 0) {
|
|
|
|
/******/ if(chunk) {
|
|
|
|
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
|
|
|
/******/ var realSrc = event && event.target && event.target.src;
|
|
|
|
/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')');
|
|
|
|
/******/ error.type = errorType;
|
|
|
|
/******/ error.request = realSrc;
|
|
|
|
/******/ chunk[1](error);
|
|
|
|
/******/ }
|
|
|
|
/******/ installedChunks[chunkId] = undefined;
|
|
|
|
/******/ }
|
|
|
|
/******/ };
|
|
|
|
/******/ head.appendChild(script);
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ }
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ }
|
|
|
|
/******/ return Promise.all(promises);
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // expose the modules object (__webpack_modules__)
|
|
|
|
/******/ __webpack_require__.m = modules;
|
|
|
|
/******/
|
|
|
|
/******/ // expose the module cache
|
|
|
|
/******/ __webpack_require__.c = installedModules;
|
|
|
|
/******/
|
|
|
|
/******/ // define getter function for harmony exports
|
|
|
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
|
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
|
|
/******/ Object.defineProperty(exports, name, {
|
|
|
|
/******/ configurable: false,
|
|
|
|
/******/ enumerable: true,
|
|
|
|
/******/ get: getter
|
|
|
|
/******/ });
|
|
|
|
/******/ }
|
|
|
|
/******/ };
|
|
|
|
/******/
|
2017-11-24 15:40:39 +08:00
|
|
|
/******/ // define __esModule on exports
|
|
|
|
/******/ __webpack_require__.r = function(exports) {
|
|
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
/******/ };
|
|
|
|
/******/
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
|
|
/******/ __webpack_require__.n = function(module) {
|
|
|
|
/******/ var getter = module && module.__esModule ?
|
|
|
|
/******/ function getDefault() { return module['default']; } :
|
|
|
|
/******/ function getModuleExports() { return module; };
|
|
|
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
|
|
/******/ return getter;
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // Object.prototype.hasOwnProperty.call
|
|
|
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
|
|
/******/
|
|
|
|
/******/ // __webpack_public_path__
|
|
|
|
/******/ __webpack_require__.p = "js/";
|
|
|
|
/******/
|
|
|
|
/******/ // on error function for async loading
|
|
|
|
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
|
|
|
|
/******/
|
2017-11-23 16:47:19 +08:00
|
|
|
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
|
|
|
/******/ var parentJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
|
|
|
/******/ jsonpArray.push = webpackJsonpCallback;
|
|
|
|
/******/ jsonpArray = jsonpArray.slice();
|
|
|
|
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
|
|
|
/******/
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ // Load entry module and return exports
|
2017-12-21 18:19:53 +08:00
|
|
|
/******/ return __webpack_require__(__webpack_require__.s = 4);
|
2017-03-26 18:45:49 +08:00
|
|
|
/******/ })
|
|
|
|
/************************************************************************/
|
|
|
|
```
|
2017-04-10 17:44:59 +08:00
|
|
|
|
2017-03-26 18:45:49 +08:00
|
|
|
</details>
|
2017-04-10 17:44:59 +08:00
|
|
|
|
2017-03-26 18:45:49 +08:00
|
|
|
``` javascript
|
|
|
|
/******/ ([
|
|
|
|
/* 0 */,
|
2017-06-05 22:12:12 +08:00
|
|
|
/* 1 */,
|
|
|
|
/* 2 */,
|
|
|
|
/* 3 */
|
2017-12-04 21:35:55 +08:00
|
|
|
/*!****************************************************!*\
|
|
|
|
!*** ./templates lazy ^\.\/ba.*$ namespace object ***!
|
|
|
|
\****************************************************/
|
2017-06-05 22:12:12 +08:00
|
|
|
/*! no static exports found */
|
2017-03-26 18:45:49 +08:00
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
var map = {
|
|
|
|
"./bar": [
|
2017-12-21 18:19:53 +08:00
|
|
|
2,
|
|
|
|
1
|
2017-03-26 18:45:49 +08:00
|
|
|
],
|
|
|
|
"./bar.js": [
|
2017-12-21 18:19:53 +08:00
|
|
|
2,
|
|
|
|
1
|
2017-03-26 18:45:49 +08:00
|
|
|
],
|
|
|
|
"./baz": [
|
2017-06-05 22:12:12 +08:00
|
|
|
1,
|
2017-12-21 18:19:53 +08:00
|
|
|
0
|
2017-03-26 18:45:49 +08:00
|
|
|
],
|
|
|
|
"./baz.js": [
|
2017-06-05 22:12:12 +08:00
|
|
|
1,
|
2017-12-21 18:19:53 +08:00
|
|
|
0
|
2017-03-26 18:45:49 +08:00
|
|
|
]
|
|
|
|
};
|
|
|
|
function webpackAsyncContext(req) {
|
|
|
|
var ids = map[req];
|
2018-01-03 18:03:20 +08:00
|
|
|
if(!ids) {
|
|
|
|
return Promise.resolve().then(function() {
|
|
|
|
var e = new Error('Cannot find module "' + req + '".');
|
|
|
|
e.code = 'MODULE_NOT_FOUND';
|
|
|
|
throw e;
|
|
|
|
});
|
|
|
|
}
|
2017-03-26 18:45:49 +08:00
|
|
|
return __webpack_require__.e(ids[1]).then(function() {
|
2017-12-04 21:35:55 +08:00
|
|
|
var module = __webpack_require__(ids[0]);
|
2018-01-03 18:03:20 +08:00
|
|
|
return module;;
|
2017-03-26 18:45:49 +08:00
|
|
|
});
|
2017-12-04 21:35:55 +08:00
|
|
|
}
|
2017-03-26 18:45:49 +08:00
|
|
|
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
|
|
|
return Object.keys(map);
|
|
|
|
};
|
2017-12-21 18:19:53 +08:00
|
|
|
webpackAsyncContext.id = 3;
|
2017-08-08 20:00:06 +08:00
|
|
|
module.exports = webpackAsyncContext;
|
2017-03-26 18:45:49 +08:00
|
|
|
|
2017-12-21 18:19:53 +08:00
|
|
|
/***/ }),
|
|
|
|
/* 4 */
|
|
|
|
/*!********************!*\
|
|
|
|
!*** ./example.js ***!
|
|
|
|
\********************/
|
|
|
|
/*! no static exports found */
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
2018-01-03 18:03:20 +08:00
|
|
|
__webpack_require__.e(/*! import() | chunk-foo | duplicate */ 2).then(__webpack_require__.bind(null, /*! ./templates/foo */ 0)).then(function(foo) {
|
2017-12-21 18:19:53 +08:00
|
|
|
console.log('foo:', foo);
|
|
|
|
})
|
|
|
|
|
2018-01-03 18:03:20 +08:00
|
|
|
__webpack_require__.e(/*! require.ensure | chunk-foo1 | duplicate */ 2).then((function(require) {
|
2017-12-21 18:19:53 +08:00
|
|
|
var foo = __webpack_require__(/*! ./templates/foo */ 0);
|
|
|
|
console.log('foo:', foo);
|
|
|
|
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
|
|
|
|
|
|
|
|
var createContextVar = "r";
|
2018-01-03 18:03:20 +08:00
|
|
|
__webpack_require__(3)("./ba" + createContextVar).then(function(bar) {
|
2017-12-21 18:19:53 +08:00
|
|
|
console.log('bar:', bar);
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-26 18:45:49 +08:00
|
|
|
/***/ })
|
|
|
|
/******/ ]);
|
|
|
|
```
|
|
|
|
|
|
|
|
# Info
|
|
|
|
|
2017-12-14 17:58:03 +08:00
|
|
|
## Unoptimized
|
2017-03-26 18:45:49 +08:00
|
|
|
|
|
|
|
```
|
2017-12-14 17:58:03 +08:00
|
|
|
Hash: 0a1b2c3d4e5f6a7b8c9d
|
2017-11-23 16:47:19 +08:00
|
|
|
Version: webpack next
|
2017-03-26 18:45:49 +08:00
|
|
|
Asset Size Chunks Chunk Names
|
2017-12-21 18:19:53 +08:00
|
|
|
0.output.js 445 bytes 0 [emitted] chunk-bar-baz2
|
|
|
|
1.output.js 439 bytes 1 [emitted] chunk-bar-baz0
|
|
|
|
2.output.js 436 bytes 2 [emitted] chunk-foo
|
2018-01-05 04:14:02 +08:00
|
|
|
output.js 8.23 KiB 3 [emitted] main
|
2017-03-26 18:45:49 +08:00
|
|
|
Entrypoint main = output.js
|
2017-12-21 18:19:53 +08:00
|
|
|
chunk {0} 0.output.js (chunk-bar-baz2) 41 bytes {3} [rendered]
|
|
|
|
[1] ./templates/baz.js 41 bytes {0} [optional] [built]
|
2017-03-26 18:45:49 +08:00
|
|
|
[exports: default]
|
2017-12-21 18:19:53 +08:00
|
|
|
context element ./baz.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz.js
|
|
|
|
context element ./baz [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz
|
|
|
|
chunk {1} 1.output.js (chunk-bar-baz0) 41 bytes {3} [rendered]
|
|
|
|
[2] ./templates/bar.js 41 bytes {1} [optional] [built]
|
2017-05-23 04:45:18 +08:00
|
|
|
[exports: default]
|
2017-12-21 18:19:53 +08:00
|
|
|
context element ./bar.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./bar.js
|
|
|
|
context element ./bar [3] ./templates lazy ^\.\/ba.*$ namespace object ./bar
|
|
|
|
chunk {2} 2.output.js (chunk-foo) 41 bytes {3} [rendered]
|
|
|
|
> duplicate chunk-foo [4] ./example.js 1:0-62
|
|
|
|
> duplicate chunk-foo1 [4] ./example.js 5:0-8:16
|
|
|
|
[0] ./templates/foo.js 41 bytes {2} [built]
|
2017-05-23 04:45:18 +08:00
|
|
|
[exports: default]
|
2017-12-21 18:19:53 +08:00
|
|
|
import() ./templates/foo [4] ./example.js 1:0-62
|
|
|
|
cjs require ./templates/foo [4] ./example.js 6:11-37
|
2017-05-23 04:45:18 +08:00
|
|
|
chunk {3} output.js (main) 580 bytes [entry] [rendered]
|
2017-12-21 18:19:53 +08:00
|
|
|
> main [4] ./example.js
|
|
|
|
[3] ./templates lazy ^\.\/ba.*$ namespace object 160 bytes {3} [built]
|
|
|
|
import() context lazy ./templates [4] ./example.js 11:0-84
|
|
|
|
[4] ./example.js 420 bytes {3} [built]
|
2017-11-23 16:47:19 +08:00
|
|
|
single entry .\example.js main
|
2017-03-26 18:45:49 +08:00
|
|
|
```
|
|
|
|
|
2017-12-14 17:58:03 +08:00
|
|
|
## Production mode
|
2017-03-26 18:45:49 +08:00
|
|
|
|
|
|
|
```
|
2017-12-14 17:58:03 +08:00
|
|
|
Hash: 0a1b2c3d4e5f6a7b8c9d
|
2017-11-23 16:47:19 +08:00
|
|
|
Version: webpack next
|
2017-03-26 18:45:49 +08:00
|
|
|
Asset Size Chunks Chunk Names
|
2017-12-21 18:19:53 +08:00
|
|
|
0.output.js 114 bytes 0 [emitted] chunk-bar-baz2
|
|
|
|
1.output.js 115 bytes 1 [emitted] chunk-bar-baz0
|
|
|
|
2.output.js 113 bytes 2 [emitted] chunk-foo
|
2018-01-03 18:03:20 +08:00
|
|
|
output.js 2.11 KiB 3 [emitted] main
|
2017-03-26 18:45:49 +08:00
|
|
|
Entrypoint main = output.js
|
2017-12-21 18:19:53 +08:00
|
|
|
chunk {0} 0.output.js (chunk-bar-baz2) 41 bytes {3} [rendered]
|
|
|
|
[1] ./templates/baz.js 41 bytes {0} [optional] [built]
|
2017-03-26 18:45:49 +08:00
|
|
|
[exports: default]
|
2017-12-21 18:19:53 +08:00
|
|
|
context element ./baz.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz.js
|
|
|
|
context element ./baz [3] ./templates lazy ^\.\/ba.*$ namespace object ./baz
|
|
|
|
chunk {1} 1.output.js (chunk-bar-baz0) 41 bytes {3} [rendered]
|
|
|
|
[2] ./templates/bar.js 41 bytes {1} [optional] [built]
|
2017-05-23 04:45:18 +08:00
|
|
|
[exports: default]
|
2017-12-21 18:19:53 +08:00
|
|
|
context element ./bar.js [3] ./templates lazy ^\.\/ba.*$ namespace object ./bar.js
|
|
|
|
context element ./bar [3] ./templates lazy ^\.\/ba.*$ namespace object ./bar
|
|
|
|
chunk {2} 2.output.js (chunk-foo) 41 bytes {3} [rendered]
|
|
|
|
> duplicate chunk-foo [4] ./example.js 1:0-62
|
|
|
|
> duplicate chunk-foo1 [4] ./example.js 5:0-8:16
|
|
|
|
[0] ./templates/foo.js 41 bytes {2} [built]
|
2017-05-23 04:45:18 +08:00
|
|
|
[exports: default]
|
2017-12-21 18:19:53 +08:00
|
|
|
import() ./templates/foo [4] ./example.js 1:0-62
|
|
|
|
cjs require ./templates/foo [4] ./example.js 6:11-37
|
2017-05-23 04:45:18 +08:00
|
|
|
chunk {3} output.js (main) 580 bytes [entry] [rendered]
|
2017-12-21 18:19:53 +08:00
|
|
|
> main [4] ./example.js
|
|
|
|
[3] ./templates lazy ^\.\/ba.*$ namespace object 160 bytes {3} [built]
|
|
|
|
import() context lazy ./templates [4] ./example.js 11:0-84
|
|
|
|
[4] ./example.js 420 bytes {3} [built]
|
2017-11-23 16:47:19 +08:00
|
|
|
single entry .\example.js main
|
2017-03-26 18:45:49 +08:00
|
|
|
```
|