ember
ember copied to clipboard
As a part of installation install `transform-class-properties` on the host app.
This would be required in case the host app wants to define models in js files with class properties.
In addition to this, if they're using eslint, we'll have to add babel-eslint
as a devDep & add the line `parser: 'babel-eslint' to their eslint config file.
Or we could add these to be a part of setup instructions & show how they can define props w/o class properties if they wish to do so.
This would be required in case the host app wants to define models in js files with class properties.
This is not strictly required, but it's more verbose without it for sure. They can always do
class Person {
constructor() {
this.firstName = String;
this.lastName = String;
}
}
But I agree, transform would be better. Should it be installed via a blueprint?