@komaci/static-analyzer
v252.1.0
Published
Komaci Diagnostics API
Downloads
2,566
Readme
Static Analyzer
This library is used to analyze LWC modules for compatibility with Komaci. This is used internally by @komaci/esm-generator
to determine if code is valid to encapsulate within a Resolvable Module, and externally by ESLint to aid LWC developers in ensuring their components are written in a way that ensures that Komaci is able to prefetch data for offline-ability and performance.
Rules
There are a number of diagnostic rules that are produced when analyzing an LWC bundle with @komaci/static-analyzer
. Diagnostics will be produced for each violation detected within a module bundle.
A detailed breakdown for the rules and how each can be addressed can be found in RULES.md.