30 lines
699 B
JavaScript
30 lines
699 B
JavaScript
const { withNativeWind } = require('nativewind/metro')
|
|
const { getSentryExpoConfig } = require('@sentry/react-native/metro')
|
|
|
|
const config = getSentryExpoConfig(__dirname)
|
|
|
|
// 配置resolver以支持MobX
|
|
config.resolver = {
|
|
...config.resolver,
|
|
platforms: ['ios', 'android', 'native', 'web'],
|
|
}
|
|
|
|
// 配置transformer以支持MobX
|
|
config.transformer = {
|
|
...config.transformer,
|
|
// minifierConfig: {
|
|
// keep_fnames: true,
|
|
// mangle: {
|
|
// keep_fnames: true,
|
|
// },
|
|
// },
|
|
getTransformOptions: async () => ({
|
|
transform: {
|
|
experimentalImportSupport: false,
|
|
inlineRequires: true,
|
|
},
|
|
}),
|
|
}
|
|
|
|
module.exports = withNativeWind(config, { input: './global.css' })
|