File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ Prefer using the [JavaScript module](https://developer.mozilla.org/en-US/docs/We
2424 Replacements:
2525
2626 ```js
27- import {fileURLToPath} from 'url';
28- import path from 'path';
27+ import {fileURLToPath} from 'node: url';
28+ import path from 'node: path';
2929
3030 const __filename = fileURLToPath(import.meta.url);
3131 const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -34,7 +34,7 @@ Prefer using the [JavaScript module](https://developer.mozilla.org/en-US/docs/We
3434 However, in most cases, this is better:
3535
3636 ```js
37- import {fileURLToPath} from 'url';
37+ import {fileURLToPath} from 'node: url';
3838
3939 const foo = fileURLToPath(new URL('foo.js', import.meta.url));
4040 ```
You can’t perform that action at this time.
0 commit comments