Commit afeca7a
committed
[INTERNAL] bundle/Builder: Correct bundling of resources with empty source map
If a resource features an empty source map (which is not the same as
having no source map), the bundle's source map generation needs to
handle this differently from cases where mappings exist.
It must not prefix the empty mapping with a string "AAAA,"
since the danglíng comma will result in a corrupt source map.
However, it should still add the mapping for the first line/column
"AAAA". Otherwise the source map of the preceding module in the bundle
would be applied.
Resolves the root cause of UI5/openui5#4035
DINC0139775
(cherry picked from commit 1228db7)1 parent 52116c8 commit afeca7a
File tree
21 files changed
+67
-5
lines changed- lib/lbt/bundle
- test
- expected/build
- application.a
- dest-depself/resources/library/d
- dest-deps/resources/library/d
- library.d-minified/preload/resources/library/d
- library.d
- dest/resources/library/d
- preload/resources/library/d
- fixtures
- library.d-minified/main/src/library/d
- library.d/main/src/library/d
- lib/tasks/bundlers
21 files changed
+67
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
357 | 363 | | |
358 | 364 | | |
359 | 365 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments