-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I recently implemented this and found that I could not generate the docs because Babel's plugin-proposal-class-properties and plugin-proposal-decorators were not available to this addon. These are required for Octane's syntax to compile.
Using:
- ember-cli 3.16.1
- node 13.9.0
To get it to work, I had to:
- Install babel/preset-env
- Create a .babelrc file
- Add the following:
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "11.0"
}
}
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
["@babel/plugin-proposal-decorators", {"decoratorsBeforeExport": true}]
]
}
If I missed something and it should have worked please let me know, if not I'll start working on a PR.
Metadata
Metadata
Assignees
Labels
No labels