📜  使用 jsx 扩展 react-native - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:04.594000             🧑  作者: Mango

代码示例1
/**
 * Metro configuration for React Native
 * https://github.com/facebook/react-native
 *
 * @format
 */

module.exports = {
    transformer: {
        getTransformOptions: async () => ({
            transform: {
                experimentalImportSupport: false,
                inlineRequires: false,
            },
        }),
    },
    resolver: {
        sourceExts: ['jsx','js', 'json', 'ts', 'tsx']
    }
};