問題タブ [metro-bundler]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
expo - Expo/Metro/Minify:特定の変数名が壊れないようにする方法は?
Expo 管理ワークフローを使用しています。
Expo が実稼働モードでアプリをバンドルおよび縮小するときに、特定の変数名がマングルされないようにする方法はありますか?
次の「予約済み」配列を miniferConfig に追加しようとしましたが、効果がありませんでした。
パス: node_modules/metro-config/src/defaults/index.js
ありがとう
react-native - 反応ネイティブでピア依存関係を処理できない
「json-schema-rules」ライブラリを使用しているreact-nativeアプリが1つあります。これで、package.json の「file:../custom_library」のように、反応ネイティブ アプリで使用される 1 つのライブラリも作成されました。
バージョンの競合を解決するために、カスタム ライブラリのピア依存関係として "json-schema-rules" を使用することにしました。したがって、package.json は次のようになります。
反応ネイティブ アプリの Package.json:
{
"dependencies": {
"json-rules-engine": "^2.3.0",
"custom_library": "file:../custom_library"
}
}
私のcustom_libraryのpackage.json:{
"peerDependencies": {
"json-schema-rules": "^2.3.0"
}
}
問題は、metro bundler を使用しているときにエラー エラーが発生することです。bundling failed: Error: Unable to resolve module json-rules-engine
json-rules-engine could not be found in the project.
これは、peerDependencies で使用している場合です。このライブラリを依存関係で使用しても、エラーは発生しません。
助けてください。