Sunday, 17 March 2019

Quick question about experimental mjs features

Honestly, there's not as much information out there as I would have though, especially in relation to express.jsEssentially, most of my javascript experience is on the front end, only chrome, no IE etc. So I've become accustomed to how awesome much of ES6 is. I would like to import much of my knowledge as I can, as I'm making a nodejs application at the moment.1) Can you intertwine mjs and js files in the same project? I haven't been able to call one of my mjs files from my js files (let's say one of Express' routing files.) I always get errors on the import syntax. (Also, i'm on the latest version of node and I run with --use_experimental_modules + use_strict)2) Is it worth getting into all the tooling that exists for the node world? Just using the initial express js setup from WebStorm already seems like a lot of work, and I'm not sure if setting up webpack or babel is really worth the hassle for a small learning project that I'm doing (nodejs + mySQL)Thanks everyone.

Submitted March 17, 2019 at 07:22PM by backltrack

No comments:

Post a Comment