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

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

Open
mirkojotic wants to merge 1 commit into
adambrgmn:masterfrom
mirkojotic:master
Open

[#32] Fix for 'h' not defined.#38
mirkojotic wants to merge 1 commit into
adambrgmn:masterfrom
mirkojotic:master

Conversation

@mirkojotic

@mirkojotic mirkojotic commented Jan 20, 2019

Copy link
Copy Markdown

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

alexfoo commented May 11, 2019

Copy link
Copy Markdown

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