glimmerjs/glimmer-experimental

parcel issue + missing plugin-proposal-class-properties

lifeart opened this issue · 5 comments

image

{
    "presets": [
      "@babel/preset-env"
    ],
    "plugins": [
      "@babel/plugin-proposal-class-properties",
      "@glimmerx/babel-plugin-component-templates"
    ]
  }

after missing dependency install I have:

image

for tracked support - looks like we need Babel plugin

partially working version: parcel-glimmer-donut.zip

(but, nested components won't work)

image

tldr:

this work:

import Component, { hbs } from '@glimmerx/component';
import Button from './Button';

export default class MyComponent extends Component {
    static template = hbs`
      <h1>Hello world!</h1>
      <Button  // fix it and it will broke app
    `
}

this not:

import Component, { hbs } from '@glimmerx/component';
import Button from './Button';

export default class MyComponent extends Component {
    static template = hbs`
      <h1>Hello world!</h1>
      <Button />
    `
}

solved!