0.1.0 • Published 3 years ago
@tamedjs/esma v0.1.0
TamedJs ESMA
ESMA is a wrapper around nodejs cli commands to run a project as an ES6 module.
The commands are wrapped in --no-warnings
and --experimental-vm-modules
flags along with temporarily setting the package.json
to have a type: moudle
value. These will get reset back to normal about 100ms after the command is run.
Preferably it would be nice if nodejs had some kind of --type="module"
flag for the cli so that this module would not be needed. However, for now this is intended to be a simple workaround to that.
In the future there might be ways to add on to this module things like cross environment variable and access to other NodeJs ES6 module flags. For now this package is very simple.
0.1.0
3 years ago