Inclusion in WinterCG runtime-keys spec #535
Replies: 2 comments 2 replies
-
@Ethan-Arrowood Thanks for sharing this! This is relevant to our recently shared proposal for how React Native's Metro bundler will support package exports: #534 (which also references that Webpack docs section). In response to your question: we're happy for We're in the process of reviewing exactly what Conceptually, React Native is a framework that targets native and web platforms (and also platforms beyond mobile, e.g. macOS and Windows — see React's Many Platform Vision). However we note that the community has previously used However, your spec is aiming to categorise JavaScript runtimes, which we noted exactly in our
This is adequate to match your description, however I wonder if you are strictly looking for a JavaScript runtime it may be worth being more precise with two replacement entries:
What impacts this decision is what your developer audience/understanding is — this granularity may be unhelpful, in which case perhaps |
Beta Was this translation helpful? Give feedback.
-
And while yes, |
Beta Was this translation helpful? Give feedback.
-
Hey React Native folks! I hope this is the right place to open this - happy to move it somewhere else instead too.
I am working to land a new specification in WinterCG that defines a set of keys that represent JavaScript runtimes such that these keys can be used in developer tooling. The best example is the usage within
package.json#exports
field. Sincereact-native
is already being used by Webpack as a target environment (https://webpack.js.org/guides/package-exports/#target-environment) I have automatically included the key in the proposal draft.Before WinterCG officially publishes this specification I want to make we get approval/sign off from the React Native project. Check out your section here: https://github.com/wintercg/runtime-keys/pull/2/files#diff-5e793325cd2bfc452e268a4aa2f02b4024dd9584bd1db3c2595f61f1ecf7b985R46-R54
If you have any feedback please let me know and I'd be happy to adjust. Happy to answer any additional questions you may have as well. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions