app.bundle.js before: 3851549 after: 4506493. The culprit for the bloat was Olm. It feature-detects the environment in order to pick a suitable random byte generator, and alas Webpack includes the None crypto pollyfill. This is due to the existence of the "node" block in our Webpack configuration file. The solution is to provide empty modules to make bundling work, as we did already for the fs module, since we know they are not used at runtime.j8
|
|
||
142 |
|
142 |
|
143 |
|
143 |
|
144 |
|
144 |
|
145 |
|
|
|
|
145 |
|
|
|
146 |
|
|
146 |
|
147 |
|
147 |
|
148 |
|
148 |
|
149 |
|
|
|
||
190 |
|
191 |
|
191 |
|
192 |
|
192 |
|
193 |
|
193 |
|
|
|
|
194 |
|
|
194 |
|
195 |
|
195 |
|
196 |
|
196 |
|
197 |
|