mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-02-16 02:22:31 -05:00
26 lines
615 B
JavaScript
26 lines
615 B
JavaScript
const path = require('path');
|
|
const HTMLWebpackPlugin = require('html-webpack-plugin');
|
|
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
devtool: 'eval-source-map',
|
|
entry: './index.js',
|
|
output: {
|
|
filename: 'index.js',
|
|
path: path.resolve(__dirname, 'dist'),
|
|
},
|
|
experiments: {
|
|
asyncWebAssembly: true
|
|
},
|
|
resolve: {
|
|
extensions: ['.js'],
|
|
},
|
|
plugins: [
|
|
new HTMLWebpackPlugin(),
|
|
new WasmPackPlugin({
|
|
crateDirectory: path.resolve(__dirname, ".")
|
|
}),
|
|
],
|
|
};
|