Files
rn-app/babel.config.js
2025-08-27 19:20:10 +08:00

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
],
};