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

Improvements #66

Merged
merged 3 commits into from
Sep 1, 2018
Merged

Improvements #66

merged 3 commits into from
Sep 1, 2018

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
@@ -31,6 +31,9 @@
"he": "^1.1.1",
"marked": "^0.3.12"
},
"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.

2 participants