forked from MetaMask/metamask-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.tests.js
More file actions
28 lines (24 loc) · 788 Bytes
/
Copy pathbabel.config.tests.js
File metadata and controls
28 lines (24 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* eslint-disable import/no-commonjs */
const baseConfig = require('./babel.config');
const newPlugins = baseConfig.plugins.filter(
(plugin) => plugin !== 'transform-inline-environment-variables',
);
const newOverrides = [
...baseConfig.overrides,
// Don't transform environment variables for files that depend on them.
{
exclude: [
'app/components/UI/Earn/selectors/featureFlags/index.ts',
'app/core/Engine/controllers/network-controller/utils.ts',
'app/core/Engine/controllers/network-controller/utils.test.ts',
'app/store/migrations/**',
'app/util/networks/customNetworks.tsx',
],
plugins: ['transform-inline-environment-variables'],
},
];
module.exports = {
...baseConfig,
plugins: newPlugins,
overrides: newOverrides,
};