module.exports = { module: { rules: [ { test: /\.rs$/, use: [ { loader: 'babel-loader', options: { compact: true } }, { loader: 'rust-native-wasm-loader', options: { release: true, wasmBindgen: { wasm2es6js: true } } } ] } ] } };