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.
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
.jsextension when importing a local file)I don't know how to do it yet.