guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
138 stars 7 forks source link

fix: Node.js engine on latest #94

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

The Node.js engine was no longer working on the latest Node.js since the data: URL loader doesn't have access to the import 'fs' anymore for security in the HTTPs imports PR.

This updates the loader to work without needing any extra files present, which also usefully makes the echo = true output for Node.js tasks, while percent encoded, the actual correct execution which can be copied and pasted to run the task locally if desired, which seems a useful property.