Skip to content

Commit

Permalink
Replace getEnv with env
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinweber committed May 27, 2020
1 parent c4ae573 commit 6f032e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-refresh/src/ReactFreshBabelPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'use strict';

export default function(babel, opts = {}) {
if (typeof babel.getEnv === 'function') {
if (typeof babel.env === 'function') {
// Only available in Babel 7.
const env = babel.env();
if (env !== 'development' && !opts.skipEnvCheck) {
Expand Down

0 comments on commit 6f032e6

Please sign in to comment.