Igor Minar cea103a7ff test: add tree-shaking test
currently this doesn't throw or break the build, first we need to resolve all
of the existing issues.

to run execute: ./tools/tree-shaking-test/test.sh

then inspect dist/tree-shaking/test/**/*.bundle.js
2016-06-08 12:20:42 -07:00

21 lines
404 B
JavaScript

class RollupNG2 {
resolveId(id, from){
if(id.startsWith('@angular/')){
return `${__dirname}/../../packages-dist/${id.split('/')[1]}/esm/index.js`;
}
// if(id.startsWith('rxjs/')){
// return `${__dirname}/../../../node_modules/rxjs-es/${id.replace('rxjs/', '')}.js`;
// }
}
}
export default {
entry: 'test.js',
format: 'es6',
plugins: [
new RollupNG2(),
]
}