18 lines
336 B
JavaScript
18 lines
336 B
JavaScript
module.exports = {
|
|
presets: [
|
|
'module:@react-native/babel-preset',
|
|
],
|
|
plugins: [
|
|
[
|
|
'module-resolver',
|
|
{
|
|
root: ['./'],
|
|
alias: {
|
|
'@': './'
|
|
},
|
|
},
|
|
],
|
|
['import', { libraryName: '@ant-design/react-native' }], // 与 Web 平台的区别是不需要设置 style
|
|
],
|
|
};
|