Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

[#32] Fix for 'h' not defined. #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mirkojotic
Copy link

@mirkojotic mirkojotic commented Jan 20, 2019

Ran into the issue where 'h' is not defined. After a brief rabbit hole dive I've ran into this thread
developit/microbundle#12 (comment)
And the next couple of comments were really helpful.

Turns out that default "pragma" is h but it's possible to change to anything else, in this case React.createElement

The way I verified it's working is by building it, moving it to examples folder and using it in the example app. Let me know if I missed something.

Solves #32 and #31

PS. @adambrgmn just for visibility.

@alexfoo
Copy link

alexfoo commented May 11, 2019

This did not build for me (got another jsx error). But if you just upgrade microbundle it builds.

The built files works, the h is finally defined 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants