Commit d75e77c
authored
fix: perform percent encoding to reserved chars in dataurl. (#1729)
resolves #1406. Some codes are migrated from @ikkz. Actually, he is also
a contributor to this PR.
Handle reserved chars in
[rfc](https://datatracker.ietf.org/doc/html/rfc3986#section-2.2).
cc @IWANABETHATGUY.
Enabled more tests from `esbuild` related to `dataurl`.1 parent bf1ef6e commit d75e77c
35 files changed
Lines changed: 261 additions & 39 deletions
File tree
- crates
- rolldown_utils/src
- rolldown
- src/utils
- tests
- esbuild/loader
- .loader_data_url_base64_invalid_utf8
- .loader_data_url_base64_vs_percent_encoding
- loader_data_url_base64_invalid_utf8
- loader_data_url_base64_vs_percent_encoding
- loader_data_url_common_js_and_es6
- loader_data_url_escape_percents
- fixtures/function/module_types/dataurl/text
- snapshots
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 59 | + | |
| 60 | + | |
74 | 61 | | |
75 | 62 | | |
76 | 63 | | |
| |||
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
0 commit comments