1. The minimized versions of the library lib-jitsi-meet i.e. the file lib-jitsi-meet.js with the default configurations of Browserify and Webpack are, respectively, 614KB and 424KB. That's a reduction in file size of approximately 30%. While such a reduction may be achieved with Browserify, such a configuration would be non-default i.e. it would be more complex. 2. The build process of the library lib-jitsi-meet with Browserify is split into three distinct steps by package.json: transpile, version, and minimize. The transpile step produces a .js file and a source map which get consumed by the minimize step (as input files). A possible problem appears during the version step which modifies the .js file without modifying the respective source map. Thus, there is a risk that the source map of the minimized version of the library lib-jitsi-meet is broken. The Webpack approach carries out the version step in a way that precludes the possible breaking of the source map. 3. The introduction of ES2015 forced us to split the Babel-related parts of the build process out of package.json into start_browserify.js. As may be seen by comparing start_browserify.js and webpack.config.js, there are similarities. The advantage of Webpack is that the other parts of the build process are inside webpack.config.js as well. In other words, there is no split in the build process and there is less complexity.dev1
|
|
||
|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
||
4 |
|
4 |
|
5 |
|
5 |
|
6 |
|
6 |
|
7 |
|
|
|
|
7 |
|
|
8 |
|
8 |
|
9 |
|
9 |
|
10 |
|
10 |
|
|
|
||
15 |
|
15 |
|
16 |
|
16 |
|
17 |
|
17 |
|
|
18 |
|
|
|
19 |
|
|
18 |
|
20 |
|
|
21 |
|
|
|
22 |
|
|
19 |
|
23 |
|
|
24 |
|
|
20 |
|
25 |
|
21 |
|
|
|
22 |
|
26 |
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
|
27 |
|
|
29 |
|
28 |
|
30 |
|
|
|
|
29 |
|
|
|
30 |
|
|
31 |
|
31 |
|
32 |
|
32 |
|
33 |
|
|
|
34 |
|
|
|
|
33 |
|
|
|
34 |
|
|
35 |
|
35 |
|
36 |
|
|
|
|
36 |
|
|
|
37 |
|
|
37 |
|
38 |
|
38 |
|
39 |
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
|
40 |
|
|
|
41 |
|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