Commit d076067
committed
fix(sea): F2 e2e — switch fs/path to named imports under ESM reparse
mocha 11+'s MODULE_TYPELESS_PACKAGE_JSON reparse-as-ESM path
breaks `import * as fs from 'fs'` / `import * as path from 'path'`:
under ESM, the namespace import doesn't expose the CJS module's
exports as own properties, so `path.resolve(...)` was undefined at
runtime. Switch to named imports (`resolve as resolvePath` aliased
to keep the call site readable). Same fix applied to F4 and F3b
in their respective branches.
Verified live e2e passes against pecotesting after the fix.
Co-authored-by: Isaac
Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>1 parent cc97b18 commit d076067
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments