Skip to content

Commit 6f032e6

Browse files
committed
Replace getEnv with env
1 parent c4ae573 commit 6f032e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-refresh/src/ReactFreshBabelPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'use strict';
99

1010
export default function(babel, opts = {}) {
11-
if (typeof babel.getEnv === 'function') {
11+
if (typeof babel.env === 'function') {
1212
// Only available in Babel 7.
1313
const env = babel.env();
1414
if (env !== 'development' && !opts.skipEnvCheck) {

0 commit comments

Comments
 (0)