Don't run terser in standard components in dev mode
This commit is contained in:
parent
3172b3b479
commit
7e30061abb
|
@ -4,6 +4,7 @@ import commonjs from "@rollup/plugin-commonjs"
|
||||||
import postcss from "rollup-plugin-postcss"
|
import postcss from "rollup-plugin-postcss"
|
||||||
import { terser } from "rollup-plugin-terser"
|
import { terser } from "rollup-plugin-terser"
|
||||||
|
|
||||||
|
const production = !process.env.ROLLUP_WATCH
|
||||||
const lodash_fp_exports = ["isEmpty"]
|
const lodash_fp_exports = ["isEmpty"]
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -17,7 +18,8 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
terser(),
|
// Only run terser in production environments
|
||||||
|
production && terser(),
|
||||||
postcss({
|
postcss({
|
||||||
plugins: [],
|
plugins: [],
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue