Closed
Description
π Search Terms
"NodeNext", "paths"
π Version & Regression Information
- I was unable to test this on prior versions because _______
β― Playground Link
https://github.com/Ttou/nodenext-issue
π» Code
import { APP } from '@/constants/index.js'
import express from 'express';
const app = express()
app.get('/', (req, res) => {
res.send('Hello World')
})
app.listen(APP.PORT, () => {
console.log(`Server is running on port ${APP.PORT}`)
})
π Actual behavior
dist/main.js
import { APP } from '@/constants/index.js';
import express from 'express';
const app = express();
app.get('/', (req, res) => {
res.send('Hello World');
});
app.listen(APP.PORT, () => {
console.log(`Server is running on port ${APP.PORT}`);
});
//# sourceMappingURL=main.js.map
π Expected behavior
import { APP } from './constants/index.js';
import express from 'express';
const app = express();
app.get('/', (req, res) => {
res.send('Hello World');
});
app.listen(APP.PORT, () => {
console.log(`Server is running on port ${APP.PORT}`);
});
//# sourceMappingURL=main.js.map
Additional information about the issue
No response
Metadata
Metadata
Assignees
Labels
No labels