| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 | | // babel-preset-taro 更多选项和默认值: |  |   |  | // https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md |  | module.exports = { |  |   compact: false, |  |   presets: [ |  |     [ |  |       'taro', |  |       { |  |         framework: 'vue3', |  |         ts: true, |  |       }, |  |     ], |  |   ], |  |   plugins: [ |  |     [ |  |       'import', |  |       { |  |         libraryName: 'lodash', |  |         libraryDirectory: '', |  |         camel2DashComponentName: false, // default: true |  |       }, |  |       'lodash', |  |     ], |  |     // 'lodash', |  |   ], |  |   env: { |  |     production: { |  |       plugins: ['transform-remove-console'], |  |     }, |  |   }, |  | }; | 
 |