Skip to content

Preprocess options should be on options.preprocess #41

Closed
@Rich-Harris

Description

@Rich-Harris

I just realised that preprocess functions are being drawn directly from options:

options: {
  style: (...) => {...}
}

For consistency with other integrations, that should be like this instead:

options: {
  preprocess: {
    style: (...) => {...}
  }
}

We'll have to intercept options.style, options.script and options.markup and a) turn them into options.preprocess and b) print a big deprecation warning.

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