@atlaspack/transformer-react-refresh-wrap
Advanced tools
Comparing version 2.12.1-dev.3367 to 2.12.1-dev.3368
@@ -46,3 +46,4 @@ "use strict"; | ||
window.$RefreshReg$ = function (type, id) { | ||
if (window.__REACT_REFRESH_VERSION_TRANSFORMER !== window.__REACT_REFRESH_VERSION_RUNTIME) { | ||
if (window.__REACT_REFRESH_VERSION_TRANSFORMER && window.__REACT_REFRESH_VERSION_RUNTIME && window.__REACT_REFRESH_VERSION_TRANSFORMER !== window.__REACT_REFRESH_VERSION_RUNTIME) { | ||
// Both versions were set and they did not match | ||
throw new Error(`react-refresh versions did not match between transformer and runtime. Please check your dependencies. Transformer: ${window.__REACT_REFRESH_VERSION_TRANSFORMER}, Runtime: ${window.__REACT_REFRESH_VERSION_RUNTIME}`); | ||
@@ -49,0 +50,0 @@ } |
{ | ||
"name": "@atlaspack/transformer-react-refresh-wrap", | ||
"version": "2.12.1-dev.3367+07fefed65", | ||
"version": "2.12.1-dev.3368+af1db7f65", | ||
"license": "MIT", | ||
@@ -16,10 +16,10 @@ "publishConfig": { | ||
"node": ">= 16.0.0", | ||
"atlaspack": "^2.12.1-dev.3367+07fefed65" | ||
"atlaspack": "^2.12.1-dev.3368+af1db7f65" | ||
}, | ||
"dependencies": { | ||
"@atlaspack/plugin": "2.12.1-dev.3367+07fefed65", | ||
"@atlaspack/utils": "2.12.1-dev.3367+07fefed65", | ||
"@atlaspack/plugin": "2.12.1-dev.3368+af1db7f65", | ||
"@atlaspack/utils": "2.12.1-dev.3368+af1db7f65", | ||
"react-refresh": ">=0.9 <=0.14" | ||
}, | ||
"gitHead": "07fefed65a9a4d7bd0bdc9c45b39704ee4ca70dd" | ||
"gitHead": "af1db7f65c4816917ddf83716deedc536a1b8b27" | ||
} |
@@ -44,5 +44,8 @@ var Refresh = require('react-refresh/runtime'); | ||
if ( | ||
window.__REACT_REFRESH_VERSION_TRANSFORMER && | ||
window.__REACT_REFRESH_VERSION_RUNTIME && | ||
window.__REACT_REFRESH_VERSION_TRANSFORMER !== | ||
window.__REACT_REFRESH_VERSION_RUNTIME | ||
window.__REACT_REFRESH_VERSION_RUNTIME | ||
) { | ||
// Both versions were set and they did not match | ||
throw new Error( | ||
@@ -49,0 +52,0 @@ `react-refresh versions did not match between transformer and runtime. Please check your dependencies. Transformer: ${window.__REACT_REFRESH_VERSION_TRANSFORMER}, Runtime: ${window.__REACT_REFRESH_VERSION_RUNTIME}`, |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
29144
484