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
code:
/src/plugins/lodash import lodash from 'lodash' export function lodashImports() { const exports = Object.keys(lodash).map(v => [v, `use${lodash.upperFirst(v)}`]) return { lodash: exports, } }
/vite.config.ts import { lodashImports } from './src/plugins/lodash' ... export default defineConfig({ plugins: [ AutoImport({ imports: [lodashImports()] }) ] })
https://stackblitz.com/edit/vitejs-vite-bljbqc?file=vite.config.ts
System: OS: macOS 14.0 CPU: (8) arm64 Apple M1 Pro Memory: 284.13 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.19.0 - ~/.volta/tools/image/node/18.19.0/bin/node npm: 10.2.3 - ~/.volta/tools/image/node/18.19.0/bin/npm pnpm: 8.10.2 - ~/.volta/tools/image/pnpm/8.10.2/bin/pnpm bun: 1.0.11 - ~/.bun/bin/bun Browsers: Chrome: 123.0.6312.124 Safari: 17.0
pnpm
The text was updated successfully, but these errors were encountered:
Start a new pull request in StackBlitz Codeflow.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
code:
Reproduction
https://stackblitz.com/edit/vitejs-vite-bljbqc?file=vite.config.ts
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: