Skip to content

Commit

Permalink
fix(build): system.js bundler updated to rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed May 6, 2016
1 parent 3443495 commit 6945ad9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .config/bundle-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Builder = require('systemjs-builder');
const pkg = require('../package.json');
const name = pkg.name;
const targetFolder = path.resolve('./bundles');
console.log(targetFolder)

async.waterfall([
cleanBundlesFolder,
getSystemJsBundleConfig,
Expand All @@ -40,20 +40,24 @@ function getSystemJsBundleConfig(cb) {
},
map: {
typescript: path.resolve('node_modules/typescript/lib/typescript.js'),
angular2: path.resolve('node_modules/angular2'),
'@angular/core': path.resolve('node_modules/@angular/core/index.js'),
'@angular/common': path.resolve('node_modules/@angular/common/index.js'),
'@angular/compiler': path.resolve('node_modules/@angular/compiler/index.js'),
'@angular/platform-browser': path.resolve('node_modules/@angular/platform-browser/index.js'),
'@angular/platform-browser-dynamic': path.resolve('node_modules/@angular/platform-browser-dynamic/'),
rxjs: path.resolve('node_modules/rxjs')
},
paths: {
'*': '*.js'
}
};

config.meta = ['angular2', 'rxjs'].reduce((memo, currentValue) => {
config.meta = ['@angular/common','@angular/compiler','@angular/core',
'@angular/platform-browser','@angular/platform-browser-dynamic', 'rxjs'].reduce((memo, currentValue) => {
memo[path.resolve(`node_modules/${currentValue}/*`)] = {build: false};
return memo;
}, {});
config.meta.moment = {build: false};
console.log(config.meta)
return cb(null, config);
}

Expand Down

0 comments on commit 6945ad9

Please sign in to comment.