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

Support including flarum/<namespace> in import #7

Closed
wants to merge 1 commit into from

Conversation

dsevillamartin
Copy link
Member

This allows extension developers to use Flarum typings (whenever they are available) and include common/, etc... in their import statements so the typings work properly (or at all).

This is not a breaking change. If the extension developer imports from both flarum/Component and flarum/common/Component, webpack will merge the two import statements (they both evaluate to flarum.core.compat['Component']).

This allows extension developers to use Flarum typings (whenever they are available) and include common/, etc... in their import statements so the typings work properly (or at all)
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.

3 participants