mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
This update removes the XPRIME provider from internal settings, streamlining the provider management process. The HDRezka provider is now prioritized in the UI, improving user experience. Additionally, various components have been optimized for better performance, including enhancements to the VideoPlayer for improved buffering and seeking behavior on Android devices. The app's theme has been updated to a dark mode, and several dependencies have been upgraded for better stability and performance.
31 lines
No EOL
844 B
JavaScript
31 lines
No EOL
844 B
JavaScript
const { getDefaultConfig } = require('expo/metro-config');
|
|
|
|
const config = getDefaultConfig(__dirname);
|
|
|
|
// Enable tree shaking and better minification
|
|
config.transformer = {
|
|
...config.transformer,
|
|
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
minifierConfig: {
|
|
ecma: 8,
|
|
keep_fnames: true,
|
|
mangle: {
|
|
keep_fnames: true,
|
|
},
|
|
compress: {
|
|
drop_console: true,
|
|
drop_debugger: true,
|
|
pure_funcs: ['console.log', 'console.info', 'console.debug'],
|
|
},
|
|
},
|
|
};
|
|
|
|
// Optimize resolver for better tree shaking and SVG support
|
|
config.resolver = {
|
|
...config.resolver,
|
|
assetExts: config.resolver.assetExts.filter((ext) => ext !== 'svg'),
|
|
sourceExts: [...config.resolver.sourceExts, 'svg'],
|
|
resolverMainFields: ['react-native', 'browser', 'main'],
|
|
};
|
|
|
|
module.exports = config;
|