Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Babel plugins #45

Open
ghost opened this issue May 5, 2020 · 1 comment
Open

Include Babel plugins #45

ghost opened this issue May 5, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented May 5, 2020

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.

@notmessenger
Copy link
Collaborator

@TeeBrysiewicz I'm sure you didn't miss anything. I haven't been working with Ember for a while and as such don't use this tool regularly anymore, so haven't kept it up to date with latest versions, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant