Juwii #ESModule comes with the new #TypeScript release just in two weeks! If I would expect #Xmas holiday I would spend it now in advance. 🎅🎄
Refactors are just one thing, there will be less pain later on with better life quality and no time to waste. 😶🌫️
Had a deep dive on #esmodule (or joking Michael Jackson script cuz of extension .mjs) #javascript in the 🚊 & it turns out to be more than just file extension change when compared to the good old CommonJs module:
The August update of ERTW boilerplate is now here! This release brings improved #ESLint config & cleaner #Webpack config. Has also fully migrated to #ESModule syntax. Check it out for your next #Electron project!
#React#TypeScript#NodeJS
In node.js You can use EsModule like `import` syntax. What if your code is running on older version of node.js, then define fallback into the package.json so that your main entrypoint file is loaded as per supported version of node.js
#100DaysOfCode#nodejs#ESModule#javascript
You can use ES Modules with Node.js either by renaming your files to .mjs extension or specifying type as module in package.json
#esm#esmodule#nodejs#javascript#expressjs