54 Commits

Author SHA1 Message Date
Brian Ng
b73dac4f63 add test 2017-07-03 09:07:48 -05:00
Brian Ng
36e017b427 Ensure explicit targets always override browsers key targets 2017-06-01 08:38:55 -05:00
Brian Ng
0781f711d0 Support target versions as strings (#231) 2017-05-19 16:28:30 -05:00
Artem Yavorsky
e54cef60a5 Remove hidden files from debug fixtures targets. (#287) 2017-04-17 12:07:29 -04:00
Diogo Franco
75db91940e Support spec option (#98) 2017-04-14 10:11:36 -05:00
Brian Ng
2f28de5d70 Add Android browser to name map 2017-04-11 11:45:16 -05:00
Brian Ng
3c8eeec515 Ensure const-check plugin order (#257) 2017-04-07 16:25:34 -05:00
Artem Yavorsky
1e4e071c25 Support electron version in a string format. 2017-04-07 19:29:49 +03:00
Artem Yavorsky
624c2868c0 Allow use babel-plugin- prefix for include and exclude. (#242) 2017-04-04 09:24:25 -05:00
Brian Ng
ae3e7cb4a9 Add check for ArrayBuffer[Symbol.species] (#233) 2017-03-30 16:18:28 -04:00
Artem Yavorsky
c4c9a7fc88 Fill data with electron as a target. (#229) 2017-03-28 23:07:17 -05:00
Mikhail Shustov
ae3dfda1d6 separate default builtins for platforms (#226) 2017-03-27 17:43:18 -05:00
Artem Yavorsky
dde487a0c6 Add typed array methods to built-ins features. 2017-03-14 10:28:25 -05:00
Brian Ng
9d890f57bb Refactor browser data parsing to handle families 2017-03-14 00:05:17 -05:00
Artem Yavorsky
37bd909e15 Put duplicate-keys in alphabetical order. 2017-03-10 13:59:56 +02:00
Brian Ng
cd0c019b24 Add transform-duplicate-keys mapping (#192) 2017-03-06 14:55:34 -06:00
Artem Yavorsky
6a2b6fc0e0 Add uglify as a target (#178) 2017-03-03 15:36:54 -06:00
Daniel Tschinder
09c84a379f Fix tests 2017-03-02 22:24:46 +01:00
Brian Ng
93b8b0735b Add electron version exception test 2017-02-28 11:38:27 -06:00
Brian Ng
1092dde11c Add tests for debug output (#156) 2017-02-24 08:27:43 -05:00
Kilian Valkhof
4cefa5bcc0 Use external Electron to Chromium library (#144)
* Replace manual electron-to-chromium list and function with external library

* test fixtures for electron: Switch to electron 1.4, with known chrome version and update expected output

* update tests: electron 1.0 used chrome 49, not 50

* import only the relevant function from electron-to-chromium

* electron fixtures: Use number instead of string

* If both chrome and electron are defined, choose the lower version to preserve

* Add to test cases to verify correct handling of chrome number
2017-01-19 17:41:02 -05:00
Brian Ng
69870774e7 Fix few typos 2017-01-18 19:12:13 -06:00
Eric Baer
05353d5392 Extract option normalization into independant file 2017-01-18 09:01:06 -08:00
Kai Cataldo
ad5698ed19 devDeps: eslint-config-babel v5.0.0 (#139) 2017-01-15 22:34:53 -05:00
Roman Yakobnyuk
e56c318eed remove unnecessary extension (#131) 2017-01-09 17:47:31 -05:00
Marco Massarotto
1815ffab14 Explicitly resolve lowest browser version (#121)
stop relying on browserlist returning a list sorted by browser version
fix #119
2017-01-06 17:18:43 -05:00
Henry Zhu
dc46adf519 test actual requires from useBuiltIns (#95)
* test actual requires from useBuiltIns

* only run on npm 3 for now
2017-01-05 10:21:56 -05:00
Brian Ng
76e12a3cae Show error if target version is not a number (#107) 2017-01-02 23:55:32 -05:00
Henry Zhu
c6afaa74d4 fix include/exclude for built-ins (#102) 2016-12-16 17:26:15 -05:00
Henry Zhu
45370e3553 add exclude option, rename whitelist to include (#89) 2016-12-13 16:16:54 -05:00
Eric Baer
e379681b58 Update pathnames to aviod uppercase + consistent with other babel projects 2016-12-12 08:59:52 -05:00
Eric Baer
a9d99fd135 Update eslint config to align with other babel projects (#79) 2016-12-12 00:33:18 -05:00
Brian Ng
3b60dc5444 Fix issue with Object.getOwnPropertySymbols (#71) 2016-12-10 11:33:22 -05:00
Henry Zhu
44c40cf7ab fix regenerator import (#68) 2016-12-10 10:11:15 -05:00
Henry Zhu
64ed1ba167 add tests for electron option
Closes gh-55
2016-12-09 14:42:26 -05:00
Henry Zhu
08cd975eb4 always include web polyfills for now 2016-12-09 11:23:46 -05:00
Henry Zhu
d2976bed13 remove console.log, fix tests 2016-12-09 11:23:46 -05:00
Henry Zhu
541ebb5e5f also import regenerator when the transform is required 2016-12-09 11:23:46 -05:00
Henry Zhu
8e2aa82991 also transform 'core-js' 2016-12-09 11:23:46 -05:00
Henry Zhu
5d32ca6bb3 prevent duplicate imports 2016-12-09 11:23:46 -05:00
Henry Zhu
69e9138637 extra tests 2016-12-09 11:23:46 -05:00
Henry Zhu
771e5d2cd6 account for multiple features (#62) 2016-12-09 11:23:46 -05:00
Henry Zhu
bd1ed28242 separate years, add es2016, es2017 2016-12-09 11:23:46 -05:00
Henry Zhu
d06270498b add some tests 2016-12-02 17:58:31 -05:00
Henry Zhu
6c58d93602 setup the babel plugin to transform the babel-polyfill calls + pass the data option to the plugin from the preset 2016-12-02 13:04:21 -05:00
Henry Zhu
d40c684723 hardcode a current node version option (#35) 2016-11-02 16:17:42 -04:00
Henry Zhu
414acf5fda Change default behavior to act the same as babel-preset-latest (#33)
* Do not throw on empty options, and default to latest preset

* fix lint
2016-11-02 11:57:26 -04:00
Henry Zhu
69e93fdb89 add 'whitelist' option (#31)
Ref https://github.com/babel/babel-preset-env/issues/16
2016-11-02 10:55:45 -04:00
Henry Zhu
dcb9e9dd66 Add fixture helper for tests (#28) 2016-11-01 17:46:49 -04:00
Artem Yavorsky
03f6cae25f Adds browsers property to use browserslist's queries (#19)
* Use browserslist to parse browsers from query.

* Update README.

* Use int values.

* Allow `isPluginRequired` use browserslist queries.

* Fix conflicts during different versions merging.

* Add tests for browserslist queries.

* Early return for getTargets.

* Update README: Describe `browsers` option.

* fix doc [skip ci]

* Move to dependencies [skip ci]

* Remove unused const.

* Use doublequotes for strings.
2016-10-12 21:37:50 -04:00