mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-30 10:20:00 -06:00
29 lines
867 B
JavaScript
29 lines
867 B
JavaScript
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
// Learn more https://docs.expo.io/guides/customizing-metro
|
|
const { withRozenite } = require('@rozenite/metro')
|
|
const { wrapWithReanimatedMetroConfig } = require('react-native-reanimated/metro-config')
|
|
|
|
const { getDefaultConfig } = require('@react-native/metro-config')
|
|
|
|
const config = getDefaultConfig(__dirname, {
|
|
// [Web-only]: Enables CSS support in Metro.
|
|
isCSSEnabled: true,
|
|
})
|
|
|
|
// Expo 49 issue: default metro config needs to include "mjs"
|
|
// https://github.com/expo/expo/issues/23180
|
|
config.resolver.sourceExts.push('mjs')
|
|
|
|
config.watchFolders = ['src']
|
|
|
|
const rozeniteConfig = {
|
|
include: [
|
|
'@rozenite/mmkv-plugin',
|
|
'@rozenite/network-activity-plugin',
|
|
'@rozenite/tanstack-query-plugin',
|
|
],
|
|
exclude: [],
|
|
}
|
|
|
|
module.exports = withRozenite(wrapWithReanimatedMetroConfig(config, rozeniteConfig))
|