Go Modules support for GopherJS
Introducing https://github.com/myitcv/gopherjs, a fork of https://github.com/gopherjs/gopherjs that includes almost complete Go Modules support, as well as some other bug fixes and goodies. The medium to long term plan is to have these changes be merged back into the main repo, but for now they will be maintained in this fork.
When in module mode, this fork should be used via a replace
:
module mod.com
replace github.com/gopherjs/gopherjs => github.com/myitcv/gopherjs latest
The current list of changes found in the https://github.com/myitcv/gopherjs fork includes:
- Almost complete Go Modules support
- Significantly improved test coverage of
gopherjs
viatestscript
test scripts - Quicker and more accurate
gopherjs
builds/installs thanks to a build artefact cache (similar to that used bycmd/go
) - Experimental addition of
MakeFullWrapper
togithub.com/gopherjs/gopherjs/js
(note this should still be imported asgithub.com/gopherjs/gopherjs/js
) - Improved contributor experience:
- JavaScript shims maintained in
.js
files - Node-based tooling to help format/manage the
.js
files
- JavaScript shims maintained in
- Various bug fixes
See the commit log for full details.