Skip to content

Commit 3b9ecd3

Browse files
authored
Update README.md
1 parent c42b97f commit 3b9ecd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: README.md

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ But if you try to transpile away private fields or static blocks, the fairly agg
6161

6262
The solution to both problems is setting `runEarly: true` on `decorator-transforms`. This setting is not the default because it does incur the cost of an extra traversal in babel's `pre` phase.
6363

64+
## A Note on Naming Conventions
65+
66+
If you try to use the string name "decorator-transforms" in a babel config file, babel will assume you mean the NPM package "babel-plugin-decorator-transforms". This is a terrible convention. The solution is to use the string "module:decorator-transforms" instead.
67+
6468
## Trying this in an Ember App
6569

6670
1. Install the `decorator-transforms` package.

0 commit comments

Comments
 (0)