1 Star 0 Fork 0

jh/Rocket.Chat.ReactNative

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
metro.config.js 637 Bytes
一键复制 编辑 原始数据 按行查看 历史
const path = require('path');
const { generate } = require('@storybook/react-native/scripts/generate');
const defaultSourceExts = require('metro-config/src/defaults/defaults').sourceExts;
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
generate({
configPath: path.resolve(__dirname, './.storybook')
});
const sourceExts = [...defaultSourceExts, 'mjs'];
const config = {
transformer: {
unstable_allowRequireContext: true
},
resolver: {
sourceExts: process.env.RUNNING_E2E_TESTS ? ['mock.ts', ...sourceExts] : sourceExts
}
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/kfcvme1949/Rocket.Chat.ReactNative.git
git@gitee.com:kfcvme1949/Rocket.Chat.ReactNative.git
kfcvme1949
Rocket.Chat.ReactNative
Rocket.Chat.ReactNative
master

搜索帮助