@wasm-tool/golang

0.0.1 • Public • Published

@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"
  }

  // ...
};

Package Sidebar

Install

npm i @wasm-tool/golang

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

22 kB

Total Files

9

Last publish

Collaborators

  • xtuc
  • sendilkumarn