Skip to content

Conversation

@lukeed
Copy link
Member

@lukeed lukeed commented Feb 1, 2021

the missing bits & converted the remaining test apps.

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
@lukeed
Copy link
Member Author

lukeed commented Feb 1, 2021

@Rich-Harris tests pass -- not sure what the rest of the red is about

@Rich-Harris Rich-Harris merged commit 1d4b1ec into gh-349 Feb 1, 2021
@Rich-Harris Rich-Harris deleted the lukeed/gh-349 branch February 1, 2021 23:38
@Rich-Harris
Copy link
Member

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?

@lukeed
Copy link
Member Author

lukeed commented Feb 1, 2021

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.

Rich-Harris pushed a commit that referenced this pull request Feb 10, 2021
* 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]>
benmccann pushed a commit that referenced this pull request Feb 10, 2021
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants