DEV Community

Discussion on: How to import files in NodeJS without Webpack

Collapse
 
valeriavg profile image
Valeria • Edited

Yes that's correct, but I don't think I contradicted that in the article.

Don't forget to use .mjs extension for ES modules or otherwise enable them (e.g. set "type":"module" in package.json).