2023-06-04 12:23:09 +03:00
|
|
|
const path = require("path");
|
|
|
|
|
|
|
|
module.exports = {
|
2023-07-10 08:25:34 +03:00
|
|
|
devServer: {
|
|
|
|
client: {
|
|
|
|
overlay: {
|
|
|
|
runtimeErrors: (error) => {
|
|
|
|
if (error.message === "ResizeObserver loop limit exceeded") {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
2023-06-04 12:23:09 +03:00
|
|
|
webpack: {
|
|
|
|
alias: {
|
|
|
|
'~': path.resolve(__dirname, 'src'),
|
|
|
|
'@': path.resolve(__dirname, 'src/modules'),
|
|
|
|
'@testing': path.resolve(__dirname, 'src/testing'),
|
2023-07-10 08:25:34 +03:00
|
|
|
},
|
2023-06-04 12:23:09 +03:00
|
|
|
},
|
|
|
|
jest: {
|
|
|
|
configure: {
|
|
|
|
"moduleNameMapper": {
|
|
|
|
'~/(.+)': "<rootDir>/src/$1",
|
|
|
|
'@/(.+)': "<rootDir>/src/modules/$1",
|
|
|
|
'@testing/(.+)': "<rootDir>/src/testing/$1",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|