Ryan Tsao

Results 92 comments of Ryan Tsao

I'm not sure I understand. WeakMap only restricts that keys are object type (which is fine because ctx is always an object) but values can by any type. ```js const...

Yeah, that was the old API as well (memoization was essentially based on reference equality to the context object).

Looks like https://github.com/webpack/webpack/issues/7032

Shouldn't *only* root files inside a given `__tests__` directory be considered tests? For example: - `__tests__/test.js` - `__tests__/foo/nontest.js` - `foo/__tests__/test.js` - `foo/__tests__/foo/nontest.js` Having a specific subdirectory for non-tests seems odd,...

To do that, csjs would need to be some sort of stateful singleton. I've actually started working on a similar idea as part of a comprehensive, better server-rendering and CSS...

`csjs-bootstrap` would be totally awesome! So a rendering-library agnostic collection of `csjs` styles? Or did you have in mind an actual consumable CSS library (implemented with CSJS). I think this...

@scott113341 That's really cool! I typically just write plain CSS directly. I'll use autoprefixer (which can be used with https://github.com/rtsao/babel-plugin-csjs-postcss) to avoid needing to deal with vendor prefixes, but otherwise...

If it's defined in the same csjs literal, both instances of `.active` will be scoped to the same value so there's no change needed. If `.active` is from another csjs...

Todo: investigate https://github.com/thysultan/stylis.js

I've been busy with other things lately so admittedly CSJS has been neglected a bit. Since the scoping configuration stuff is going to be a breaking change, I've delayed release...