You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current configuration property filterEntrypoints lacks flexibility. It requires explicitly listing all entrypoints that need to be built, which becomes cumbersome when you only need to exclude specific entrypoints in certain scenarios.
For example, I want to exclude the offscreen entrypoint when the browser is firefox.
The only solution I've found is as follows. Other approaches either fail to retrieve all entrypoint names for exclusion or fail to configure.
The skipped and exclude properties in Entrypoint have no effect because the filtering logic is applied before the entrypoints:resolved hook is triggered.
Interesting, I guess that's works... But it's not the intentional way of filtering entrypoints. Use include/exclude in your entrypoints instead, then you don't have to list everything. Those fields are what generates wxt.config.filterEntrypoints.
Feature Request
Is your feature request related to a bug?
The current configuration property
filterEntrypoints
lacks flexibility. It requires explicitly listing all entrypoints that need to be built, which becomes cumbersome when you only need to exclude specific entrypoints in certain scenarios.For example, I want to exclude the offscreen entrypoint when the browser is firefox.
The only solution I've found is as follows. Other approaches either fail to retrieve all entrypoint names for exclusion or fail to configure.
The
skipped
andexclude
properties in Entrypoint have no effect because the filtering logic is applied before theentrypoints:resolved
hook is triggered.What are the alternatives?
Introduce an
entrypoints:beforeResolve
hook.Although
HookResult
returns void or Promise, modifications to theskipped
orexclude
properties can achieve the goal.The text was updated successfully, but these errors were encountered: