Skip to content

Commit

Permalink
Update README.md to include v2 addons (#574)
Browse files Browse the repository at this point in the history
* Update README.md to include v2 addons

* update v4 upgrade docs

* fix paths
  • Loading branch information
aklkv authored Aug 13, 2024
1 parent ce0b142 commit da78072
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ options: {
],
},
},

// in V2 addon babel.config.json
{
"plugins": [
[
// ... any other plugins
"ember-concurrency/async-arrow-task-transform"
]
}
```

See the [test application](https://github.com/machty/ember-concurrency/blob/master/packages/test-app/ember-cli-build.js) for an example.
Expand Down
10 changes: 10 additions & 0 deletions packages/test-app/snippets/babel-transform-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ options: {
},
},

// in V2 addon babel.config.json

{
"plugins": [
[
// ... any other plugins
"ember-concurrency/async-arrow-task-transform"
]
}

// in engine index.js

// ...
Expand Down

0 comments on commit da78072

Please sign in to comment.