Skip to content

import path lost #1005

Open
Open
@futurist

Description

@futurist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: EmitRelated to emit, AST printing, Program emit funcs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions