es4x
es4x copied to clipboard
How to alias "http" module?
I'm trying to call require('puppeteer')
and getting
Failed in deploying verticle caused by ModuleError: Module "http" was not found
There's https://github.com/browserify/http-browserify that I could potentially use, but it's not clear how to es4x alias it
Can you please help?
Solving this would require having a similar module to browserify but which uses vertx http client instead of xhr.
Once such module exists then an alias on the package json can be used to do it.
Aliases are not properly documented because I'm trying to to use the graaljs built-in require function in the future and aliases have a special setup in that case.