0.0.1 • Published 6 years ago

@wasm-tool/golang v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

@wasm-tool/golang

Golang loader for Webpack

Installation

npm i -D @wasm-tool/golang

Usage

Since 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: "~/go"
        }
      }
    ]
  },
  node: {
    fs: "empty"
  }

  // ...
};