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
via the README, Plugins are defined as functions, including the example:
A plugin is a function that returns an object. There are several hooks you can opt in to:
However, the current implementation defines a Plugin as an object with analyzePhase, and other callbacks. While plugins in npm (and the built in lit and stencil plugins) may expose functions, the plugins array must ultimately be an object.
Happy to send PR with doc changes, but want to confirm the intentions here first.
The text was updated successfully, but these errors were encountered:
jsantell
changed the title
Plugins are objects, not functions
analyzer: Plugins are objects, not functions
May 20, 2021
via the README, Plugins are defined as functions, including the example:
However, the current implementation defines a Plugin as an object with
analyzePhase
, and other callbacks. While plugins in npm (and the built in lit and stencil plugins) may expose functions, the plugins array must ultimately be an object.Happy to send PR with doc changes, but want to confirm the intentions here first.
The text was updated successfully, but these errors were encountered: