56a384ea09
* [wasm-client] keeping ownership over 'ReceivedBufferRequestSender' channel when spawning 'ResponsePusher' * Bump version of Typescript SDK to RC.10 * GitHub Actions workflow to publish SDK to NPM * Bump package version manually --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com>
34 lines
766 B
JavaScript
34 lines
766 B
JavaScript
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const path = require('path');
|
|
|
|
module.exports = {
|
|
performance: {
|
|
hints: false,
|
|
maxEntrypointSize: 512000,
|
|
maxAssetSize: 512000
|
|
},
|
|
entry: {
|
|
bootstrap: './bootstrap.js',
|
|
worker: './worker.js',
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name].js',
|
|
},
|
|
mode: 'development',
|
|
// mode: 'production',
|
|
plugins: [
|
|
new CopyWebpackPlugin({
|
|
patterns: [
|
|
'index.html',
|
|
{
|
|
from: '../pkg/*.(js|wasm)',
|
|
to: '[name][ext]',
|
|
},
|
|
],
|
|
}),
|
|
|
|
],
|
|
experiments: { syncWebAssembly: true },
|
|
};
|