You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the --target wc-async switch it seems to be impossible to define a way to add common parts of all components into the entry file.
For example, I have a ComponentA.vue and a ComponentB.vue, which both include a utils.js. Generating the web components with vue-cli and --target wc-async ass the utils.js to all component bundles, although it could make the overall size smaller by just adding it once to the main entry file which calls the bundles for ComponentA and B.
Either this is possible and not documented well enough or this would be a good feature to reduce overall bundle sizes.
I've experimented with several webpack options, but to no avail.
What does the proposed API look like?
An option in vue.config.js where you can specify files that should be made "common" (i.e. added to the entry file instead of the component chunks).
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
Using the
--target wc-async
switch it seems to be impossible to define a way to add common parts of all components into the entry file.For example, I have a ComponentA.vue and a ComponentB.vue, which both include a utils.js. Generating the web components with vue-cli and --target wc-async ass the utils.js to all component bundles, although it could make the overall size smaller by just adding it once to the main entry file which calls the bundles for ComponentA and B.
Either this is possible and not documented well enough or this would be a good feature to reduce overall bundle sizes.
I've experimented with several webpack options, but to no avail.
What does the proposed API look like?
An option in vue.config.js where you can specify files that should be made "common" (i.e. added to the entry file instead of the component chunks).
The text was updated successfully, but these errors were encountered: