Skip to content
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

feat: use simpler reflect-metadata implementation #315

Merged
merged 1 commit into from
Oct 18, 2019

Conversation

wtho
Copy link
Collaborator

@wtho wtho commented Oct 1, 2019

  • remove core-js dependency in preset
  • remove core-js import tests
  • add small reflect metadata lib
  • add test for relfect metadata lib
  • update typescript version in preset to current version (just used to compile the serializers/transformers)

Please look especially at reflectMetadata.ts. Note that we surely are not proposal-compliant with this implementation, but this is minimal to what Angular uses.

also chores handled in #316 instead

  • example app: remove codelyzer dependency
  • example app: fix asset path in calc.component
  • example app: add "node" type in tsconfig.app.json to require asset

If you want I can split the chores out to an own PR/commit.

Closes #314.

@wtho wtho added the dependencies Pull requests that update a dependency file label Oct 1, 2019
@wtho wtho requested review from thymikee and ahnpnl October 1, 2019 21:10
@wtho wtho force-pushed the feat/internal-reflect-metadata branch from 57c3f56 to c580f02 Compare October 1, 2019 23:26
@wtho wtho force-pushed the feat/internal-reflect-metadata branch 2 times, most recently from 1de9778 to d12c6ce Compare October 2, 2019 16:51
@wtho wtho added this to the 8.0.0 milestone Oct 2, 2019
@thymikee
Copy link
Owner

thymikee commented Oct 3, 2019

I see this is quite stripped version. I'd suspect Angular may at any point increase/decrease their reflect-metadata usage. So it would be nice to provide an escape hatch to load core-js in such cases. Documenting it should be enough imho

* remove core-js dependency in preset
* remove core-js import tests
* add small reflect metadata lib
* add test for relfect metadata lib
* update typescript version in preset to current
@wtho wtho force-pushed the feat/internal-reflect-metadata branch from d12c6ce to e8761c6 Compare October 12, 2019 11:09
@wtho
Copy link
Collaborator Author

wtho commented Oct 12, 2019

Added documentation regarding reflection to troubleshooting

Copy link
Collaborator

@ahnpnl ahnpnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@thymikee thymikee changed the title feat: internal reflect-metadata feat: use simpler reflect-metadata implementation Oct 18, 2019
@thymikee thymikee merged commit 12b0bfa into thymikee:master Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid core-js dependency
3 participants