feat: first commit
This commit is contained in:
34
babel.config.js
Normal file
34
babel.config.js
Normal file
@ -0,0 +1,34 @@
|
||||
// babel-preset-taro 更多选项和默认值:
|
||||
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
|
||||
module.exports = {
|
||||
presets: [
|
||||
[
|
||||
'taro',
|
||||
{
|
||||
framework: 'react',
|
||||
ts: true,
|
||||
},
|
||||
],
|
||||
],
|
||||
plugins: [
|
||||
[
|
||||
'import',
|
||||
{
|
||||
libraryName: '@taroify/core',
|
||||
libraryDirectory: '',
|
||||
style: true,
|
||||
},
|
||||
'@taroify/core',
|
||||
],
|
||||
[
|
||||
'import',
|
||||
{
|
||||
libraryName: '@taroify/icons',
|
||||
libraryDirectory: '',
|
||||
camel2DashComponentName: false,
|
||||
style: () => '@taroify/icons/style',
|
||||
},
|
||||
'@taroify/icons',
|
||||
],
|
||||
],
|
||||
};
|
Reference in New Issue
Block a user