Skip to content

[babel-plugin] Soft validation for disallowed properties #1423

@mellyeliu

Description

@mellyeliu

We currently error on a lot of (relatively) innocuous properties like border and background for XPR reasons in property-specificity. Let's add a config with something like 'log' | 'throw' | 'silent'

Steps:

  1. Add config in https://github.com/facebook/stylex/blob/main/packages/%40stylexjs/babel-plugin/src/utils/state-manager.js
  2. Configure errors appropriately in https://github.com/facebook/stylex/blob/main/packages/%40stylexjs/babel-plugin/src/shared/preprocess-rules/property-specificity.js#L21-L90

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions