Skip to content

Commit

Permalink
fix(babel): regression, pass ROLLUP_BUILD env (#1915)
Browse files Browse the repository at this point in the history
* fix(babel): regression, pass ROLLUP_BUILD env

* docs: changeset
  • Loading branch information
emmenko authored Dec 6, 2020
1 parent 4a0687a commit 6819edc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/chilled-bats-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@commercetools-frontend/application-components': patch
'@commercetools-frontend/react-notifications': patch
---

Fix prop-types removal regression from production bundles.
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Do this as the first thing so that any code reading it knows the right env.
process.env.BUILD_ROLLUP = true;

module.exports = {
presets: ['@commercetools-frontend/babel-preset-mc-app'],
plugins: [
Expand Down

1 comment on commit 6819edc

@vercel
Copy link

@vercel vercel bot commented on 6819edc Dec 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.