@expo/config-plugins
Advanced tools
Comparing version 9.0.2 to 9.0.3
@@ -76,2 +76,16 @@ "use strict"; | ||
} | ||
const packageMainEntry = _resolveFrom().default.silent(projectRoot, pluginReference); | ||
if (packageMainEntry) { | ||
const relativePluginPath = packageMainEntry.replace(projectRoot, '').replace(/^\//, ''); | ||
console.warn(`"${pluginReference}" config plugin is being resolved from its package.json main entry (${relativePluginPath}). | ||
This approach is deprecated and will throw an error in Expo SDK53. | ||
To fix this: | ||
1. Report this issue to the maintainer of "${pluginReference}" - they need to migrate to using \`app.plugin.js\` instead. | ||
2. For immediate unblocking, reference the config plugin file directly: ${relativePluginPath}`); | ||
return { | ||
isPluginFile: false, | ||
filePath: packageMainEntry | ||
}; | ||
} | ||
} | ||
@@ -78,0 +92,0 @@ throw new (_errors().PluginError)(`Failed to resolve plugin for module "${pluginReference}" relative to "${projectRoot}"`, 'PLUGIN_NOT_FOUND'); |
{ | ||
"name": "@expo/config-plugins", | ||
"version": "9.0.2", | ||
"version": "9.0.3", | ||
"description": "A library for Expo config plugins", | ||
@@ -60,3 +60,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "0a07b965c4bef67e7718355a0dc770d524ad3cee" | ||
"gitHead": "fc8a1408cab82e003dd2424db2994d7dea958067" | ||
} |
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
1128767
13160