mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
33 lines
633 B
JavaScript
33 lines
633 B
JavaScript
import babel from 'rollup-plugin-babel'
|
|
import commonjs from 'rollup-plugin-commonjs'
|
|
import external from 'rollup-plugin-peer-deps-external'
|
|
import resolve from 'rollup-plugin-node-resolve'
|
|
import { uglify } from 'rollup-plugin-uglify'
|
|
|
|
import pkg from './package.json'
|
|
|
|
export default {
|
|
input: 'src/index.js',
|
|
output: [
|
|
{
|
|
file: pkg.main,
|
|
format: 'cjs',
|
|
sourcemap: true
|
|
}
|
|
// {
|
|
// file: pkg.module,
|
|
// format: "es",
|
|
// sourcemap: true
|
|
// }
|
|
],
|
|
plugins: [
|
|
external(),
|
|
babel({
|
|
exclude: 'node_modules/**'
|
|
}),
|
|
resolve(),
|
|
commonjs(),
|
|
uglify()
|
|
]
|
|
}
|