Typescriptify the main process code (5/N)

Summary: Use dev bundling for "yarn start"

Reviewed By: jknoxville

Differential Revision: D20034300

fbshipit-source-id: a46c75074c969f5a4958f498c5c0e15aab808552
This commit is contained in:
Anton Nikolaev
2020-02-24 05:17:16 -08:00
committed by Facebook Github Bot
parent bd0c7bb58f
commit f6cc7c93ef
3 changed files with 6 additions and 7 deletions

View File

@@ -124,7 +124,7 @@ function startAssetServer(port) {
}
shutdownElectron = launchElectron({
devServerURL: `http://localhost:${port}`,
bundleURL: `http://localhost:${port}/src/init.bundle`,
bundleURL: `http://localhost:${port}/src/init.bundle?dev=true&platform=web&minify=false&excludeSource=false`,
electronURL: `http://localhost:${port}/index.dev.html`,
});
res.end();
@@ -246,7 +246,7 @@ function outputScreen(socket) {
const socket = await addWebsocket(server);
await startMetroServer(app);
outputScreen(socket);
await compileMain();
await compileMain({dev: true});
shutdownElectron = launchElectron({
devServerURL: `http://localhost:${port}`,
bundleURL: `http://localhost:${port}/src/init.bundle`,