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
		
			
				
	
	
		
			21 lines
		
	
	
		
			404 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			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(),
 | 
						|
  ]
 | 
						|
}
 |