40448a4d274eb183cfaa88bf6e274fa0b381cb05
1 const path
= require('path');
2 const HtmlWebpackPlugin
= require('html-webpack-plugin');
3 const webpack
= require('webpack');
4 const WasmPackPlugin
= require("@wasm-tool/wasm-pack-plugin");
9 path: path
.resolve(__dirname
, 'dist'),
13 new HtmlWebpackPlugin(),
15 crateDirectory: path
.resolve(__dirname
, ".")
17 // Have this example work in Edge which doesn't ship `TextEncoder` or
18 // `TextDecoder` at this time.
19 new webpack
.ProvidePlugin({
20 TextDecoder: ['text-encoding', 'TextDecoder'],
21 TextEncoder: ['text-encoding', 'TextEncoder']
26 asyncWebAssembly: true