Skip to content

Commit

Permalink
Merge bbf2796 into 36e6936
Browse files Browse the repository at this point in the history
  • Loading branch information
UbikZ committed Jan 21, 2019
2 parents 36e6936 + bbf2796 commit c3674cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -72,6 +72,7 @@
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.1.6",
"rollup-plugin-node-resolve": "3.4.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-terser": "^3.0.0",
"sinon": "^6.3.4",
"tslint": "^5.12.0",
Expand Down
12 changes: 9 additions & 3 deletions rollup.config.js
@@ -1,6 +1,7 @@
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import replace from 'rollup-plugin-replace';
import { terser } from 'rollup-plugin-terser';
import { argv } from 'yargs';

Expand Down Expand Up @@ -30,9 +31,14 @@ const file = {

export default {
input: 'src/index.js',
plugins: [babel(babelOptions), nodeResolve({ jsnext: true, main: true }), commonjs({})].concat(
compress ? terser() : []
),
plugins: [
babel(babelOptions),
replace({
'process.env.NODE_ENV': JSON.stringify(compress ? 'production' : 'development'),
}),
nodeResolve({ jsnext: true, main: true }),
commonjs({}),
].concat(compress ? terser() : []),
external: ['react', 'react-dom'],
// moduleId: 'react-i18next',
output: {
Expand Down

0 comments on commit c3674cd

Please sign in to comment.