File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ import type {
22
22
let fswin : typeof import ( "fswin" ) | undefined ;
23
23
24
24
if ( process . platform === "win32" ) {
25
- // eslint-disable-next-line unicorn/prefer-module
26
- fswin = require ( "fswin" ) ;
25
+ const { default : fswinModule } = await import ( "fswin" ) ;
26
+ fswin = fswinModule ;
27
27
}
28
28
29
29
export type ClipboardType = "text" | "image" | "files" ;
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ if (process.platform === "darwin") {
82
82
let clipboardEx : typeof import ( "electron-clipboard-ex" ) | undefined ;
83
83
84
84
if ( process . platform !== "linux" ) {
85
- // eslint-disable-next-line unicorn/prefer-module
86
- clipboardEx = require ( "electron-clipboard-ex" ) ;
85
+ const { default : clipboardExModule } = await import ( "electron-clipboard-ex" ) ;
86
+ clipboardEx = clipboardExModule ;
87
87
}
88
88
89
89
type ConfigType = {
You can’t perform that action at this time.
0 commit comments