Skip to content

Commit

Permalink
Revert changes to import in electron’s preload
Browse files Browse the repository at this point in the history
  • Loading branch information
vitvakatu committed Dec 20, 2024
1 parent f7c2425 commit f773a65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/ide-desktop/client/src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import type * as projectManagement from '@/projectManagement'
// esbuild, we have to manually use "require". Switch this to an import once new electron version
// actually honours ".mjs" files for sandboxed preloading (this will likely become an error at that time).
// https://www.electronjs.org/fr/docs/latest/tutorial/esm#sandboxed-preload-scripts-cant-use-esm-imports
import electron from 'electron'
// eslint-disable-next-line @typescript-eslint/no-require-imports
const electron = require('electron')

// =================
// === Constants ===
Expand Down

0 comments on commit f773a65

Please sign in to comment.