镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Transforms] module concatenation missing module name in AMD output #7880

Description

Expected:

//// [concat.js]
define("baz", ["require", "exports", "a/bar", "a/foo"], function (require, exports, bar_1, foo_1) {
    "use strict";
    exports.pi = Math.PI;
    exports.y = bar_1.x * foo_1.i;
});

Actual:

//// [concat.js]
define(["require", "exports", "a/bar", "a/foo"], function (require, exports, bar_1, foo_1) {
    "use strict";
    exports.pi = Math.PI;
    exports.y = bar_1.x * foo_1.i;
});

Failed tests:

  • tests\cases\compiler\commonSourceDir6.ts
  • tests/cases/compiler/filesEmittingIntoSameOutputWithOutOption.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: API: TransformsRelates to the public transform APIFixedA PR has been merged for this issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions