Skip to content

Module names include .js #1566

Closed
Closed
@robianmcd

Description

@robianmcd

In version 0.0.74 of Traceur the following module

export default function foo() {}

Would compile into:

System.register("foo", [], function($__export) {
  "use strict";
  var __moduleName = "foo";
  ...
});

With the options {modules: 'instantiate', moduleName: true}.

In 0.0.79 it now compiles into

System.register("foo.js", [], function($__export) {
  "use strict";
  var __moduleName = "foo.js";
  ...
});
//# sourceURL=foo.js

I can no longer import the module with import 'foo' becasue .js is added on to the end of the module name. I also reproduced this issue in 0.0.77.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions