diff --git a/src/bootstrap-amd.js b/src/bootstrap-amd.js index 9c8daf5575686..c7fe95414441d 100644 --- a/src/bootstrap-amd.js +++ b/src/bootstrap-amd.js @@ -12,9 +12,9 @@ */ // ESM-uncomment-begin -import * as path from 'path'; -import * as fs from 'fs'; -import { fileURLToPath } from 'url'; +import * as path from 'node:path'; +import * as fs from 'node:fs'; +import { fileURLToPath } from 'node:url'; import { createRequire, register } from 'node:module'; import { product, pkg } from './bootstrap-meta.js'; import './bootstrap-node.js'; diff --git a/src/bootstrap-node.js b/src/bootstrap-node.js index d9e8e7e9945c9..40ce2239d1558 100644 --- a/src/bootstrap-node.js +++ b/src/bootstrap-node.js @@ -12,9 +12,9 @@ // const Module = require('module'); // ESM-comment-end // ESM-uncomment-begin -import * as path from 'path'; -import * as fs from 'fs'; -import { fileURLToPath } from 'url'; +import * as path from 'node:path'; +import * as fs from 'node:fs'; +import { fileURLToPath } from 'node:url'; import { createRequire } from 'node:module'; /** @ts-ignore */ diff --git a/src/cli.js b/src/cli.js index 74484452c3da9..41668006e2361 100644 --- a/src/cli.js +++ b/src/cli.js @@ -20,8 +20,8 @@ // ESM-comment-end // ESM-uncomment-begin import './bootstrap-cli.js'; // this MUST come before other imports as it changes global state -import * as path from 'path'; -import { fileURLToPath } from 'url'; +import * as path from 'node:path'; +import { fileURLToPath } from 'node:url'; import * as bootstrapNode from './bootstrap-node.js'; import * as bootstrapAmd from './bootstrap-amd.js'; import { resolveNLSConfiguration } from './vs/base/node/nls.js'; diff --git a/src/main.js b/src/main.js index 10bd5033d7fdb..a39b1f8bbd91d 100644 --- a/src/main.js +++ b/src/main.js @@ -26,12 +26,12 @@ // const { app, protocol, crashReporter, Menu, contentTracing } = require('electron'); // ESM-comment-end // ESM-uncomment-begin -import * as path from 'path'; +import * as path from 'node:path'; import * as fs from 'original-fs'; -import * as os from 'os'; +import * as os from 'node:os'; import * as bootstrapNode from './bootstrap-node.js'; import * as bootstrapAmd from './bootstrap-amd.js'; -import { fileURLToPath } from 'url'; +import { fileURLToPath } from 'node:url'; import { app, protocol, crashReporter, Menu, contentTracing } from 'electron'; import minimist from 'minimist'; import { product } from './bootstrap-meta.js'; diff --git a/src/server-cli.js b/src/server-cli.js index 1f020a9cd8e3c..d1530712ff71c 100644 --- a/src/server-cli.js +++ b/src/server-cli.js @@ -17,8 +17,8 @@ // ESM-comment-end // ESM-uncomment-begin import './bootstrap-server.js'; // this MUST come before other imports as it changes global state -import * as path from 'path'; -import { fileURLToPath } from 'url'; +import * as path from 'node:path'; +import { fileURLToPath } from 'node:url'; import * as bootstrapNode from './bootstrap-node.js'; import * as bootstrapAmd from './bootstrap-amd.js'; import { resolveNLSConfiguration } from './vs/base/node/nls.js'; diff --git a/src/server-main.js b/src/server-main.js index 7325cc8069191..ac5d83706cd1f 100644 --- a/src/server-main.js +++ b/src/server-main.js @@ -29,12 +29,12 @@ // ESM-comment-end // ESM-uncomment-begin import './bootstrap-server.js'; // this MUST come before other imports as it changes global state -import * as path from 'path'; -import * as http from 'http'; -import * as os from 'os'; -import * as readline from 'readline'; -import { performance } from 'perf_hooks'; -import { fileURLToPath } from 'url'; +import * as path from 'node:path'; +import * as http from 'node:http'; +import * as os from 'node:os'; +import * as readline from 'node:readline'; +import { performance } from 'node:perf_hooks'; +import { fileURLToPath } from 'node:url'; import minimist from 'minimist'; import * as bootstrapNode from './bootstrap-node.js'; import * as bootstrapAmd from './bootstrap-amd.js';