42 lines
1.1 KiB
JavaScript
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"
|
|
}
|
|
}
|
|
})
|
|
]
|
|
}
|
|
] |