| | |
| | | const webpackOptionsFlag = "WEBPACK_OPTIONS"; |
| | | |
| | | /** |
| | | * Returns stack trace without the specified flag included. |
| | | * @param {string} stack stack trace |
| | | * @param {string} flag flag to cut off |
| | | * @returns {string} stack trace without the specified flag included |
| | |
| | | }; |
| | | |
| | | /** |
| | | * Cut off loader execution. |
| | | * @param {string} stack stack trace |
| | | * @returns {string} stack trace without the loader execution flag included |
| | | */ |
| | | const cutOffLoaderExecution = (stack) => cutOffByFlag(stack, loaderFlag); |
| | | |
| | | /** |
| | | * Cut off webpack options. |
| | | * @param {string} stack stack trace |
| | | * @returns {string} stack trace without the webpack options flag included |
| | | */ |
| | | const cutOffWebpackOptions = (stack) => cutOffByFlag(stack, webpackOptionsFlag); |
| | | |
| | | /** |
| | | * Cut off multiline message. |
| | | * @param {string} stack stack trace |
| | | * @param {string} message error message |
| | | * @returns {string} stack trace without the message included |
| | |
| | | }; |
| | | |
| | | /** |
| | | * Returns stack trace without the message included. |
| | | * @param {string} stack stack trace |
| | | * @param {string} message error message |
| | | * @returns {string} stack trace without the message included |
| | |
| | | }; |
| | | |
| | | /** |
| | | * Returns stack trace without the loader execution flag and message included. |
| | | * @param {string} stack stack trace |
| | | * @param {string} message error message |
| | | * @returns {string} stack trace without the loader execution flag and message included |
| | |
| | | }; |
| | | |
| | | /** |
| | | * Clean up webpack options. |
| | | * @param {string} stack stack trace |
| | | * @param {string} message error message |
| | | * @returns {string} stack trace without the webpack options flag and message included |