Commit a713d9f
authored
feat: add support for type: 'text' in asset modules (#12457)
* feat: add support for type: 'text' in asset modules
Add support for type: 'text' in asset modules by mapping it to 'asset/source'.
This allows users to import text files as strings using the type: 'text' syntax.
* test: update snapshot1 parent 8c1025c commit a713d9f
File tree
3 files changed
+10
-1
lines changed- packages/rspack/src/config
- tests/rspack-test
- configCases/asset-modules/type-text
- defaultsCases/default
3 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
572 | 576 | | |
573 | 577 | | |
574 | 578 | | |
| |||
Lines changed: 0 additions & 1 deletion
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
183 | 189 | | |
184 | 190 | | |
185 | 191 | | |
| |||
0 commit comments