fix: optional access to Reflect.metadata#165
Conversation
|
Thanks for this PR i really appreciate it. Before moving forward with adding a fork, have you considered to make an upstream PR directly to babel? Also in the meantime, would be nice if we inline the forked version of patch in jiti codebase (same as other plugin forks) but better maintainability. Adding tests to the fixtures would be also awesome! |
|
I already did this (leonardfactory/babel-plugin-transform-typescript-metadata#70) over a month ago the last activity in this repository was on March 4, 2022 |
|
We can move this repo to the |
|
Moving to |
|
Do you recommend moving all the code to |
|
Source data only yes. (there are too many repos to maintain in unjs already and i hope we don't need constant update for this until your PR lands upstream -- hopefully) |
905de19 to
b03cf3f
Compare
|
One remark, there is a problem with pnpm, I suspect that it is install the types incorrectly |
|
Ok, I just hate pnpm lock, it's ok now |
|
@pi0 what do you think about it now? |
|
Thanks for the updates! Will check it soon locally 👍🏼 |
|
@pi0 hi, how's your check going? |
Reflect.metadata
🔗 Linked issue
#145
❓ Type of change
replace
babel-plugin-transform-typescript-metadata📚 Description
Replace all call Reflect.metadata with optional call (if not install
reflect-metadata)📝 Checklist