Hello!!
I'm trying to develop web server made of express.js. And I want to use esbuild as bundler, but esbuild don't have feature to realod server. So I tried to add the feature.
Finally, I used nodemon. Like below.
{
"watch": [
"src"
],
"ignore": [
"dist",
"node_modules"
],
"ext": "ts,mjs,js,json,graphql",
"exec": "yarn build && yarn start",
"legacyWatch": true
}
But it isn't best way to reload because that code regenerate all code... ... If you have another solution, I want to know that!!
Top comments (0)