Skip to content

Commit 1178d4e

Browse files
committed
chore: update
1 parent 4f71a0f commit 1178d4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/shims/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('ESM shims', async () => {
1111

1212
test('__dirname', async () => {
1313
for (const shim of [
14-
'import { fileURLToPath as __webpack_fileURLToPath__ } from "url";',
14+
'import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url";',
1515
'var src_rslib_entry_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));',
1616
]) {
1717
expect(entries.esm0).toContain(shim);
@@ -24,7 +24,7 @@ describe('ESM shims', async () => {
2424

2525
test('__filename', async () => {
2626
for (const shim of [
27-
'import { fileURLToPath as __webpack_fileURLToPath__ } from "url";',
27+
'import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url";',
2828
'var src_rslib_entry_filename = __webpack_fileURLToPath__(import.meta.url);',
2929
]) {
3030
expect(entries.esm0).toContain(shim);

0 commit comments

Comments
 (0)