@@ -274,10 +274,6 @@ module.exports = (env, argv) => {
274
274
// there is no need for webpack to parse them - they can just be
275
275
// included as-is.
276
276
/ h i g h l i g h t \. j s [ \\ / ] l i b [ \\ / ] l a n g u a g e s / ,
277
-
278
- // olm takes ages for webpack to process, and it's already heavily
279
- // optimised, so there is little to gain by us uglifying it.
280
- / o l m [ \\ / ] ( j a v a s c r i p t [ \\ / ] ) ? o l m \. j s $ / ,
281
277
] ,
282
278
rules : [
283
279
useHMR && {
@@ -443,20 +439,6 @@ module.exports = (env, argv) => {
443
439
} ,
444
440
] ,
445
441
} ,
446
- {
447
- // the olm library wants to load its own wasm, rather than have webpack do it.
448
- // We therefore use the `file-loader` to tell webpack to dump the contents to
449
- // a separate file and return the name, and override the default `type` for `.wasm` files
450
- // (which is `webassembly/experimental` under webpack 4) to stop webpack trying to interpret
451
- // the filename as webassembly. (see also https://github.com/webpack/webpack/issues/6725)
452
- test : / o l m \. w a s m $ / ,
453
- loader : "file-loader" ,
454
- type : "javascript/auto" ,
455
- options : {
456
- name : "[name].[hash:7].[ext]" ,
457
- outputPath : "." ,
458
- } ,
459
- } ,
460
442
{
461
443
// Fix up the name of the opus-recorder worker (react-sdk dependency).
462
444
// We more or less just want it to be clear it's for opus and not something else.
@@ -498,8 +480,11 @@ module.exports = (env, argv) => {
498
480
} ,
499
481
} ,
500
482
{
501
- // Same deal as olm.wasm: the decoderWorker wants to load the wasm artifact
502
- // itself.
483
+ // The decoderWorker wants to load its own wasm, rather than have webpack do it.
484
+ // We therefore use the `file-loader` to tell webpack to dump the contents to
485
+ // a separate file and return the name, and override the default `type` for `.wasm` files
486
+ // (which is `webassembly/experimental` under webpack 4) to stop webpack trying to interpret
487
+ // the filename as webassembly. (see also https://github.com/webpack/webpack/issues/6725)
503
488
test : / d e c o d e r W o r k e r \. m i n \. w a s m $ / ,
504
489
loader : "file-loader" ,
505
490
type : "javascript/auto" ,
@@ -750,7 +735,6 @@ module.exports = (env, argv) => {
750
735
{ from : "vector-icons/**" , context : path . resolve ( __dirname , "res" ) } ,
751
736
{ from : "decoder-ring/**" , context : path . resolve ( __dirname , "res" ) } ,
752
737
{ from : "media/**" , context : path . resolve ( __dirname , "node_modules/matrix-react-sdk/res/" ) } ,
753
- "node_modules/@matrix-org/olm/olm_legacy.js" ,
754
738
{ from : "config.json" , noErrorOnMissing : true } ,
755
739
"contribute.json" ,
756
740
] ,
0 commit comments