1. 03 Apr, 2019 1 commit
  2. 29 Mar, 2019 1 commit
  3. 28 Mar, 2019 7 commits
  4. 27 Mar, 2019 7 commits
  5. 26 Mar, 2019 3 commits
  6. 25 Mar, 2019 8 commits
  7. 21 Mar, 2019 1 commit
    • Robert Knight's avatar
      Enable conditional inclusion of code based on NODE_ENV checks · f5d81fd0
      Robert Knight authored
      Packages in the React ecosystem often include debugging checks guarded
      by:
      
      ```
      if (process.env.NODE_ENV === 'development') { ... }
      ```
      
      OR
      
      ```
      if (process.env.NODE_ENV !== 'production') { ... }
      ```
      
      This commit uses loose-envify to replace the `process.env.$VAR`
      expression with a literal string value when building JS bundles. This enables
      debugging checks in dev builds and causes the minifier to remove the
      code entirely in production builds.
      
      Some packages don't need this because their package.json file includes a
      "browserify" key which already configures this transform, however not
      all of them do. Therefore the transform is configured to run globally.
      f5d81fd0
  8. 19 Mar, 2019 1 commit
  9. 18 Mar, 2019 11 commits