Commit d4b4324
fix(ci): define gxt build-time constants in classic-mode vite config
Classic mode pulls in glimmer-next runtime code via @ember/-internals/glimmer
even though the gxt compiler plugin doesn't run. Without inlined values for
WITH_CONTEXT_API / IS_DEV_MODE / etc., the bundled gxt code references them
as free identifiers and crashes at runtime ("ReferenceError: WITH_CONTEXT_API
is not defined"), which globally fails ~3800 tests.
Define the constants for classic mode only; in GXT mode the compiler plugin
inlines them itself and double-replacement could conflict.
Before: 1924/5800 tests passing (33%, 3876 ReferenceError).
After: 5114/9291 tests passing (55%, zero ReferenceError).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 028f05c commit d4b4324
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
129 | 149 | | |
130 | 150 | | |
131 | 151 | | |
| |||
0 commit comments