Skip to content

Commit ac92de5

Browse files
committed
update example
1 parent 9060137 commit ac92de5

1 file changed

Lines changed: 31 additions & 7 deletions

File tree

examples/scope-hoisting/README.md

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ var a = "a";
315315

316316
// CONCATENATED MODULE: ./node_modules/b.js
317317
// module b
318-
function b_js_a() {
318+
function b_a() {
319319
return "b";
320320
};
321321

@@ -324,7 +324,7 @@ function b_js_a() {
324324

325325

326326
__webpack_require__.e/* import() */(0).then(__webpack_require__.bind(null, /*! ./lazy */ 3)).then(function(lazy) {
327-
console.log(a, b_js_a(), __WEBPACK_IMPORTED_MODULE_0_shared__["a"], __WEBPACK_IMPORTED_MODULE_0_shared__["b"], lazy.c, lazy.d.a, lazy.x, lazy.y);
327+
console.log(a, b_a(), __WEBPACK_IMPORTED_MODULE_0_shared__["a"], __WEBPACK_IMPORTED_MODULE_0_shared__["b"], lazy.c, lazy.d.a, lazy.x, lazy.y);
328328
});
329329

330330

@@ -375,16 +375,16 @@ var c = String.fromCharCode(__WEBPACK_IMPORTED_MODULE_0_cjs__["c"].charCodeAt(0)
375375

376376

377377
// CONCATENATED MODULE: ./node_modules/d.js
378-
var d_js_namespaceObject = {};
379-
__webpack_require__.d(d_js_namespaceObject, "a", function() { return a; });
378+
var d_namespaceObject = {};
379+
__webpack_require__.d(d_namespaceObject, "a", function() { return a; });
380380
// module d
381381
var a = "d";
382382

383383
// CONCATENATED MODULE: ./lazy.js
384384
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return c; });
385385
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "x", function() { return __WEBPACK_IMPORTED_MODULE_1_shared__["a"]; });
386386
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "y", function() { return __WEBPACK_IMPORTED_MODULE_1_shared__["b"]; });
387-
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "d", function() { return d_js_namespaceObject; });
387+
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "d", function() { return d_namespaceObject; });
388388

389389

390390

@@ -408,8 +408,8 @@ webpackJsonp([0],[,,function(n,r){r.c="e"},function(n,r,t){"use strict";Object.d
408408
Hash: 26f89d6006fb6c5a1fa1
409409
Version: webpack 3.0.0-rc.0
410410
Asset Size Chunks Chunk Names
411-
0.output.js 1.96 kB 0 [emitted]
412-
output.js 7.46 kB 1 [emitted] main
411+
0.output.js 1.95 kB 0 [emitted]
412+
output.js 7.45 kB 1 [emitted] main
413413
Entrypoint main = output.js
414414
chunk {0} 0.output.js 276 bytes {1} [rendered]
415415
> [] 4:0-16
@@ -427,6 +427,18 @@ chunk {1} output.js (main) 385 bytes [entry] [rendered]
427427
harmony import shared [1] ./example.js + 2 modules 3:0-23
428428
harmony import shared [3] ./lazy.js + 2 modules 6:0-30
429429
[1] ./example.js + 2 modules 280 bytes {1} [built]
430+
[0] ./node_modules/shared.js + 1 modules 105 bytes {1} [built]
431+
[exports: x, y]
432+
[only some exports used: x, y]
433+
harmony import shared [1] ./example.js + 2 modules 3:0-23
434+
harmony import shared [3] ./lazy.js + 2 modules 6:0-30
435+
[1] ./example.js + 2 modules 280 bytes {1} [built]
436+
[2] ./node_modules/cjs.js 44 bytes {0} [built]
437+
[only some exports used: c]
438+
harmony import cjs [3] ./lazy.js + 2 modules 2:0-29
439+
[3] ./lazy.js + 2 modules 232 bytes {0} [built]
440+
[exports: d, c, x, y]
441+
import() ./lazy [] ./example.js 4:0-16
430442
```
431443

432444
## Minimized (uglify-js, no zip)
@@ -454,4 +466,16 @@ chunk {1} output.js (main) 385 bytes [entry] [rendered]
454466
harmony import shared [1] ./example.js + 2 modules 3:0-23
455467
harmony import shared [3] ./lazy.js + 2 modules 6:0-30
456468
[1] ./example.js + 2 modules 280 bytes {1} [built]
469+
[0] ./node_modules/shared.js + 1 modules 105 bytes {1} [built]
470+
[exports: x, y]
471+
[only some exports used: x, y]
472+
harmony import shared [1] ./example.js + 2 modules 3:0-23
473+
harmony import shared [3] ./lazy.js + 2 modules 6:0-30
474+
[1] ./example.js + 2 modules 280 bytes {1} [built]
475+
[2] ./node_modules/cjs.js 44 bytes {0} [built]
476+
[only some exports used: c]
477+
harmony import cjs [3] ./lazy.js + 2 modules 2:0-29
478+
[3] ./lazy.js + 2 modules 232 bytes {0} [built]
479+
[exports: d, c, x, y]
480+
import() ./lazy [] ./example.js 4:0-16
457481
```

0 commit comments

Comments
 (0)