mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
34 lines
408 B
JavaScript
34 lines
408 B
JavaScript
import ts from '@alexlur/rollup-plugin-typescript';
|
|
|
|
const pkg = require('./package.json');
|
|
|
|
export default {
|
|
entry: 'src/index.ts',
|
|
|
|
external: [
|
|
'path',
|
|
'fs',
|
|
'object-assign',
|
|
'rollup-pluginutils',
|
|
'typescript',
|
|
'lodash'
|
|
],
|
|
|
|
plugins: [
|
|
ts(),
|
|
],
|
|
|
|
banner: '/* eslint-disable */',
|
|
|
|
targets: [
|
|
{
|
|
format: 'cjs',
|
|
dest: pkg.main
|
|
},
|
|
{
|
|
format: 'es',
|
|
dest: pkg.module
|
|
}
|
|
]
|
|
};
|