angular-router-loader
Advanced tools
Comparing version
{ | ||
"name": "angular-router-loader", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "A webpack loader for Angular that enables string-based module loading with the Angular Router", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -175,3 +175,3 @@ var should = require('should'); | ||
'loadChildren: function() { return System.import(\'./path/to/file.module\')', | ||
' .then(module => module[\'FileModule\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'FileModule\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -190,3 +190,3 @@ | ||
'loadChildren: function() { return System.import(/* webpackChunkName: "name" */ \'./path/to/file.module\')', | ||
' .then(module => module[\'FileModule\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'FileModule\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -205,3 +205,3 @@ | ||
'loadChildren: function() { return import(\'./path/to/file.module\')', | ||
' .then(module => module[\'FileModule\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'FileModule\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -220,3 +220,3 @@ | ||
'loadChildren: function() { return import(/* webpackChunkName: "name" */ \'./path/to/file.module\')', | ||
' .then(module => module[\'FileModule\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'FileModule\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -357,3 +357,3 @@ | ||
'loadChildren: function() { return System.import(\'./path/to/file.module.ngfactory\')', | ||
' .then(module => module[\'FileModuleNgFactory\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'FileModuleNgFactory\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -372,3 +372,3 @@ | ||
'loadChildren: function() { return import(\'./path/to/file.module.ngfactory\')', | ||
' .then(module => module[\'FileModuleNgFactory\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'FileModuleNgFactory\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -375,0 +375,0 @@ |
@@ -80,3 +80,3 @@ var should = require('should'); | ||
'loadChildren: function() { return System.import(\'' + path + '\')', | ||
' .then(module => module[\'' + name + '\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'' + name + '\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -94,3 +94,3 @@ | ||
'loadChildren: function() { return import(\'' + path + '\')', | ||
' .then(module => module[\'' + name + '\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'' + name + '\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -97,0 +97,0 @@ |
@@ -39,3 +39,3 @@ var os = require('os'); | ||
'loadChildren: function() { return System.import(' + module.exports.getChunkName('system', chunkName) + '\'' + filePath + '\')', | ||
' .then(module => module[\'' + moduleName + '\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'' + moduleName + '\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -49,3 +49,3 @@ | ||
'loadChildren: function() { return import(' + module.exports.getChunkName('import', chunkName) + '\'' + filePath + '\')', | ||
' .then(module => module[\'' + moduleName + '\'], e => { throw({ loadChunkError: true, details: e }); }) }' | ||
' .then(module => module[\'' + moduleName + '\'], (e: any) => { throw({ loadChunkError: true, details: e }); }) }' | ||
]; | ||
@@ -52,0 +52,0 @@ |
43468
0.16%