Skip to content

Commit

Permalink
Merge pull request #24 from ZephyrCloudIO/fix/rsdoctor-startup-fail
Browse files Browse the repository at this point in the history
fix: prevent crash in host dev server
  • Loading branch information
BogiKay authored Feb 6, 2025
2 parents 4cbdaf4 + 7ba66b1 commit eb2fd05
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions apps/mobile-host/rspack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,19 @@ export default env => {
new rspack.IgnorePlugin({
resourceRegExp: /^@react-native-masked-view/,
}),
// Only register the plugin when RSDOCTOR is true, as the plugin will increase the build time.
process.env.RSDOCTOR &&
new RsdoctorRspackPlugin({
supports: {
generateTileGraph: true,
},
}),
],
};

if (process.env.RSDOCTOR) {
config.plugins.push(
new RsdoctorRspackPlugin({
supports: {
generateTileGraph: true,
},
}),
);
}

if (USE_ZEPHYR) {
return withZephyr()(config);
}
Expand Down

0 comments on commit eb2fd05

Please sign in to comment.