Skip to content

Add backwards-compatible exports for reflect-metadata/Reflect#157

Merged
rbuckton merged 1 commit intomainfrom
backwards-compat-exports
Dec 14, 2023
Merged

Add backwards-compatible exports for reflect-metadata/Reflect#157
rbuckton merged 1 commit intomainfrom
backwards-compat-exports

Conversation

@rbuckton
Copy link
Copy Markdown
Contributor

Even though the documentation indicates that the package should be referenced via reflect-metadata (except when used via <script>), some projects may have manual references to reflect-metadata/Reflect or reflect-metadata/Reflect.js that are now broken by the switch to using the "exports" field in package.json. While I recommend that users switch to using the default package export via reflect-metadata, this adds backwards compatibility for older imports.

Fixes #154

@rbuckton rbuckton merged commit 9562d63 into main Dec 14, 2023
@rbuckton rbuckton deleted the backwards-compat-exports branch December 14, 2023 19:05
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.

Package subpath './Reflect' is not defined by "exports"

1 participant