createError.js 263 B

12345678910
  1. /**
  2. * Creates an error with the plugin's prefix.
  3. * @param {string} message The error's message.
  4. * @returns {Error} The created error object.
  5. */
  6. function createError(message) {
  7. return new Error(`[React Refresh] ${message}`);
  8. }
  9. module.exports = createError;