Files
rn-app/metro.config.js
2025-11-05 17:24:55 +08:00

20 lines
430 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const { getDefaultConfig } = require('expo/metro-config');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
// 自定义 Metro 配置
config.resolver = {
...config.resolver,
// 可以在这里添加自定义解析规则
};
// 开发服务器配置
config.server = {
...config.server,
// Metro 服务器端口(默认 8081
port: 8081,
};
module.exports = config;