Skip to content

Commit

Permalink
Cleanup config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Aug 8, 2023
1 parent 46c6f28 commit 16c87da
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
const path = require('path');
const escape = require('escape-string-regexp');
const exclusionList = require('metro-config/src/defaults/exclusionList');
const pak = require('../package.json');

const root = path.resolve(__dirname, '..');

const modules = Object.keys({
...pak.peerDependencies,
});
const modules = Object.keys({ ...pak.peerDependencies });

/**
* Metro configuration
Expand All @@ -17,7 +14,6 @@ const modules = Object.keys({
* @type {import('metro-config').MetroConfig}
*/
const config = {
projectRoot: __dirname,
watchFolders: [root],

// We need to make sure that only one version is loaded for peerDependencies
Expand All @@ -44,6 +40,6 @@ const config = {
},
}),
},
}
};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);

0 comments on commit 16c87da

Please sign in to comment.