Skip to content

Commit

Permalink
docs: clarify/correct language around Babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskrycho committed Nov 24, 2020
1 parent 30eb350 commit 0f9f088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ts/with-addons.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Building addons in TypeScript offers many of the same benefits as building apps

## Key Differences from Apps

To process `.ts` files, `ember-cli-typescript` [registers a set of Babel plugins](https://devblogs.microsoft.com/typescript/typescript-and-babel-7/) so that Babel knows how to strip away TypeScript-specific syntax. This means that `ember-cli-typescript` operates according to the same set of rules as other preprocessors when used by other addons.
To process `.ts` files, `ember-cli-typescript` tells Ember CLI to [register a set of Babel plugins](https://devblogs.microsoft.com/typescript/typescript-and-babel-7/) so that Babel knows how to strip away TypeScript-specific syntax. This means that `ember-cli-typescript` operates according to the same set of rules as other preprocessors when used by other addons.

* Like other addons that preprocess source files, **`ember-cli-typescript` must be in your addon's `dependencies`, not `devDependencies`**.
* Because addons have no control over how files in `app/` are transpiled, **you cannot have `.ts` files in your addon's `app/` folder**.
Expand Down

0 comments on commit 0f9f088

Please sign in to comment.