metro-runtime
Advanced tools
Comparing version 0.72.0 to 0.72.1
{ | ||
"name": "metro-runtime", | ||
"version": "0.72.0", | ||
"version": "0.72.1", | ||
"description": "🚇 Module required for evaluating Metro bundles.", | ||
@@ -16,3 +16,4 @@ "main": "src", | ||
"dependencies": { | ||
"@babel/runtime": "^7.0.0" | ||
"@babel/runtime": "^7.0.0", | ||
"react-refresh": "^0.4.0" | ||
}, | ||
@@ -19,0 +20,0 @@ "devDependencies": { |
@@ -210,3 +210,18 @@ /** | ||
metroRequire.importAll = metroImportAll; | ||
metroRequire.importAll = metroImportAll; // The `require.context()` syntax is never executed in the runtime because it is converted | ||
// to `require()` in `metro/src/ModuleGraph/worker/collectDependencies.js` after collecting | ||
// dependencies. If the feature flag is not enabled then the conversion never takes place and this error is thrown (development only). | ||
metroRequire.context = function fallbackRequireContext() { | ||
if (__DEV__) { | ||
throw new Error( | ||
"The experimental Metro feature `require.context` is not enabled in your project.\nThis can be enabled by setting the `transformer.unstable_allowRequireContext` property to `true` in your Metro configuration." | ||
); | ||
} | ||
throw new Error( | ||
"The experimental Metro feature `require.context` is not enabled in your project." | ||
); | ||
}; | ||
let inGuard = false; | ||
@@ -213,0 +228,0 @@ |
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
84390
15
1346
2
+ Addedreact-refresh@^0.4.0
+ Addedreact-refresh@0.4.3(transitive)