Skip to content

Cannot omit js extension when importing local module #8

Description

@alebas1

For example in: this line of code I am importing the health route using the js extension.

The result I would want is this: (omit the .js extension when importing a local file)

- import healthRoutes from './routes/health.js'
+ import healthRoutes from './routes/health'

I don't know how to do it yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions