es4x icon indicating copy to clipboard operation
es4x copied to clipboard

How to alias "http" module?

Open meoyawn opened this issue 4 years ago • 1 comments

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?

meoyawn avatar Aug 01 '20 10:08 meoyawn

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.

pmlopes avatar Aug 01 '20 20:08 pmlopes