react-refresh
Advanced tools
Comparing version 0.0.0-experimental-955cad9bc-20220623 to 0.0.0-experimental-9598c41a20-20240603
'use strict'; | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./cjs/react-refresh-babel.production.min.js'); | ||
module.exports = require('./cjs/react-refresh-babel.production.js'); | ||
} else { | ||
module.exports = require('./cjs/react-refresh-babel.development.js'); | ||
} |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
@@ -173,3 +173,3 @@ * This source code is licensed under the MIT license found in the | ||
} | ||
} else ; | ||
@@ -274,2 +274,20 @@ break; | ||
case 'React.useDebugValue': | ||
case 'useId': | ||
case 'React.useId': | ||
case 'useDeferredValue': | ||
case 'React.useDeferredValue': | ||
case 'useTransition': | ||
case 'React.useTransition': | ||
case 'useInsertionEffect': | ||
case 'React.useInsertionEffect': | ||
case 'useSyncExternalStore': | ||
case 'React.useSyncExternalStore': | ||
case 'useFormStatus': | ||
case 'React.useFormStatus': | ||
case 'useFormState': | ||
case 'React.useFormState': | ||
case 'useActionState': | ||
case 'React.useActionState': | ||
case 'useOptimistic': | ||
case 'React.useOptimistic': | ||
return true; | ||
@@ -276,0 +294,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
@@ -18,3 +18,2 @@ * This source code is licensed under the MIT license found in the | ||
// ATTENTION | ||
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); | ||
@@ -30,3 +29,2 @@ var REACT_MEMO_TYPE = Symbol.for('react.memo'); | ||
// that have actually been edited here. This keeps checks fast. | ||
// $FlowIssue | ||
@@ -46,6 +44,4 @@ var updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call. | ||
// If there is no WeakMap, we won't attempt to do retrying. | ||
// $FlowIssue | ||
var rootElements = // $FlowIssue | ||
typeof WeakMap === 'function' ? new WeakMap() : null; | ||
var rootElements = typeof WeakMap === 'function' ? new WeakMap() : null; | ||
var isPerformingRefresh = false; | ||
@@ -52,0 +48,0 @@ |
@@ -7,4 +7,4 @@ { | ||
], | ||
"version": "0.0.0-experimental-955cad9bc-20220623", | ||
"homepage": "https://reactjs.org/", | ||
"version": "0.0.0-experimental-9598c41a20-20240603", | ||
"homepage": "https://react.dev/", | ||
"bugs": "https://github.com/facebook/react/issues", | ||
@@ -17,4 +17,3 @@ "license": "MIT", | ||
"runtime.js", | ||
"cjs/", | ||
"umd/" | ||
"cjs/" | ||
], | ||
@@ -21,0 +20,0 @@ "main": "runtime.js", |
'use strict'; | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./cjs/react-refresh-runtime.production.min.js'); | ||
module.exports = require('./cjs/react-refresh-runtime.production.js'); | ||
} else { | ||
module.exports = require('./cjs/react-refresh-runtime.development.js'); | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
71756
1840
1