TSRPC_Test/rollup.config.js
2022-04-29 15:25:10 +08:00

42 lines
1.1 KiB
JavaScript

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"
}
}
})
]
}
]