mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* add no-unused-vars and no-unused-imports * added quotes: double, and remove ignore pattern * move itif and describeif into utils Signed-off-by: Sebastian Malton <sebastian@malton.name>
12 lines
402 B
TypeScript
12 lines
402 B
TypeScript
/**
|
|
* 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") {
|
|
const { default: devToolsInstaller, REACT_DEVELOPER_TOOLS } = await import("electron-devtools-installer");
|
|
|
|
return devToolsInstaller([REACT_DEVELOPER_TOOLS]);
|
|
}
|
|
};
|