I'm developing an app and I need to increase the angular 2 performance loading all the scripts. The problem is this error:
I'm using gulp + systemjs + systemjs-builder. Here is my files:
[gulpfile]
gulp.task('bundle', function () {
var builder = new SystemBuilder('./', './wwwroot/lib/js/systemjs.config.js');
return builder.buildStatic('wwwroot/lib/spa/main.js', 'wwwroot/lib/js/bundle.min.js', {
minify: true,
mangle: true,
rollup: true,
runtime: false
});
});
[systemjs.config]
var config = {
//use typescript for compilation
transpiler: 'typescript',
transpilerRuntime: false,
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
map: map,
packages: packages,
defaultJSExtensions: true
};
As you can see it is added .js to transpiler as result of defaultJSExtensions: true. Do I need to do something different? (I really need this property equals to true, because I have a lot of paths without .js).
Thanks in advance =)