File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ const CJSShim = `
5
5
import __cjs_url__ from 'node:url';
6
6
import __cjs_path__ from 'node:path';
7
7
import __cjs_mod__ from 'node:module';
8
- const __filename = __cjs_url__.fileURLToPath(import.meta.url);
9
- const __dirname = __cjs_path__.dirname(__filename);
10
- const require = __cjs_mod__.createRequire(import.meta.url);
8
+ var __filename = __cjs_url__.fileURLToPath(import.meta.url);
9
+ var __dirname = __cjs_path__.dirname(__filename);
10
+ var require = __cjs_mod__.createRequire(import.meta.url);
11
11
`
12
12
13
13
const CJSShim_electron_30 = `
14
14
// -- CommonJS Shims --
15
15
import __cjs_mod__ from 'node:module';
16
- const __filename = import.meta.filename;
17
- const __dirname = import.meta.dirname;
18
- const require = __cjs_mod__.createRequire(import.meta.url);
16
+ var __filename = import.meta.filename;
17
+ var __dirname = import.meta.dirname;
18
+ var require = __cjs_mod__.createRequire(import.meta.url);
19
19
`
20
20
21
21
export const shim = electronMajorVersion >= 30 ? CJSShim_electron_30 : CJSShim
You can’t perform that action at this time.
0 commit comments