pref!: complete path to supplement imports #134
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking Changes
This PR breaks the type structure of the
imports
attribute in the configuration. Now you need to add the corresponding file path for the import, so it is not compatible with the previous configuration.Acceptance type
Migration Guide
If you have previously configured the imports attribute, you need to rewrite the configuration as follows.
Issues
close #133
During local development, all files inside the components were loaded incorrectly. Therefore, it is necessary to specify the corresponding file path for import to avoid loading unused files.
Effect
The number of network requests for a page containing only one ElButton has decreased from 1085 to 264.
After this PR is merged, the number of network requests will be further reduced to 180.