Skip to content

Commit

Permalink
fix(react-intl): envify dist/react-intl.js so we do not leak process.env
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Ho committed May 5, 2020
1 parent 17e7ea0 commit 43a54d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-intl/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const copyright = `/*
`;

const plugins = [
replace({
'process.env.NODE_ENV': '"production"',
}),
resolve({
mainFields: ['module', 'main'],
}),
Expand Down Expand Up @@ -52,9 +55,6 @@ export default [
},
external: ['react'],
plugins: [
replace({
'process.env.NODE_ENV': '"production"',
}),
...plugins,
uglifyConfig,
],
Expand Down

0 comments on commit 43a54d6

Please sign in to comment.