Robert Witchell
10/12/2021, 4:16 AMyarn node ./dist/src/index.js
• I have path aliases, so when i run tsc , my ./dist folder is throwing errors that I cannot import @myCustomAlias/server. Should I use webpack or babel here?
I'm hoping someone can help explain what process I need to run. build: tcs && webpack? to get aliases working in JS?Ryan
10/13/2021, 6:19 AMtsc.Robert Witchell
10/13/2021, 6:21 AMRobert Witchell
10/13/2021, 6:23 AMRobert Witchell
10/13/2021, 6:23 AMRobert Witchell
10/13/2021, 8:49 AM"build": "yarn prisma generate && yarn build:reflection && tsc && yarn webpack --mode=production",
"start": "NODE_ENV=production node ./dist/main.js",
and Procfile
web: yarn start
and webpack
entry: './dist/src/index.js',
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
},