Closed BWrong closed 3 weeks ago
The changes involve updates to the documentation for importing components from the TinyVue
library. The TinyVueResolver
is introduced as a replacement for the autoImportPlugin
in both Vite and Webpack configurations, streamlining integration with component libraries. The document clarifies multi-component imports and expands instructions on optimizing bundle sizes. The section on single component imports remains but highlights the drawbacks of the complete import method. Overall, the updates aim to enhance clarity and provide users with efficient practices for component imports.
File Path | Change Summary |
---|---|
examples/sites/demos/pc/webdoc/import-components.md | Updated instructions for importing components, introduced TinyVueResolver , modified examples for Vite and Webpack, clarified multi-component imports, expanded optimization details, retained single component import section. |
.../vite.config.ts | Updated method signature from autoImportPlugin to TinyVueResolver . |
.../webpack.config.js | Updated method signature from autoImportPlugin to TinyVueResolver . |
🐰 "In the garden of code, we hop with glee,
TinyVue's new way, as bright as can be!
With resolvers in hand, we import with grace,
Optimizing our bundles, keeping up the pace.
Hooray for the changes, let’s dance and play,
In the world of components, it's a wonderful day!" 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
TinyVue
library.TinyVueResolver
for Vite and Webpack configurations, streamlining integration with other component libraries.