Skip to content

Allow transform callback to return a promise #117

@simonsmith

Description

@simonsmith

As part of the async API it'd be great to return a promise from the transform method. The reason is to allow usage of postcss plugins that are async, like 3.x of stylelint.

transform(css, filename) {
  return processor.use(stylelint).process(css, {from: filename});
}

Unless there's a way to do something like this already?

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