Skip to content

Commit 9e34cbd

Browse files
fromcelticparkfacebook-github-bot
authored andcommitted
Add Bundle Splitting support for source code bundles
Reviewed By: amnn Differential Revision: D6695431 fbshipit-source-id: 76f4c09b7caadabad5b327af29c02afe61f31abd
1 parent 6882132 commit 9e34cbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ReactCommon/cxxreact/JSCExecutor.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,10 @@ namespace facebook {
455455
void JSCExecutor::registerBundle(uint32_t bundleId, const std::string& bundlePath) {
456456
if (m_bundleRegistry) {
457457
m_bundleRegistry->registerBundle(bundleId, bundlePath);
458+
} else {
459+
auto sourceUrl = String(m_context, bundlePath.c_str());
460+
auto source = adoptString(JSBigFileString::fromPath(bundlePath));
461+
evaluateScript(m_context, source, sourceUrl);
458462
}
459463
}
460464

0 commit comments

Comments
 (0)