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;
|
|
|
|
}
|
2023-07-22 08:05:45 +03:00
|
|
|
if (error.message === "Unauthorized") {
|
|
|
|
return false;
|
|
|
|
}
|
2023-07-10 08:25:34 +03:00
|
|
|
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: {
|
2023-08-16 05:38:50 +03:00
|
|
|
moduleNameMapper: {
|
2023-06-04 12:23:09 +03:00
|
|
|
'~/(.+)': "<rootDir>/src/$1",
|
|
|
|
'@/(.+)': "<rootDir>/src/modules/$1",
|
|
|
|
'@testing/(.+)': "<rootDir>/src/testing/$1",
|
2023-08-16 05:38:50 +03:00
|
|
|
}
|
2023-08-16 01:12:47 +03:00
|
|
|
},
|
2023-06-04 12:23:09 +03:00
|
|
|
},
|
|
|
|
};
|