File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import cjsModule from 'node:module';
7
7
8
8
const ESMRequireShim = `
9
9
const require = cjsModule.createRequire(import.meta.url);
10
- `
10
+ ` ;
11
11
12
12
function makeESMImportShimPlugin ( shim ) {
13
13
return {
@@ -18,7 +18,7 @@ function makeESMImportShimPlugin(shim) {
18
18
} ;
19
19
}
20
20
21
- function makeESMRequireShimPlugin ( shim ) {
21
+ function makeESMRequireShimPlugin ( shim ) {
22
22
return {
23
23
transform ( code ) {
24
24
const SHIM_REGEXP = / \/ \/ # S T A R T _ S E N T R Y _ E S M _ R E Q U I R E _ S H I M [ \s \S ] * ?\/ \/ # E N D _ S E N T R Y _ E S M _ R E Q U I R E _ S H I M / ;
@@ -39,7 +39,7 @@ const variants = makeNPMConfigVariants(
39
39
for ( const variant of variants ) {
40
40
if ( variant . output . format === 'esm' ) {
41
41
variant . plugins . push ( makeESMImportShimPlugin ( ESMImportShim ) ) ;
42
- variant . plugins . push ( makeESMRequireShimPlugin ( ESMRequireShim ) )
42
+ variant . plugins . push ( makeESMRequireShimPlugin ( ESMRequireShim ) ) ;
43
43
} else {
44
44
// Remove the ESM shim comment
45
45
variant . plugins . push ( makeESMImportShimPlugin ( '' ) ) ;
You can’t perform that action at this time.
0 commit comments