Closed philippseith closed 3 years ago
A PR is definitely welcome!
It turns out that using another npm registry boils down to implement all registry specific npm config keys like _auth
, cert
, strict-ssl
and so on in fetch_body!/1
. That would get complicated. I will try to add an install option which uses npm directly (and maybe one that uses golang)
@philippseith those keys should not be required from our side but yeah, we will need an access to the SSL certificate. Another option is for you to configure the esbuild URL and we download from that URL. You can also download it and place it in _build/esbuild
yourself. :)
In an environment where registry.npm.org is not available, e.g. behind a corporate firewall where registry.npm.org is replaced by another npm registry, install/0 fails with:
to prevent this, the host part of the url variable here https://github.com/phoenixframework/esbuild/blob/d4cf71f62f6c01234f8ab2d39467f1cce8dbeee7/lib/esbuild.ex#L157 should be made configurable