File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const require = createRequire(import.meta.url);
1414const ESMDirnameShim = `
1515const filename = fileURLToPath(import.meta.url);
1616const __dirname = dirname(__filename);
17- `
17+ ` ;
1818
1919function makeESMImportShimPlugin ( shim ) {
2020 return {
@@ -34,13 +34,13 @@ function makeESMRequireShimPlugin(shim) {
3434 } ;
3535}
3636
37- function makeESMDirnameShimPlugin ( shim ) {
37+ function makeESMDirnameShimPlugin ( shim ) {
3838 return {
39- transform ( code ) {
40- const SHIM_REGEXP = / \/ \/ # S T A R T _ S E N T R Y _ E S M _ D I R N A M E _ S H I M [ \s \S ] * ?\/ \/ # E N D _ S E N T R Y _ E S M _ D I R N A M E _ S H I M /
39+ transform ( code ) {
40+ const SHIM_REGEXP = / \/ \/ # S T A R T _ S E N T R Y _ E S M _ D I R N A M E _ S H I M [ \s \S ] * ?\/ \/ # E N D _ S E N T R Y _ E S M _ D I R N A M E _ S H I M / ;
4141 return code . replace ( SHIM_REGEXP , shim ) ;
42- }
43- }
42+ } ,
43+ } ;
4444}
4545
4646const variants = makeNPMConfigVariants (
Original file line number Diff line number Diff line change 11import { arch as _arch , platform as _platform } from 'node:os' ;
2- import { join , resolve } from 'node:path' ;
2+ import { join , resolve } from 'node:path' ;
33import { env , versions } from 'node:process' ;
44import { threadId } from 'node:worker_threads' ;
55import { familySync } from 'detect-libc' ;
You can’t perform that action at this time.
0 commit comments