-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-overrides.js
25 lines (23 loc) · 1 KB
/
config-overrides.js
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
module.exports = {
jest(config) {
// eslint-disable-next-line no-param-reassign
config.moduleNameMapper = {
'^react-native$': 'react-native-web',
localforage: '<rootDir>/mocks/localforageMock.js',
'../dictionaries/dictionary.json': '<rootDir>/mocks/dictionary.json',
'../dictionaries/exact-match.json': '<rootDir>/mocks/exact-match.json',
'../dictionaries/greek-match.json': '<rootDir>/mocks/greek-match.json',
'../dictionaries/latin-match.json': '<rootDir>/mocks/latin-match.json',
'\\.(css|less)$': 'identity-obj-proxy',
};
return config;
},
webpack(config) {
// This is very fragile and liable to change with updates to React Scripts
// It is necessary in order to keep build sizes down since there is a lot of Unicode
// See https://github.com/facebook/create-react-app/issues/2706
// eslint-disable-next-line no-param-reassign
config.optimization.minimizer[0].options.terserOptions.output.ascii_only = false;
return config;
},
};