Skip to content
This repository was archived by the owner on May 11, 2018. It is now read-only.

Commit 58055c8

Browse files
Support target versions as strings (#231)
1 parent abdbeec commit 58055c8

File tree

28 files changed

+1864
-1535
lines changed

28 files changed

+1864
-1535
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ For more information on setting options for a preset, refer to the [plugin/prese
9898

9999
### `targets`
100100

101-
`{ [string]: number }`, defaults to `{}`.
101+
`{ [string]: number | string }`, defaults to `{}`.
102102

103103
Takes an object of environment versions to support.
104104

105-
Each target environment takes a number (you can also specify a minor versions like `node: 6.5`)
105+
Each target environment takes a number or a string (we recommend using a string when specifying minor versions like `node: "6.10"`).
106106

107107
Example environments: `chrome`, `opera`, `edge`, `firefox`, `safari`, `ie`, `ios`, `android`, `node`, `electron`.
108108

0 commit comments

Comments
 (0)