mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
feat: enable the ESM for main (#3588)
This commit is contained in:
@ -74,9 +74,6 @@ unhandled({
|
||||
showDialog: false,
|
||||
});
|
||||
|
||||
// Disable Node options if the env var is set
|
||||
process.env.NODE_OPTIONS = '';
|
||||
|
||||
// Prevent window being garbage collected
|
||||
let mainWindow: Electron.BrowserWindow | null;
|
||||
autoUpdater.autoDownload = false;
|
||||
@ -361,7 +358,7 @@ async function createMainWindow() {
|
||||
show: false,
|
||||
webPreferences: {
|
||||
contextIsolation: true,
|
||||
preload: path.join(__dirname, '..', 'preload', 'preload.js'),
|
||||
preload: path.join(__dirname, '..', 'preload', 'preload.cjs'),
|
||||
...(isTesting()
|
||||
? undefined
|
||||
: {
|
||||
|
||||
@ -1,10 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-require-imports */
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
const { test, expect } = require('@playwright/test');
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
const { sortSegments } = require('../segments');
|
||||
import { sortSegments } from '../segments';
|
||||
|
||||
test('Segment sorting', () => {
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user