Skip to content

Commit 3d9563f

Browse files
committed
feat(env): define envs that we support
1 parent edb631e commit 3d9563f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ As [decorators](https://github.com/wycats/javascript-decorators) are a part of [
2020
npm install autobind-decorator
2121
```
2222

23+
### Supported platforms:
24+
25+
#### Output
26+
27+
We target IE11+ browsers with the following caveats:
28+
29+
`main` entry is in ES5
30+
31+
`module` entry is in ES6+ (notably ES modules to enable tree shaking)
32+
33+
#### Dev
34+
35+
node 8.10+ with latest npm
36+
2337
### Note uglify users:
2438

2539
Starting from v2.2, we added `module` entry in package.json and kept `main` entry as is. `module` entry is for those who wish to use modern JavaScript (notably ES modules to enable tree shaking). If your environment doesn't understand the modern syntax, you can configure your tool to read the ES5 script via the `main` entry. EG: with webpack, you could do

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,9 @@
3030
"repository": {
3131
"type": "git",
3232
"url": "git+https://github.com/andreypopp/autobind-decorator.git"
33+
},
34+
"engines": {
35+
"node": ">=8.10",
36+
"npm": ">=6.4.1"
3337
}
3438
}

0 commit comments

Comments
 (0)