Commit a690786
committed
fix(build): remove module2.module.exports from external bundles
The external bundling process was generating invalid CommonJS code with
`module2.module.exports = X;` which causes "Cannot set properties of
undefined" errors when loading @InQuirer modules.
This adds pattern detection and removal of these invalid lines in the
fix-commonjs-exports.mjs script that runs after bundling.
Fixes prompt tests that were failing in CI.1 parent 4c91d8a commit a690786
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
353 | 372 | | |
354 | 373 | | |
355 | 374 | | |
| |||
0 commit comments