You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
938 B
JavaScript
47 lines
938 B
JavaScript
import { babel } from '@rollup/plugin-babel';
|
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import { terser } from 'rollup-plugin-terser';
|
|
|
|
const moduleName = 'Shuffle';
|
|
|
|
export default {
|
|
input: './src/shuffle.js',
|
|
output: [
|
|
{
|
|
name: moduleName,
|
|
file: './dist/shuffle.js',
|
|
sourcemap: true,
|
|
format: 'umd',
|
|
},
|
|
{
|
|
name: moduleName,
|
|
file: './dist/shuffle.esm.js',
|
|
sourcemap: true,
|
|
format: 'es',
|
|
},
|
|
{
|
|
name: moduleName,
|
|
file: './dist/shuffle.min.js',
|
|
sourcemap: true,
|
|
format: 'umd',
|
|
plugins: [
|
|
terser({
|
|
compress: {
|
|
warnings: true,
|
|
drop_console: true,
|
|
},
|
|
}),
|
|
],
|
|
},
|
|
],
|
|
plugins: [
|
|
nodeResolve(),
|
|
commonjs(),
|
|
babel({
|
|
exclude: '**/node_modules/**',
|
|
babelHelpers: 'bundled',
|
|
}),
|
|
],
|
|
};
|