Skip to content

[Core] Decide if we should support mixing ES6 and CommonJS modules #1149

@vmutafov

Description

@vmutafov

We should decide if Dirigible users would be allowed to mix CommonJS and ES6 modules. Although it seems great at a first glance to support both specifications in a single project, there may be complications while implementing this.
If it is not hard for implementing, it would be good to support both specifications as it would allow users to easily migrate their applications to the ES6 modules syntax. We can see how NodeJS approached this and if they support both specifications to be used in a single project. Maybe we can differentiate the two specs by the file extension - .js for CommonJS and .mjs for ES6 moduled JS files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions