|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | webpackChain(chain, webpack) { | 
|---|
|  |  |  | if (process.env.NODE_ENV === 'development') { | 
|---|
|  |  |  | chain.plugin('analyzer').use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, []); | 
|---|
|  |  |  | chain | 
|---|
|  |  |  | .plugin('analyzer') | 
|---|
|  |  |  | .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [{ analyzerPort: 8889 }]); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | chain.plugin('unplugin-auto-import').use( | 
|---|
|  |  |  | AutoImport({ | 
|---|
|  |  |  | imports: ['vue', 'pinia', 'vue-router', { '@/constants': ['RouterPath'] }], | 
|---|
|  |  |  | dirs: ['./src/constants/**', './src/hooks/**'], | 
|---|
|  |  |  | // dirsScanOptions: { | 
|---|
|  |  |  | //   fileFilter: (file) => file.endsWith('.ts'), // Filter files | 
|---|
|  |  |  | //   types: true, | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | vueTemplate: true, | 
|---|
|  |  |  | imports: ['vue', 'pinia', 'vue-router'], | 
|---|
|  |  |  | eslintrc: { | 
|---|
|  |  |  | enabled: true, // Default `false` | 
|---|
|  |  |  | filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` | 
|---|