Skip to content

Commit e868dbb

Browse files
authored
No need to make olm an external (element-hq#4139)
matrix-js-sdk now loads olm from global.Olm instead of requiring it (matrix-org/matrix-js-sdk#446), so we no longer need to define it as an external.
1 parent 33cf39e commit e868dbb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎webpack.config.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010

1111
// We ship olm.js as a separate lump of javascript. This makes it get
1212
// loaded via a separate <script/> tag in index.html (which loads it
13-
// into the browser global `Olm`), and define it as an external below.
13+
// into the browser global `Olm`, where js-sdk expects to find it).
1414
//
1515
// (we should probably make js-sdk load it asynchronously at some
1616
// point, so that it doesn't block the pageload, but that is a separate
@@ -99,7 +99,6 @@ module.exports = {
9999
},
100100
},
101101
externals: {
102-
"olm": "Olm",
103102
// Don't try to bundle electron: leave it as a commonjs dependency
104103
// (the 'commonjs' here means it will output a 'require')
105104
"electron": "commonjs electron",

0 commit comments

Comments
 (0)