Don't run terser in standard components in dev mode

This commit is contained in:
Andrew Kingston 2020-10-15 09:04:57 +01:00
parent 3172b3b479
commit 7e30061abb
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import commonjs from "@rollup/plugin-commonjs"
import postcss from "rollup-plugin-postcss"
import { terser } from "rollup-plugin-terser"
const production = !process.env.ROLLUP_WATCH
const lodash_fp_exports = ["isEmpty"]
export default {
@ -17,7 +18,8 @@ export default {
},
],
plugins: [
terser(),
// Only run terser in production environments
production && terser(),
postcss({
plugins: [],
}),