We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93e32b commit 82f653aCopy full SHA for 82f653a
rollup.config.js
@@ -3,6 +3,7 @@ import path from 'path'
3
import babel from 'rollup-plugin-babel'
4
import resolve from 'rollup-plugin-node-resolve'
5
import commonjs from 'rollup-plugin-commonjs'
6
+import replace from 'rollup-plugin-replace'
7
import { uglify } from 'rollup-plugin-uglify'
8
import pkg from './package.json'
9
@@ -49,6 +50,7 @@ export default [
49
50
external: Object.keys(globals),
51
plugins: [
52
resolve(),
53
+ replace({ 'process.env.NODE_ENV': JSON.stringify('production') }),
54
babel(getBabelOptions({ useESModules: true })),
55
commonjs({ include: '**/node_modules/**' }),
56
uglify(),
0 commit comments