We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4ae573 commit 6f032e6Copy full SHA for 6f032e6
packages/react-refresh/src/ReactFreshBabelPlugin.js
@@ -8,7 +8,7 @@
8
'use strict';
9
10
export default function(babel, opts = {}) {
11
- if (typeof babel.getEnv === 'function') {
+ if (typeof babel.env === 'function') {
12
// Only available in Babel 7.
13
const env = babel.env();
14
if (env !== 'development' && !opts.skipEnvCheck) {
0 commit comments