Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !11978

feature: allow for custom error messaging in ModuleScopePlugin

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/Aghassi/patch-1 into main Jan 23, 2022
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 1

Created by: Aghassi

This is purely related to https://github.com/facebook/create-react-app/discussions/11977 as a proof of concept for what I'm proposing. It would allow folks who directly use this webpack plugin to customize the error output. Broader use of this error through other means in CRA would need more development.

This change allows the developer to pass in an error message so that they can provide a custom error message for the missing module in the event that it is ejected from CRA OR when the developer is using react-dev-utils directly for their own use case (which is my current way of using this). So this allows developers who use this to get a more fine grain result for their end users with a better error message.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Aghassi/patch-1