Killed Flipper headless
Reviewed By: nikoant Differential Revision: D24160480 fbshipit-source-id: 221e60473dddc0a49cea674e210beb6f85b1b03c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
41a1af33cb
commit
08b5644253
@@ -19,7 +19,6 @@ import {
|
||||
appDir,
|
||||
staticDir,
|
||||
defaultPluginsIndexDir,
|
||||
headlessDir,
|
||||
babelTransformationsDir,
|
||||
} from './paths';
|
||||
|
||||
@@ -111,29 +110,6 @@ async function compile(
|
||||
);
|
||||
}
|
||||
|
||||
export async function compileHeadless(buildFolder: string) {
|
||||
console.log(`⚙️ Compiling headless bundle...`);
|
||||
const watchFolders = [
|
||||
headlessDir,
|
||||
...(await getWatchFolders(staticDir)),
|
||||
...(await getAppWatchFolders()),
|
||||
...(await getPluginSourceFolders()),
|
||||
]
|
||||
.filter((value, index, self) => self.indexOf(value) === index)
|
||||
.filter(fs.pathExistsSync);
|
||||
try {
|
||||
await compile(
|
||||
buildFolder,
|
||||
headlessDir,
|
||||
watchFolders,
|
||||
path.join(headlessDir, 'index.tsx'),
|
||||
);
|
||||
console.log('✅ Compiled headless bundle.');
|
||||
} catch (err) {
|
||||
die(err);
|
||||
}
|
||||
}
|
||||
|
||||
export async function compileRenderer(buildFolder: string) {
|
||||
console.log(`⚙️ Compiling renderer bundle...`);
|
||||
const watchFolders = [
|
||||
|
||||
Reference in New Issue
Block a user