mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-10-31 00:01:23 +01:00 
			
		
		
		
	Merge pull request #2518 from vector-im/rav/ignore_olm_if_missing
Avoid errors if olm is missing
This commit is contained in:
		
						commit
						5e84a6c39e
					
				| @ -102,3 +102,12 @@ module.exports = { | |||||||
|     ], |     ], | ||||||
|     devtool: 'source-map' |     devtool: 'source-map' | ||||||
| }; | }; | ||||||
|  | 
 | ||||||
|  | // olm is an optional dependency. Ignore it if it's not installed, to avoid a
 | ||||||
|  | // scary-looking error.
 | ||||||
|  | try { | ||||||
|  |     require('olm'); | ||||||
|  | } catch (e) { | ||||||
|  |     console.log("Olm is not installed; not shipping it"); | ||||||
|  |     delete(module.exports.entry["olm"]); | ||||||
|  | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user