Skip to content

Rewatch: warnings options for dependencies should be ignored #7564

Open
@cknitt

Description

@cknitt

My rewatch / ReScript 12 test project has rescript-webapi as a dependency. rescript-webapi has the following settings in its bsconfig.json:

  "warnings": {
    "number": "+A",
    "error": "+A"
  },

When building with rescript/bsb, these settings seem to be ignored. My project builds and I don't see any warnings for rescript-webapi at all.

However, when building with rewatch, these settings seem to be applied, and my project does not build:

  Warning number 3 (configured as error)
  /Users/christoph/projects/cca/inform4/node_modules/rescript-webapi/src/Webapi/Dom/Webapi__Dom__Types.res:80:10-14

  78 ┆ | 1 => Line
  79 ┆ | 2 => Page
  80 ┆ | _ => raise(Invalid_argument("invalid deltaMode"))
  81 ┆ }
  82 ┆

  deprecated: Pervasives.raise
  `raise` has been renamed to `throw` to align with JavaScript vocabulary. Please use `throw` instead

(etc.)

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