-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathbabel.config.tests.js
More file actions
61 lines (57 loc) · 3.08 KB
/
babel.config.tests.js
File metadata and controls
61 lines (57 loc) · 3.08 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* eslint-disable import-x/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/components/UI/Perps/selectors/featureFlags/index.ts',
'app/core/Engine/controllers/network-controller/utils.ts',
'app/core/Engine/controllers/network-controller/utils.test.ts',
'app/core/Engine/controllers/gator-permissions-controller/gator-permissions-controller-init.ts',
'app/core/Engine/controllers/gator-permissions-controller/gator-permissions-controller-init.test.ts',
'app/core/Engine/controllers/remote-feature-flag-controller/utils.ts',
'app/core/Engine/controllers/remote-feature-flag-controller/utils.test.ts',
'app/components/UI/Ramp/Deposit/sdk/getSdkEnvironment.ts',
'app/components/UI/Ramp/Deposit/sdk/getSdkEnvironment.test.ts',
'app/components/UI/Ramp/Aggregator/sdk/getSdkEnvironment.ts',
'app/components/UI/Ramp/Aggregator/sdk/getSdkEnvironment.test.ts',
'app/core/Engine/controllers/ramps-controller/ramps-service-init.ts',
'app/core/Engine/controllers/ramps-controller/ramps-service-init.test.ts',
'app/components/UI/Ramp/hooks/useRampsUnifiedV1Enabled.ts',
'app/components/UI/Ramp/hooks/useRampsUnifiedV1Enabled.test.ts',
'app/components/UI/Ramp/hooks/useRampsUnifiedV2Enabled.ts',
'app/components/UI/Ramp/hooks/useRampsUnifiedV2Enabled.test.ts',
'app/components/UI/Ramp/utils/isRampsUnifiedV2Enabled.ts',
'app/components/UI/Ramp/utils/isRampsUnifiedV2Enabled.test.ts',
'app/components/UI/Ramp/hooks/useRampsSmartRouting.ts',
'app/components/UI/Ramp/hooks/useRampsSmartRouting.test.ts',
'app/components/UI/Ramp/hooks/useRampTokens.ts',
'app/components/UI/Ramp/hooks/useRampTokens.test.ts',
'app/components/Views/confirmations/hooks/pay/useTransactionPayWithdraw.ts',
'app/components/Views/confirmations/hooks/pay/useTransactionPayWithdraw.test.ts',
'app/selectors/featureFlagController/legacyIosGoogleConfig/index.ts',
'app/selectors/featureFlagController/legacyIosGoogleConfig/index.test.ts',
'app/util/environment.ts',
'app/util/environment.test.ts',
'app/core/Engine/controllers/rewards-controller/utils/rewards-api-url.ts',
'app/core/Engine/controllers/rewards-controller/utils/rewards-api-url.test.ts',
'app/components/UI/Card/util/mapBaanxApiUrl.ts',
'app/components/UI/Card/util/mapBaanxApiUrl.test.ts',
'app/core/Engine/controllers/card-controller/services/baanx-config.ts',
'app/core/Engine/controllers/card-controller/services/baanx-config.test.ts',
'app/store/migrations/**',
'app/util/networks/customNetworks.tsx',
],
plugins: ['transform-inline-environment-variables'],
},
];
module.exports = {
...baseConfig,
plugins: newPlugins,
overrides: newOverrides,
};