GoScrobble/web/node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/utils/createError.js

11 lines
263 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
/**
* Creates an error with the plugin's prefix.
* @param {string} message The error's message.
* @returns {Error} The created error object.
*/
function createError(message) {
return new Error(`[React Refresh] ${message}`);
}
module.exports = createError;