Skip to content

Surface documentation for @parcel/transformer-css errorRecovery flag #1071

@bnjmnrsh

Description

@bnjmnrsh

I've found it quite difficult to find information about implementing the "@parcel/transformer-css": errorRecovery flag, and was trying various combinations of adding it to .parcelrc or as a flag on the watch or build commands without success.

The only approach that seems to work is to add it to package.json which I gleaned after many hours of search from a comment in a closed issue:

 "@parcel/transformer-css": {
    "errorRecovery": true
  }, 

I also surmised that the flag could only be passed to the css-cli as this appears to be the only real documentation, but it doesn't mention package.json at all. Further, search in the documentation doesn't currently return any results for errorRecovery or --error-recovery, nor is there any mention in the sass or css sections of the documentation.

Quick digression, I personally really try to avoid adding configuration to package.json as it is easily overlooked and hard to remember its there. This is the reason that I spent so long trying to invoke the correct magical gestures that would get the setting to work from within .parcelrc instead -- if such a thing is possible, I'd be happy to know how.

One could say that the documentation on .parcelrc is a bit of misdirection in this regard:

Parcel works out of the box for many projects with zero configuration. But if you want more control, or need to extend or override Parcel’s defaults, you can do so by creating a .parcelrc file in your project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions