File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 44import * as path from 'path' ;
55// eslint-disable-next-line import/no-extraneous-dependencies
66import { BrowserWindow , app , ipcMain } from 'electron' ;
7- import * as nodeEnv from '_utils/node-env' ;
7+ import * as nodeEnv from '_utils/node-env.js ' ;
88
99let mainWindow : Electron . BrowserWindow | undefined ;
1010
Original file line number Diff line number Diff line change 11// eslint-disable-next-line import/no-extraneous-dependencies
22import { contextBridge } from 'electron' ;
3- import ipcAPI from '_preload/ipc-api' ;
3+ import ipcAPI from '_preload/ipc-api.js ' ;
44
55contextBridge . exposeInMainWorld ( 'ipcAPI' , ipcAPI ) ;
Original file line number Diff line number Diff line change 44// Import the styles here to process them with webpack
55import '_public/style.css' ;
66
7+ import App from '_renderer/App.js' ;
78import * as React from 'react' ;
89import { createRoot } from 'react-dom/client' ;
9- import App from '_renderer/App' ;
1010
1111const container = document . getElementById ( 'app' ) ;
1212// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
Original file line number Diff line number Diff line change 11declare global {
22 interface Window {
33 /** APIs for Electron IPC */
4- ipcAPI ?: typeof import ( '_preload/ipc-api' ) . default
4+ ipcAPI ?: typeof import ( '_preload/ipc-api.js ' ) . default
55 }
66}
77
You can’t perform that action at this time.
0 commit comments