Skip to content

support an option to keep invalid css in the output #960

@hardfist

Description

@hardfist

This is a follow up issue of #209 and thank you support errorRecovery to make migration from postcss to lightningcss much easier.
But there's still a pain point that user might still want to keep the invalid css to leave it processed by other tools, so it may make sense to support an option to keep the invalid css in the output, we met some problem when use lightningcss in rspack related to this

also seems related issue in turbopack

Discussed similar problem with webpack and esbuild author about how to deal with invalid css in evanw/esbuild#1946 (comment) and it seems keep invalid css may make sense.

Again Thanks for your great work!

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