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

Introduced rollup for bundling UI #40

Merged
merged 2 commits into from
Jan 14, 2020
Merged

Conversation

LukasHirt
Copy link
Contributor

Description

Introduced rollup, optimised babel, removed vuex dependency and introduced how to interact with store by accessing it directly from Phoenix core.

Motivation

Rollup is optimised to build a bundle with as less code as possible thanks to the dead code elimination. In comparison with webpack we are losing its strong code splitting. Therefore for bigger extensions would be better to still use webpack. Example with webpack will come in follow up PR.

@LukasHirt LukasHirt self-assigned this Jan 10, 2020
ui/components/HelloApp.vue Show resolved Hide resolved
ui/components/HelloApp.vue Show resolved Hide resolved
rollup.config.js Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@LukasHirt LukasHirt force-pushed the feature/switch-to-rollup branch 4 times, most recently from 4c3b6f4 to 35e466e Compare January 13, 2020 13:57
Fixed wrong name and removed description

Brought back babel plugins

Removed commit hook

Brought back runtime transform

Enabled runtime helpers
@LukasHirt
Copy link
Contributor Author

@tboerger Something we can do about the codacy review? The block it complains about has to be there since terser module hasn't got a default export.

@tboerger
Copy link
Contributor

What about reporting that bad behavior upstream?

@LukasHirt
Copy link
Contributor Author

LukasHirt commented Jan 14, 2020

What about reporting that bad behavior upstream?

I've opened an issue there. codacy/codacy-jshint#18

@tboerger tboerger merged commit ba70971 into master Jan 14, 2020
@delete-merged-branch delete-merged-branch bot deleted the feature/switch-to-rollup branch January 14, 2020 10:02
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.

None yet

2 participants