mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 06:30:07 +01:00
19 lines
467 B
JavaScript
19 lines
467 B
JavaScript
|
import { getBabelOutputPlugin } from '@rollup/plugin-babel';
|
||
|
import { terser } from 'rollup-plugin-terser';
|
||
|
|
||
|
export default {
|
||
|
input: 'js/main.js',
|
||
|
output: [
|
||
|
{
|
||
|
file: 'assets/bundle.js',
|
||
|
format: 'esm'
|
||
|
},
|
||
|
{
|
||
|
file: 'assets/bundle.min.js',
|
||
|
format: 'esm',
|
||
|
plugins: [getBabelOutputPlugin({ presets: ['@babel/preset-env'] }), terser()],
|
||
|
sourcemap: true
|
||
|
}
|
||
|
]
|
||
|
};
|