Skip to content

Updated latestVersions and babel.config.json

Compare
Choose a tag to compare
@ijlee2 ijlee2 released this 31 May 12:21
· 86 commits to main since this release

A couple of changes to the blueprint files. In effect, I downstreamed the changes in @embroider/[email protected].

You can update your addon's babel.config.json as shown below:

/* Before: babel.config.json (TS projects) */
{
  "presets": [["@babel/preset-typescript"]],
  "plugins": [
    "@embroider/addon-dev/template-colocation-plugin",
    ["@babel/plugin-transform-typescript", { "allowDeclareFields": true }],
    ["@babel/plugin-proposal-decorators", { "legacy": true }],
    "@babel/plugin-proposal-class-properties"
  ]
}
/* After: babel.config.json (TS projects) */
{
  "presets": [["@babel/preset-typescript"]],
  "plugins": [
    "@embroider/addon-dev/template-colocation-plugin",
    ["@babel/plugin-transform-typescript", { "allowDeclareFields": true }],
    ["@babel/plugin-proposal-decorators", { "version": "legacy" }],
    "@babel/plugin-proposal-class-properties"
  ]
}