Skip to content

[Core] JavaScript Engine - ESM #3407

Description

@ThuF

Reconsider the decision to be able to execute ES6 content inside *.js files. It seems that there is a difference in the eval of the content:

  • *.js files are evaluated each time.
  • *.mjs files are evaluated only once.
  • Also there is a difference between the semantics of the two file types.

This doesn't lead to a difference in the performance (e.g. faster execution time, memory consumption, etc.), but could lead to a difference in the behaviour (e.g. content being cached inside *.mjs files).

Impacted areas:

  • TypeScript compilation - should result into *.mjs files instead of *.js files

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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