Skip to content

Improve Webpack loader #120

Closed
Closed
@xtuc

Description

@xtuc

With the new wasm pipeline in Webpack (> 4.8.0), loader can now directly emit a wasm binary.

I have a very simple demo here: https://github.com/xtuc/c-webpack-demo.

The idea would be to allow:

  module: {
    rules: [
      {
        test: /\.ts$/,
        loader: "@assemblyscript/loader",
        type: "webassembly/experimental"
      }
    ]
  },

and the user would just:

import("./foo.ts").then(...)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions