forked from wordpress-mobile/gutenberg-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrn-cli.config.js
More file actions
22 lines (21 loc) · 824 Bytes
/
rn-cli.config.js
File metadata and controls
22 lines (21 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/** @format */
const path = require( 'path' );
const blacklist = require( 'metro-config/src/defaults/blacklist' );
// Blacklist the nested GB filetree so modules are not resolved in duplicates,
// both in the nested directory and the parent directory.
const blacklistElements = blacklist( [
new RegExp( path.basename( __dirname ) + '/gutenberg/node_modules/.*' ),
new RegExp( path.basename( __dirname ) + '/gutenberg/gutenberg-mobile/.*' ),
new RegExp( path.basename( __dirname ) + '/react-native-aztec-old-submodule/.*' ),
] );
const enm = require( './extra-node-modules.config.js' );
module.exports = {
extraNodeModules: enm,
resolver: {
blacklistRE: blacklistElements,
sourceExts: [ 'js', 'json', 'scss', 'sass' ],
},
transformer: {
babelTransformerPath: require.resolve( './sass-transformer.js' ),
},
};