Track plugin changes and notify frontend
Summary: Watch source plugin folders and notify frontend that any of them changed. In subsequent diffs, we will start reloading plugins that changed. Reviewed By: lblasa Differential Revision: D39539443 fbshipit-source-id: 726916c0bce336a2c0179558526bcb1b74e35b93
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3639feef61
commit
c69d102ca1
@@ -511,17 +511,3 @@ function defaultResolve(...rest: any[]) {
|
||||
...rest,
|
||||
);
|
||||
}
|
||||
|
||||
export async function rebuildPlugin(pluginPath: string) {
|
||||
try {
|
||||
await runBuild(pluginPath, true);
|
||||
console.info(chalk.green('Rebuilt plugin'), pluginPath);
|
||||
} catch (e) {
|
||||
console.error(
|
||||
chalk.red(
|
||||
'Failed to compile a plugin, waiting for additional changes...',
|
||||
),
|
||||
e,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user