Skip to content

Basic template: rescript.json contains "module": "esmodule" and "suffix": ".res.js" #60

Closed
@nfgrusk

Description

@nfgrusk

When using create-rescript-app 1.7.1 (and picking the basic template + ReScript 11.1.1 + ReScript 1.4.0), the rescript.json file created for a new project looks like this:

{
  // …
  "package-specs": {
    "module": "esmodule",
    "in-source": true
  },
  "suffix": ".res.js",
  // …
}

Thus, building the project and running node src/Demo.res.js will lead to Node.js complaining about a syntax error (“Unexpected token 'export'”).

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