mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
* Revert "fix yarn web (#814)" This reverts commitbf158fd977. * Revert "add hermes ios engine" This reverts commitf6defcfb12. * Revert "codex feedback" This reverts commitdf35a47f72. * Revert "merge with dev" This reverts commit47a8d9d2f1. * Revert "update Gemfile.lock and remove lock when reinstalling" This reverts commit5f25752f77. * Revert "test package update" This reverts commit19dcba0e42. * Revert "revert install cmd changes" This reverts commit5427bd12a1. * Revert "Fix CI build by excluding nokogiri in GitHub Actions/Act environments" This reverts commitdbff69a13e. * Revert "prettier" This reverts commit87f421456f. * Revert "fix building" This reverts commitfbbefd2a3d. * Revert "optimize path resolving" This reverts commit23b1118b8e. * Revert "fix loading" This reverts commitf0c884b43b. * Revert "clean up dupe bundle install" This reverts commit5428567bbe. * Revert "fix metro loading" This reverts commit3a766001dc. * Revert "remove passport provider lazy loading" This reverts commit5f793a54b3. * Revert "allow cursor to edit Gemfile and update lock file" This reverts commitb6f7158e8e. * Revert "Update Gemfile.lock to exclude nokogiri in CI environments" This reverts commit243640152d. * Revert "fix install commands" This reverts commit2dc7d7c1c9. * Revert "fix imports and test" This reverts commit83d6308029. * Revert "fix import" This reverts commitfa42b07ce4. * Revert "update build checks" This reverts commitb281f15a16. * Revert "save updated imports" This reverts commit215bca4bee. * Revert "fix build command" This reverts commit37f95bc8fb. * Revert "build dependencies before linting" This reverts commit9e57e017ca. * Revert "lint suggestions" This reverts commitff9b9d2c7c. * Revert "fix type. more opportunities" This reverts commit7ad82d5817. * Revert "add typing to crypto loader" This reverts commitd55eec8f44. * Revert "yarn nice" This reverts commitdf1c2dbd9b. * Revert "update lock" This reverts commit04692ba3b5. * Revert "cm feedback" This reverts commit848071f315. * fix file name * fix web loading * fix border width styling * fix package commands * fix import and update lock * fixes from reverted commits * more fixes for web building * fix yarn web:build * add yarn web:build workflow * cm feedback * final fixes * fix for and vitge * fix loading
49 lines
1.5 KiB
JavaScript
49 lines
1.5 KiB
JavaScript
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
const path = require('node:path');
|
|
const defaultConfig = getDefaultConfig(__dirname);
|
|
const { assetExts, sourceExts } = defaultConfig.resolver;
|
|
|
|
const monorepoRoot = path.resolve(__dirname, '../');
|
|
const commonPath = path.join(__dirname, '/../common');
|
|
const trueMonorepoNodeModules = path.resolve(__dirname, '../node_modules');
|
|
const extraNodeModules = {
|
|
stream: require.resolve('stream-browserify'),
|
|
buffer: require.resolve('buffer'),
|
|
util: require.resolve('util'),
|
|
assert: require.resolve('assert'),
|
|
'@babel/runtime': path.join(trueMonorepoNodeModules, '@babel/runtime'),
|
|
};
|
|
const watchFolders = [
|
|
path.resolve(commonPath),
|
|
trueMonorepoNodeModules,
|
|
path.join(__dirname, 'src'),
|
|
];
|
|
|
|
/**
|
|
* Metro configuration
|
|
* https://facebook.github.io/metro/docs/configuration
|
|
*
|
|
* @type {import('metro-config').MetroConfig}
|
|
*/
|
|
const config = {
|
|
transformer: {
|
|
babelTransformerPath: require.resolve(
|
|
'react-native-svg-transformer/react-native',
|
|
),
|
|
},
|
|
resolver: {
|
|
extraNodeModules,
|
|
nodeModulesPaths: [
|
|
path.resolve(__dirname, 'node_modules'), // App's own node_modules
|
|
path.resolve(monorepoRoot, 'node_modules'), // Monorepo root node_modules
|
|
trueMonorepoNodeModules,
|
|
// Add paths to other package workspaces if needed
|
|
],
|
|
assetExts: assetExts.filter(ext => ext !== 'svg'),
|
|
sourceExts: [...sourceExts, 'svg'],
|
|
},
|
|
watchFolders,
|
|
};
|
|
|
|
module.exports = mergeConfig(defaultConfig, config);
|