Skip to content

Include Babel plugins #45

@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions