Permalink
Browse files

Add Bundle Splitting support for source code bundles

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 9e34cbda9de8f7350cfb02c884fbef2da18e0e3a
Showing with 4 additions and 0 deletions.
  1. +4 −0 ReactCommon/cxxreact/JSCExecutor.cpp
@@ -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);
}
}

0 comments on commit 9e34cbd

Please sign in to comment.