We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have an idea to make this plugin easier , like below:
import { defineConfig } from 'vite' import vitePluginImp from 'vite-plugin-imp' export default defineConfig({ plugins: [vitePluginImp()] })
Implementation: we collect a default libList from frequently used libraries.
defaultLibList: [ { libName: 'lodash', libDirectory: '', camel2DashComponentName: false, style: () => { return false; }, }, { libName: 'antd', style: (name) => `antd/es/${name}/style` }, // other frequently used libraries. ... ]
defaultLibList
libList
combinedLibList
exclude: string[]
Last but not least, ensure that the changes are compatible with the previous version.
Please feel free to comment, and I look for to having deeper discussion with you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have an idea to make this plugin easier , like below:
Implementation:
we collect a default libList from frequently used libraries.
defaultLibList
will be filter by dependencies of package.json(for better prefomance).libList
anddefaultLibList
into one list(combinedLibList
), iflibList
has a lib duplicate withdefaultLibList
, use the one inlibList
.exclude: string[]
options to exclude the lib incombinedLibList
.Last but not least, ensure that the changes are compatible with the previous version.
Please feel free to comment, and I look for to having deeper discussion with you.
The text was updated successfully, but these errors were encountered: