31 Star 356 Fork 108

猫头猫 / MusicFree

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
metro.config.js 805 Bytes
一键复制 编辑 原始数据 按行查看 历史
猫头猫 提交于 2024-01-01 21:37 . feat: 设置字体大小
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @format
*/
const {getDefaultConfig} = require('metro-config');
module.exports = (async () => {
const {
resolver: {sourceExts, assetExts},
} = await getDefaultConfig();
return {
transformer: {
babelTransformerPath: require.resolve(
'react-native-svg-transformer',
),
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
resolver: {
assetExts: assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
},
};
})();
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/maotoumao/MusicFree.git
git@gitee.com:maotoumao/MusicFree.git
maotoumao
MusicFree
MusicFree
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891