-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
chore: finish ESM conversion #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Have to replicate the `uvu` internals since all internal loader/iterator logic is bypassed.
- chasing unterminated process
- so that `dev.close` is await'able
- also part of what uvu cli does; derp
|
@Rich-Harris tests pass -- not sure what the rest of the red is about |
|
Thank you. All this stuff... // manually replicate uvu global state
const count = globalThis.UVU_QUEUE.push([name]);
globalThis.UVU_INDEX = count - 1;...feels a bit sketchy, do you think there's a future where there's a more idiomatic approach? |
|
Perhaps, but no promises. It's uvu internals, which are currently exposed because you've opted out of uvu's entire control flow. I think it's fair & very minimal, tho I do agree it'd feel nicer if it was given a mask/method name. |
* start converting everything to ESM * more stuff * chore: finish ESM conversion (#360) * fix(test): manually control `UVU_QUEUE` positions; Have to replicate the `uvu` internals since all internal loader/iterator logic is bypassed. * fix: force `UVU_QUEUE` values * chore: add `context.reset` method; - chasing unterminated process * fix(kit): return `snowpack.shutdown` promise - so that `dev.close` is await'able * fix(runner): manually exit process; - also part of what uvu cli does; derp * chore: convert "test/apps/basics" fixture * chore: convert "test/apps/options" fixture * bump meriyah * all tests passing, i think? * simplify * get CLI working * brute force Co-authored-by: Luke Edwards <[email protected]>
* start converting everything to ESM * more stuff * chore: finish ESM conversion (#360) * fix(test): manually control `UVU_QUEUE` positions; Have to replicate the `uvu` internals since all internal loader/iterator logic is bypassed. * fix: force `UVU_QUEUE` values * chore: add `context.reset` method; - chasing unterminated process * fix(kit): return `snowpack.shutdown` promise - so that `dev.close` is await'able * fix(runner): manually exit process; - also part of what uvu cli does; derp * chore: convert "test/apps/basics" fixture * chore: convert "test/apps/options" fixture * bump meriyah * all tests passing, i think? * simplify * get CLI working * brute force Co-authored-by: Luke Edwards <[email protected]>
the missing bits & converted the remaining test apps.