-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
Update release build to not include externals. #84
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #84 +/- ##
======================================
Coverage 100% 100%
======================================
Files 10 10
Lines 85 85
======================================
Hits 85 85 Continue to review full report at Codecov.
|
Thanks for the PR. 👍I did not tested it and I did not worked with So we would go from Which would also be a breaking change. So I am not sure, if it's a good idea. Vue.jsI think it is a good idea add Vue.js as a LodashBut I don't think that seperating lodash as an external is necessary. I am using only the
Which is not that big and forcing people to install lodash is imo too much hassle. Furthermore it could get nasty for people without a building process (unkpg directly in the browser). Chart.jsI am not sure, what to do with Chart.js. Right now I would not see a benefit in adding it as a The bundle size of vue-chartjs would decrease a lot but in the end, it would be the same, as you have to install chart.js no matter what. What are your thoughts on that? ☕️ |
Yes.
Probably more something like
Yes, a couple of
Maybe an additional type of distribution is necessary here (full v.s standalone?).
Maybe using
In that specific case, I definitely agree that making lodash an external might not be the best thing to do.
End-user can choose over a peer dependency specific version (at their own risk and with a whinny |
Yeah that sounds good.
Well this will not work. You can later extend the base charts this way. But for the components I have to use the Vue.extend. However this should also work with vue as a peerDependency.
I see. Makes sense for me. Can you re-add lodash as a dependency? Like mentioned I don't think its nessasary to make it external, as I am only using the fp/merge and the hassle to install it addtionally will be greater then the bit smaller bundle size. I will test it then and merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lodash needs to be add as a dependency
build/webpack.release.js
Outdated
@@ -15,6 +15,11 @@ module.exports = { | |||
libraryTarget: 'umd', | |||
umdNamedDefine: true | |||
}, | |||
externals: { | |||
'vue': 'vue', | |||
'lodash': 'lodash', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove lodash from externals and re-add it as a dependency
@gcoguiec Thanks! |
This PR is an enhancement proposal focusing on the removal of all external deps (vue, graph.js, ...) from the final build and will also reduce minified build size from 500 kB to 59.1 kB.