feat: update
This commit is contained in:
19
metro.config.js
Normal file
19
metro.config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user