lightning-js / blits

The Lightning 3 App Development Framework
https://blits-demo.lightningjs.io/
Apache License 2.0
64 stars 12 forks source link

Precompiler fix: checks objects with template property #116

Closed uguraslan closed 3 months ago

uguraslan commented 3 months ago

This is a quick fix for the case where config object gets template property from another object. Now the precompiler also checks objects with template property.

const myTemplate = {
  template: '
    <Element x="620" y="20">
     <Element w="300" h="200" />
    </Element>'
}

export default Blits.Component('myComp', {
...myTemplate
})