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

[v2] Bundle modules through rollup #144

Merged
merged 3 commits into from
Apr 16, 2020
Merged

[v2] Bundle modules through rollup #144

merged 3 commits into from
Apr 16, 2020

Conversation

yhatt
Copy link
Owner

@yhatt yhatt commented Apr 16, 2020

Bundle modules through rollup to provide the smarter library in v2.

CommonJS build

Bundle the body of jsx-slack and experimental JSX automatic runtimes (#142) into the smallest chunks. The main entry will be 35.92KB (12.07KB w/ gzipped)

ES Module build

Emit minified modules with enabled preserveModules, to keep tree-shakable that had worked in #110.

Due to the design of transformation in Babel, JSX automatic runtimes are not supported ES Module. However, the structure of JSX is same in both so we should not expect no problems even if mixed.

Both

Bundle htm into jsx-slack instead of depending external. Bundled size of htm is negligibly small.

@yhatt

This comment has been minimized.

@yhatt yhatt merged commit ca50551 into v2 Apr 16, 2020
@yhatt yhatt deleted the v2-rollup branch April 16, 2020 07:36
@yhatt yhatt mentioned this pull request Apr 16, 2020
8 tasks
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.

1 participant