Skip to content

Conversation

@christianalfoni
Copy link
Collaborator

Hi guys,

I have fixed an issue related to large bundle sizes. Now you can use plain marksy import to create components, using the conventional h.

# Hello

\`\`\`marksy
h(SomeCustomComponent, {}, "hello")
\`\`\`

This has exactly the same effect as using jsx, but without the large bundle size.

Other fixes:

  • You now import marksy/jsx instead of marksy/components, since you now have components available by default. I have added a deprecation warning to the previous import, which still works

  • I have fixed the tests with a Jest config

I guess that is it! Hope you like it, cause I really need for a project ;-)

package.json Outdated
},
"jest": {
"testURL": "http://localhost/"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead you can upgrade to jest 23.5.0 which fixes this issue.
jestjs/jest#6792

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah, nice, they fixed it! Thanks! Rebased now :)

@christianalfoni christianalfoni merged commit d2f120c into master Sep 1, 2018
@christianalfoni christianalfoni deleted the improvements branch September 1, 2018 16:13
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