1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

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

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: [],
}),