fix(metro): simplify Sentry config using getSentryExpoConfig
This commit is contained in:
+4
-5
@@ -1,9 +1,8 @@
|
||||
const { getDefaultConfig } = require("expo/metro-config");
|
||||
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
|
||||
const { withNativewind } = require("nativewind/metro");
|
||||
const { withSentryConfig } = require("@sentry/react-native/metro");
|
||||
|
||||
/** @type {import('expo/metro-config').MetroConfig} */
|
||||
const config = getDefaultConfig(__dirname);
|
||||
const config = getSentryExpoConfig(__dirname);
|
||||
|
||||
config.resolver.sourceExts.push("sql");
|
||||
|
||||
@@ -15,7 +14,7 @@ config.transformer.getTransformOptions = async () => ({
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = withSentryConfig(withNativewind(config, {
|
||||
module.exports = withNativewind(config, {
|
||||
// Ensure .sql files are not processed as CSS
|
||||
inlineRem: false,
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user