@htyf-mp/cli 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -307,7 +307,9 @@ export class HtyfModulesPlugin {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
// 首次处理该包
|
|
310
|
-
|
|
310
|
+
// react-native 必须视为原生依赖,无论是否检测到 ios/android 目录
|
|
311
|
+
const nativeModule =
|
|
312
|
+
packageName === "react-native" ? true : hasNativeCode(packageName);
|
|
311
313
|
const dependencyInfo = {
|
|
312
314
|
name: packageName,
|
|
313
315
|
version: getPackageVersion(packageName),
|