break-stuff / stencil-cem-repro

This is a simple repro of an issue with Stencil and the CEM Analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strencil / CEM Analyzer Repro

This repo is to illustrate an issue with generating a custom elements manifest in Stencil components with the CEM Analyzer.

The issue is the analyzer generates an attribute and property for all properties in the component, even if the @Prop() is intended to be only a property. There doesn't seem to be a way to differentiate attributes from properties in Stencil.

To repro the issue:

  • npm install
  • npm run anlyze

Note that there is an attribute and a property for the gridData property in the custom-elements.json.

About

This is a simple repro of an issue with Stencil and the CEM Analyzer

License:MIT License


Languages

Language:TypeScript 85.0%Language:HTML 10.6%Language:JavaScript 3.8%Language:CSS 0.6%