
NewsWeb Development
I tried putting commonJS in a .mjs file heres what happens
via Dev.to WebdevBeey
Table of contents What I did The twist What happened What I did I tried running this commonJS in VS code but with a twist: const vscode = require ( ' vscode ' ); The twist The twist.. I put this in a .mjs file this is not for commonJS its for ES modules. What happened Nothing serious happened, The only thing that happened was me being told it was a commonJS module and it can be switched to a ES module .
Continue reading on Dev.to Webdev
Opens in a new tab
23 views


