Commit b7f6070
Rowan Wyborn
Initial check in - Support other JSX factories Issue #3788
- added jsxNamespace compile option
- when jsx mode is "react", jsxNamespace optionally specifies the emit namespace for React calls, eg "--jsxNamespace MyDOMLib" will emit calls as MyDOMLib.createElement (instead of React.createElement)
- symbol specified by jsxNamespace must be present, else compile error is generated (same handling as is done for React symbol when no jsxNamespace is specified)1 parent bb1e5ab commit b7f6070
File tree
5 files changed
+17
-6
lines changed- src/compiler
5 files changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8491 | 8491 | | |
8492 | 8492 | | |
8493 | 8493 | | |
8494 | | - | |
| 8494 | + | |
8495 | 8495 | | |
8496 | | - | |
| 8496 | + | |
8497 | 8497 | | |
8498 | | - | |
8499 | | - | |
8500 | | - | |
| 8498 | + | |
| 8499 | + | |
| 8500 | + | |
| 8501 | + | |
8501 | 8502 | | |
8502 | 8503 | | |
8503 | 8504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2389 | 2389 | | |
2390 | 2390 | | |
2391 | 2391 | | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
2392 | 2396 | | |
2393 | 2397 | | |
2394 | 2398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1192 | 1192 | | |
1193 | 1193 | | |
1194 | 1194 | | |
1195 | | - | |
| 1195 | + | |
1196 | 1196 | | |
1197 | 1197 | | |
1198 | 1198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2382 | 2382 | | |
2383 | 2383 | | |
2384 | 2384 | | |
| 2385 | + | |
2385 | 2386 | | |
2386 | 2387 | | |
2387 | 2388 | | |
| |||
0 commit comments