File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ describe('ESM shims', async () => {
11
11
12
12
test ( '__dirname' , async ( ) => {
13
13
for ( const shim of [
14
- 'import { fileURLToPath as __webpack_fileURLToPath__ } from "url";' ,
14
+ 'import { fileURLToPath as __webpack_fileURLToPath__ } from "node: url";' ,
15
15
'var src_rslib_entry_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));' ,
16
16
] ) {
17
17
expect ( entries . esm0 ) . toContain ( shim ) ;
@@ -24,7 +24,7 @@ describe('ESM shims', async () => {
24
24
25
25
test ( '__filename' , async ( ) => {
26
26
for ( const shim of [
27
- 'import { fileURLToPath as __webpack_fileURLToPath__ } from "url";' ,
27
+ 'import { fileURLToPath as __webpack_fileURLToPath__ } from "node: url";' ,
28
28
'var src_rslib_entry_filename = __webpack_fileURLToPath__(import.meta.url);' ,
29
29
] ) {
30
30
expect ( entries . esm0 ) . toContain ( shim ) ;
You can’t perform that action at this time.
0 commit comments