Closed
Description
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(...)