2022-01-10 18:41:53 +03:00
|
|
|
import typescript from 'rollup-plugin-typescript2';
|
|
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
|
|
import babel from '@rollup/plugin-babel';
|
2022-10-28 17:03:57 +03:00
|
|
|
import terser from '@rollup/plugin-terser';
|
2022-01-10 18:41:53 +03:00
|
|
|
|
|
|
|
const config = [
|
|
|
|
{
|
|
|
|
input: 'src/index.ts',
|
|
|
|
output: {
|
|
|
|
name: 'd3tooltip',
|
2022-01-24 05:11:46 +03:00
|
|
|
file: 'lib/umd/d3tooltip.js',
|
2022-01-10 18:41:53 +03:00
|
|
|
format: 'umd',
|
|
|
|
},
|
|
|
|
plugins: [
|
2022-01-24 05:11:46 +03:00
|
|
|
typescript({
|
|
|
|
tsconfigOverride: { compilerOptions: { declaration: false } },
|
|
|
|
}),
|
2022-01-10 18:41:53 +03:00
|
|
|
resolve(),
|
|
|
|
commonjs(),
|
|
|
|
babel({
|
|
|
|
babelHelpers: 'runtime',
|
|
|
|
extensions: ['.ts'],
|
|
|
|
plugins: ['@babel/plugin-transform-runtime'],
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
input: 'src/index.ts',
|
|
|
|
output: {
|
|
|
|
name: 'd3tooltip',
|
2022-01-24 05:11:46 +03:00
|
|
|
file: 'lib/umd/d3tooltip.min.js',
|
2022-01-10 18:41:53 +03:00
|
|
|
format: 'umd',
|
|
|
|
},
|
|
|
|
plugins: [
|
2022-01-24 05:11:46 +03:00
|
|
|
typescript({
|
|
|
|
tsconfigOverride: { compilerOptions: { declaration: false } },
|
|
|
|
}),
|
2022-01-10 18:41:53 +03:00
|
|
|
resolve(),
|
|
|
|
commonjs(),
|
|
|
|
babel({
|
|
|
|
babelHelpers: 'runtime',
|
|
|
|
extensions: ['.ts'],
|
|
|
|
plugins: ['@babel/plugin-transform-runtime'],
|
|
|
|
}),
|
|
|
|
terser(),
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export default config;
|