diff --git a/lib/webpack/shared.cjs b/lib/webpack/shared.cjs --- a/lib/webpack/shared.cjs +++ b/lib/webpack/shared.cjs @@ -262,6 +262,7 @@ }, plugins: [ ...sharedPlugins, + ...baseConfig.plugins, new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify(env.prod ? 'production' : 'development'), diff --git a/web/webpack.config.cjs b/web/webpack.config.cjs --- a/web/webpack.config.cjs +++ b/web/webpack.config.cjs @@ -86,6 +86,16 @@ }; const baseWebWorkersConfig = { + plugins: [ + new CopyPlugin({ + patterns: [ + { + from: 'node_modules/sql.js/dist/sql-wasm.wasm', + to: path.join(__dirname, 'dist'), + }, + ], + }), + ], entry: { pushNotif: './push-notif/service-worker.js', webDatabase: './database/worker/web-db-worker.js',