enhance-dev / enhance-dev/arc-plugin-enhance

Request: Enhance "transforms" plugins

Open
#67 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
16
Forks
11
PR merge metrics
No merged PRs in 30d

Description

`@enhance/ssr` allows for script and css transformations, would it be possible to plug in custom transforms alongside the standard ones provided by `arc-plugin-enhance` here https://github.com/enhance-dev/arc-plugin-enhance/blob/f6dcdd406b60c7b9c8310bb93c6bfb1fff00f20f/src/http/any-catchall/router.mjs#L132-L141

---

No idea how this would look for a plugin author...

So far Enhance has intentionally (wisely!) avoided an explicit configuration file. Maybe transforms could be added via a file-based API?
`plugins/transforms/css/index.mjs`
I'm not sold, but it's a thought.

I don't think Enhance _needs_ these sort of plugins, but it would open up some powerful possibilities. On the other hand it could have a negative performance impact and lead to some plugin author/consumer anti-patterns and footguns. On the other _other_ hand, can't save everyone from themselves 😬

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.