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);
14
14
const ESMDirnameShim = `
15
15
const filename = fileURLToPath(import.meta.url);
16
16
const __dirname = dirname(__filename);
17
- `
17
+ ` ;
18
18
19
19
function makeESMImportShimPlugin ( shim ) {
20
20
return {
@@ -34,13 +34,13 @@ function makeESMRequireShimPlugin(shim) {
34
34
} ;
35
35
}
36
36
37
- function makeESMDirnameShimPlugin ( shim ) {
37
+ function makeESMDirnameShimPlugin ( shim ) {
38
38
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 / ;
41
41
return code . replace ( SHIM_REGEXP , shim ) ;
42
- }
43
- }
42
+ } ,
43
+ } ;
44
44
}
45
45
46
46
const variants = makeNPMConfigVariants (
Original file line number Diff line number Diff line change 1
1
import { arch as _arch , platform as _platform } from 'node:os' ;
2
- import { join , resolve } from 'node:path' ;
2
+ import { join , resolve } from 'node:path' ;
3
3
import { env , versions } from 'node:process' ;
4
4
import { threadId } from 'node:worker_threads' ;
5
5
import { familySync } from 'detect-libc' ;
You can’t perform that action at this time.
0 commit comments