Skip to content

Conversation

Swizec
Copy link

@Swizec Swizec commented May 18, 2021

What:

Ensures only 1 transformer per URL is scheduled.

Why:

Using custom transformers for sites this plugin already supports leads to undeterministic builds. Whichever plugin resolves the promise first, gets the node.

How:

Use .find instead of .filter to default to the first possible transformer.
Prioritize custom transformers by inverting the transformers array.

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

Existing tests are passing. Don't think a change to documentation is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant