Skip to content

How to use ES6 modules on the browser? #2743

Closed
@tinganho

Description

@tinganho

Are there any ways to program using ES6 modules and compile everything down to one file? I guess you treat ES6 modules as external modules and therefore not doing any bundling.

I have tried using --out option to compile everything down to one file and using ES6 syntax. But so far, it seems like TypeScript doesn't support it.

I'm just curious how you expect people ot use ES6 import syntax on the browser? I was hoping something like browserify's bundling would happened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionIssues which may not have code impact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions