forked from codeBelt/react-redux-architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcraco.config.js
25 lines (24 loc) · 803 Bytes
/
craco.config.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
const path = require('path');
module.exports = function({ env, paths }) {
return {
babel: {
presets: [],
plugins: ['@babel/plugin-proposal-optional-chaining', '@babel/plugin-proposal-nullish-coalescing-operator'],
// loaderOptions: { /* Any babel-loader configuration options: https://github.com/babel/babel-loader. */ },
// loaderOptions: (babelLoaderOptions, { env, paths }) => { return babelLoaderOptions; }
},
webpack: {
alias: {
environment: path.join(__dirname, 'src', 'environments', process.env.CLIENT_ENV),
},
},
jest: {
configure: {
modulePathIgnorePatterns: ['<rootDir>/src/environments'],
moduleNameMapper: {
environment: '<rootDir>/src/environments/test',
},
},
},
};
};