Update to new rollup

This commit is contained in:
AlphaX-Projects 2022-03-24 10:28:15 +01:00 committed by GitHub
parent 1b30e4372e
commit 71ad32cbcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
import commonjs from 'rollup-plugin-commonjs'; import commonjs from '@rollup/plugin-commonjs';
import postcss from 'rollup-plugin-postcss'; import postcss from 'rollup-plugin-postcss';
import resolve from 'rollup-plugin-node-resolve'; import { nodeResolve } from '@rollup/plugin-node-resolve';
import replace from '@rollup/plugin-replace'; import replace from '@rollup/plugin-replace';
import typescript from '@rollup/plugin-typescript'; import typescript from '@rollup/plugin-typescript';
import { terser } from 'rollup-plugin-terser'; import { terser } from 'rollup-plugin-terser';
@ -27,7 +27,7 @@ export default {
extensions: ['.css'] extensions: ['.css']
}), }),
typescript(), typescript(),
resolve(), nodeResolve(),
commonjs(), commonjs(),
production && terser() production && terser()
] ]