chore: unCRLF

This commit is contained in:
CanadaHonk 2022-12-09 18:03:36 +00:00
parent d605f783af
commit 9aa70d3131
11 changed files with 462 additions and 462 deletions

View File

@ -20,7 +20,7 @@ const esbuildPlugin = { // esbuild to fix some things in src files
let source = await readFile(args.path, 'utf8');
source = source
.replace(`const __filename = fileURLToPath(import.meta.url);\r\nconst __dirname = dirname(__filename);`, ''); // remove setting __filename/__dirname cause ESM -> CJS
.replace(`const __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);`, ''); // remove setting __filename/__dirname cause ESM -> CJS
return { contents: source };
});