typescript-go
typescript-go copied to clipboard
import path lost
Below line will be lost in compiled JS file:
https://github.com/microsoft/vscode/blob/5a4e405ee0e6ff91e17ac6bf3f3b7efd34353ca1/src/vs/base/common/uri.ts#L6
import { CharCode } from './charCode.js';
import { MarshalledId } from './marshallingIds.js';
import * as paths from './path.js';
import { isWindows } from './platform.js';
const _schemePattern = /^\w[\w\d+.-]*$/;
const _singleSlashStart = /^\//;
const _doubleSlashStart = /^\/\//;
The current generated JS result as below:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Uri = exports.URI = void 0;
exports.isUriComponents = isUriComponents;
exports.uriToFsPath = uriToFsPath;
const paths = require("./path.js");
const platform_js_1 = require("./platform.js");
const _schemePattern = /^\w[\w\d+.-]*$/;
const _singleSlashStart = /^\//;
const _doubleSlashStart = /^\/\//;
The first 2 line imports losts: charCode.js and marshallingIds.js