You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlexMeetsHomeAssistant/rollup.config.js

27 lines
569 B

import typescript from 'rollup-plugin-typescript2';
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
import json from '@rollup/plugin-json';
const dev = process.env.ROLLUP_WATCH;
const plugins = [
nodeResolve({ jsnext: true, preferBuiltins: true, browser: true }),
commonjs(),
typescript(),
json(),
!dev && terser()
];
export default [
{
input: 'src/plex-meets-homeassistant.ts',
output: {
dir: 'dist',
format: 'es'
},
plugins: [...plugins]
}
];