esMain(import.meta) in Nue.js source code.
In this article, we will review a function, esMain(), in Nue.js source code. You will find the below code snippet at line 127 in packages/nuekit/cli.js.
// Only run main when called as real CLI
if (esMain(import.meta)) {
What caught my attention is ...
thinkthroo.com2 min read