Skip to content

Commit

Permalink
Add Bundle Splitting support for source code bundles
Browse files Browse the repository at this point in the history
Reviewed By: amnn

Differential Revision: D6695431

fbshipit-source-id: 76f4c09b7caadabad5b327af29c02afe61f31abd
  • Loading branch information
fromcelticpark authored and facebook-github-bot committed Jan 16, 2018
1 parent 6882132 commit 9e34cbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ReactCommon/cxxreact/JSCExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,10 @@ namespace facebook {
void JSCExecutor::registerBundle(uint32_t bundleId, const std::string& bundlePath) {
if (m_bundleRegistry) {
m_bundleRegistry->registerBundle(bundleId, bundlePath);
} else {
auto sourceUrl = String(m_context, bundlePath.c_str());
auto source = adoptString(JSBigFileString::fromPath(bundlePath));
evaluateScript(m_context, source, sourceUrl);
}
}

Expand Down

0 comments on commit 9e34cbd

Please sign in to comment.