Closed
Description
What's the best way to accomplish multiple build profiles with tsconfig? I want to have builds that specifically target different platforms like node/browser etc..
{
es5: {
compilerOptions: {
target: 'es5',
},
files: [
'polyfill.ts',
'index.ts'
]
}
es6: {
compilerOptions: {
target: 'es6',
},
files: [
'index.ts'
]
}
nodees5: {
compilerOptions: {
target: 'es5',
},
files: [
'polyfill.ts',
'index.ts',
'nodexyz.ts'
]
}
nodees6: {
compilerOptions: {
target: 'es6',
},
files: [
'index.ts',
'nodexyz.ts'
]
}
}