Commit c04b9cd
Fix core-js duplication in viewer bundles
Updated kolibri-sandbox to use Babel's useBuiltIns: 'usage' instead of
explicit core-js imports. This eliminates ~330 KB of duplication across
bloompub_viewer, html5_viewer, and learn.app bundles.
Changes:
- Set babel useBuiltIns to 'usage' with corejs 3.46
- Removed explicit core-js imports from iframe.js and xAPI files
- Babel now auto-injects polyfills only during standalone build
- When imported into main bundles, no core-js duplication occurs
Expected savings: ~330 KB across 3 viewer bundles1 parent eba166e commit c04b9cd
File tree
5 files changed
+3
-12
lines changed- packages/kolibri-sandbox
- src
- xAPI
5 files changed
+3
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 1 | | |
9 | 2 | | |
10 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments