TSRPC_Test/rollup.config.js

42 lines
1.1 KiB
JavaScript
Raw Normal View History

2022-04-29 07:25:10 +00:00
import typescript from 'rollup-plugin-typescript2';
export default [
{
input: './src/index.ts',
output: [{
format: 'cjs',
file: './dist/index.js',
banner: require('./scripts/copyright')
}],
plugins: [
typescript({
tsconfigOverride: {
compilerOptions: {
declaration: false,
declarationMap: false,
module: "esnext"
}
}
})
]
},
{
input: './src/index.ts',
output: [{
format: 'es',
file: './dist/index.mjs',
banner: require('./scripts/copyright')
}],
plugins: [
typescript({
tsconfigOverride: {
compilerOptions: {
declaration: false,
declarationMap: false,
module: "esnext"
}
}
})
]
}
]