Skip to content

Commit

Permalink
esm - address compile errors in JS files (#226584)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored Aug 26, 2024
1 parent 727dbd6 commit 8be3fa2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap-amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// import * as performance from './vs/base/common/performance.js';
//
// const require = createRequire(import.meta.url);
// /** @type any */
// const module = { exports: {} };
// const __dirname = path.dirname(fileURLToPath(import.meta.url));
//
Expand Down
1 change: 1 addition & 0 deletions src/bootstrap-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// import { createRequire } from 'node:module';
//
// const require = createRequire(import.meta.url);
// /** @type any */
// const module = { exports: {} };
// ESM-uncomment-end

Expand Down
1 change: 1 addition & 0 deletions src/bootstrap-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const Module = require('module');
// import { createRequire } from 'node:module';
//
// const require = createRequire(import.meta.url);
// /** @type any */
// const module = { exports: {} };
// const __dirname = path.dirname(fileURLToPath(import.meta.url));
// ESM-uncomment-end
Expand Down
1 change: 1 addition & 0 deletions src/vs/base/common/jsonc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
'use strict';

// ESM-uncomment-begin
// /** @type any */
// const module = { exports: {} };
// ESM-uncomment-end

Expand Down
1 change: 1 addition & 0 deletions src/vs/base/common/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'use strict';

// ESM-uncomment-begin
// /** @type any */
// const module = { exports: {} };
// ESM-uncomment-end

Expand Down
1 change: 1 addition & 0 deletions src/vs/base/node/nls.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// import * as fs from 'fs';
// import * as perf from '../common/performance.js';
//
// /** @type any */
// const module = { exports: {} };
// ESM-uncomment-end

Expand Down
1 change: 1 addition & 0 deletions src/vs/base/node/unc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'use strict';

// ESM-uncomment-begin
// /** @type any */
// const module = { exports: {} };
// ESM-uncomment-end

Expand Down
1 change: 1 addition & 0 deletions src/vs/platform/environment/node/userDataPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// import * as os from 'os';
// import * as path from 'path';
//
// /** @type any */
// const module = { exports: {} };
// ESM-uncomment-end

Expand Down

0 comments on commit 8be3fa2

Please sign in to comment.