Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Migrate to ES modules #160

@alexashley

Description

@alexashley

Currently the code under server uses ESM and the remaining code is transpiled to CJS. Ideally we would be able to set "type": "module" and drop the .mjs extension for the server code. Of course, the React code under pages and component would still need to be transpiled.

The last time this was attempted, there was some issues with Next.js:

https://github.com/vercel/next.js/issues/9607
https://github.com/vercel/next.js/issues/24334
https://github.com/vercel/next.js/discussions/22381

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