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