mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Add more log entries on start up Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com> * And log entry about shell sync Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com> * Refactoring Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com> * Add new line Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com> * Apply suggestions from code review Co-authored-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com> Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> Co-authored-by: Sebastian Malton <sebastian@malton.name>
15 lines
486 B
TypeScript
15 lines
486 B
TypeScript
import logger from "./logger";
|
|
|
|
/**
|
|
* Installs Electron developer tools in the development build.
|
|
* The dependency is not bundled to the production build.
|
|
*/
|
|
export const installDeveloperTools = async () => {
|
|
if (process.env.NODE_ENV === "development") {
|
|
logger.info("🤓 Installing developer tools");
|
|
const { default: devToolsInstaller, REACT_DEVELOPER_TOOLS } = await import("electron-devtools-installer");
|
|
|
|
return devToolsInstaller([REACT_DEVELOPER_TOOLS]);
|
|
}
|
|
};
|