Golang loader for Webpack
This plugin is still experimental. Golang used to generate big Wasm modules which may take time to decode.
npm i -D @wasm-tool/golangSince WebAssembly support in Golang hasn't been released yet, you'll need to compile master on your own.
The GOROOT options should point to your fresh Golang installation.
module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.go$/,
        loader: "@wasm-tool/golang",
        options: {
          GOROOT: process.env["GOROOT"],
          GOPATH: process.env["GOPATH"]
        }
      }
    ]
  },
  node: {
    fs: "empty"
  }
  // ...
};