/***/"+Huz": /*!***************************************!*\ !*** ./src/app lazy namespace object ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports) {
functionwebpackEmptyAsyncContext(req) { // Here Promise.resolve().then() is used instead of new Promise() to prevent // uncaught exception popping up in devtools returnPromise.resolve().then(function() { var e = newError("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; }); } webpackEmptyAsyncContext.keys = function() { return []; }; webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext; module.exports = webpackEmptyAsyncContext; webpackEmptyAsyncContext.id = "+Huz"; onModuleChange(path) { __webpack_require__("+Huz")(path).then(loadedModule => { console.log('123', loadedModule); }); }
編譯警告
1 2 3 4 5 6 7 8 9 10 11 12
Warning: ./src/app/app.component.ts 14:8-20 Critical dependency: the request of a dependency is an expression at ImportContextDependency.getWarnings (/Work/test/node_modules/webpack/lib/dependencies/ContextDependency.js:40:18) at Compilation.reportDependencyErrorsAndWarnings (/Work/test/node_modules/webpack/lib/Compilation.js:1454:24) at /Work/test/node_modules/webpack/lib/Compilation.js:1258:10 at _next0 (eval at create (/Work/test/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:30:1) at eval (eval at create (/Work/test/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:43:1) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) @ ./src/app/app.module.ts @ ./src/main.ts @ multi ./src/main.ts