Blocks are the new thing in the wordpress world, and for a good reason! they are super performant and the enable the possibility to do anything you can imagine.
Now imagine that you want to create a plugin that register a new block, and you also want to use ESNext.
In the official documentation of wordpress you can find this post.
Show me the code:
npx @wordpress/create-block todo-list
cd todo-list
npm start
I hope this helps someone :).