Henry Zhu
ae210a46d1
Merge pull request #7562 from babel/pr/7534
...
Use helper-module-import inside preset-env
2018-03-15 16:19:03 -04:00
Logan Smyth
017d0e7078
Ensure that the backward-compat logic for plugin-utils copies over the version API properly. ( #7580 )
2018-03-15 11:45:53 -07:00
Josh Justice
b8d1d221f8
Rename actual/expected test files to input/output ( #7578 )
...
These files appear to have been missed in the update of test file naming from actual/expected.js to input/output.js. As a result, they were silently not being run. I've confirmed that they were not running, updated the names, then confirmed that they are running now.
2018-03-15 19:02:41 +01:00
Brian Ng
fed530f6bf
Use helper-module-import inside entry plugin too
2018-03-15 09:21:20 -05:00
Gaël Gillard
29d44193cd
Use helper-module-imports instead of custom import ( #7457 )
2018-03-15 09:21:19 -05:00
Melvin Groenhoff
82994ce087
Fix "Module build failed: Error: Cannot find module '@babel/types'" ( #7575 )
...
* @babel/template and @babel/types are dependencies instead of devDependencies (fixes #7573 ).
* Use @babel/types and @babel/template via @babel/core
2018-03-15 14:45:26 +01:00
Mateusz Burzyński
586d3b5929
Wrap wrapNativeSuper helpers in redefining functions for better tree-shakeability ( #7188 )
2018-03-14 23:48:33 +01:00
Mateusz Burzyński
d682e32529
Favour extends helper over objectWithoutProperties when whole object gets copied anyway ( #7390 )
2018-03-14 22:59:02 +01:00
Simon Kjellberg
07ab02f6b2
Fix incorrect value of _cache in _wrapNativeSuper ( #7570 )
...
The boolean expressions returns false in environments where Map is missing.
This change explicitly sets _cache to undefined in such cases, to ensure the cache methods will be ignored.
2018-03-14 16:37:51 -04:00
Nicolò Ribaudo
91a114f74a
[transform-classes] Fix typo in _wrapNativeSuper helper
2018-03-14 19:23:10 +01:00
Nicolò Ribaudo
6d9887fc0f
[typeof-symbol] Guard against undefined built-in globals
2018-03-14 19:23:10 +01:00
Henry Zhu
d2a3a8151e
update to beta.41 ( #7568 )
2018-03-14 12:40:59 -05:00
Henry Zhu
270ea17fed
v7.0.0-beta.41
v7.0.0-beta.41
2018-03-14 12:25:26 -04:00
Daniel Tschinder
da2aea31f5
Fix —require
2018-03-14 13:26:07 +01:00
Daniel Tschinder
1d69cd41ca
Fix import of type ConfigItem ( #7561 )
...
It is also exported as type
2018-03-13 13:31:32 -05:00
Daniel Tschinder
a7ec312cfe
Run node 9 on circleci and remove from travis ( #7560 )
2018-03-13 09:53:37 -04:00
Sven SAULEAU
6ff91cfdae
docs: [skip ci] fix proposal link text
2018-03-13 13:21:34 +01:00
Yael Hermon
dfb3795a97
update preset-env after build-data ( #7543 )
2018-03-12 20:49:52 -05:00
Logan Smyth
353d3199c2
Re-add TEST_ONLY and use Jest's -t for TEST_GREP. ( #7556 )
2018-03-12 15:12:39 -07:00
Haroen Viaene
bdd70c37e0
docs(babel-standalone): remove bower mention ( #6588 )
...
* docs(babel-standalone): remove bower mention
Since the package won't be downloadable as `@babel/standalone` it's best to just remove it, since it's pretty much deprecated as is. I left the other mention of babel-standalone-bower since I guess that's just the name and still useful in other cases
cc @daniel15
reported in https://github.com/babel/babel/pull/6495#pullrequestreview-70980926
* Update README.md
2018-03-12 19:10:24 +01:00
Daniel Tschinder
9d2d499760
Replace lodash/map with array equivalent ( #7550 )
...
* Replace lodash/map with array equivalent
* Fix review comments
2018-03-12 11:03:03 +01:00
Yael Hermon
29807837bb
preset-env - add Symbol.asyncIterator to shippedProposals builtIns ( #7548 )
...
* preset-env - add Symbol.asyncIterator to shippedProposals builtins
* fix typo
2018-03-11 16:29:22 -05:00
ngohoangthang
c14a6a7735
Fix "ran" to "run" for monorepo.md ( #7547 ) [skip ci]
2018-03-11 13:12:34 +01:00
Daniel Tschinder
3a7881379a
jest: ToEqual -> toBe
2018-03-10 11:48:09 +01:00
Deven Bansod
f3f0197890
Migrate babel-core tests to use jest-expect ( #7513 )
...
* Used codemods at: https://gist.github.com/devenbansod/03c5cff857661e076cbec72fcb2e7eb3 along with some manual intervention and review
2018-03-10 11:40:28 +01:00
Logan Smyth
8e030e28b3
Merge pull request #7538 from loganfsmyth/unambiguous-import-meta
...
Make 'sourceType:unambiguous' use 'module' when import.meta is used.
2018-03-09 15:00:13 -08:00
Logan Smyth
3c8e9acd4a
Make the unambiguous grammar select module when import.meta is used.
2018-03-09 14:44:06 -08:00
Logan Smyth
958551fd89
Refactor unambiguous to track state during parsing.
2018-03-09 14:35:55 -08:00
Logan Smyth
b5e6536f26
Remove the sourceMapTarget option from core and implement it in babel-cli. ( #7500 )
2018-03-09 14:14:25 -08:00
Will Monk
0389035e15
Add exact Param To ObjectTypeAnnotations ( #7535 )
2018-03-09 19:22:01 +01:00
Brian Ng
4f4dd3d4a6
Assign another temp var when parsing assignment patterns in destructuring ( #7333 )
2018-03-09 09:39:25 +01:00
Logan Smyth
4da3f3bc64
Update helpers from #7491 . ( #7532 )
2018-03-08 17:06:43 -08:00
Logan Smyth
7901e7d1b9
Fix flowtype errors introduced in #7503 . ( #7531 )
2018-03-08 16:02:28 -08:00
Logan Smyth
4b6c7ac0f6
Run build-no-bundle in the watcher to get right files. ( #7530 )
2018-03-08 13:48:32 -08:00
Daniel Tschinder
24a07fc790
Use jest workers on travis-ci and circleCI ( #7510 )
2018-03-08 22:15:54 +01:00
Logan Smyth
1c9b0ff49e
Merge pull request #7491 from loganfsmyth/require-array-rest-spread-iterable
...
Explicitly throw if the array rest/spread items are not iterable.
2018-03-08 12:39:53 -08:00
Logan Smyth
828e9a8538
Skip minification of large bundles during CI builds. ( #7528 )
2018-03-08 12:36:47 -08:00
Brian Ng
f97d4313c9
Update test262 test script and a few keyword escape fixes ( #7503 )
...
* Update test262 and whitelist
* Use test262-stream
* Check escapes in contextual keywords
* Check escapes when parsing new.target
* Check escapes for getters/setters
* Check escapes for static class methods
* Check escapes on async arrow and functions
2018-03-08 09:10:00 -06:00
Brian Ng
2a0071028d
Add Number.parseFloat/parseInt mappins for preset-env 'usage' ( #7421 )
2018-03-08 09:08:43 -06:00
Sven SAULEAU
2c0d492674
Merge pull request #7515 from abouthiroppy/feature/modify-readme-of-babel-plugin-transform-block-scoped-functions
...
Update README.md and add test
2018-03-08 12:06:58 +01:00
Logan Smyth
e42cbb40a4
Merge pull request #7472 from loganfsmyth/expose-partial-config
...
Expose the partial Babel config for callers to load and mutate.
2018-03-07 18:23:27 -08:00
Logan Smyth
74ab2798e2
Tweaks around PR comments.
2018-03-07 18:02:38 -08:00
Logan Smyth
fef5c7e523
Expose the partial Babel config for people to load and mutate.
2018-03-07 16:33:25 -08:00
Logan Smyth
53825f8152
Show a more useful diff when comparing fixture files. ( #7520 )
2018-03-07 12:27:10 -08:00
Rory O’Kane
40819f112c
Fix link to proposal in do expressions plugin README ( #7519 )
...
The old link, http://wiki.ecmascript.org/doku.php?id=strawman:do_expressions , fails to load for me.
[skip ci]
2018-03-07 15:01:39 -05:00
Yuta Hiroto
2d36549541
Update README.md and add test
2018-03-07 23:49:56 +09:00
Brian Ng
7e423de911
Restore passing SIGINT signals to spawned child processes ( #7511 )
2018-03-07 14:10:11 +01:00
Abu Shamsutdinov
8317f8ab14
added support Node's --require and -r flags in babel-node
2018-03-07 12:38:57 +03:00
Daniel Tschinder
65dcc4eabe
Fix makefile indentation
2018-03-06 11:57:26 +01:00
Daniel Tschinder
c8992e4155
Enforce Prettier defaults + also format .babelrc and .json ( #7499 )
...
* .prettierrc: full configuration for Prettier
This way, contributors using different-from-default settings will still
use the correct prettier settings
* Makefile: also lint .babelrc.js
* Makefile: also prettify .json files
* Exclude package.json files and correct build dir
* Add more default options to prettierrc and load it in cli
This avoids prettier looking up the config for each file
* Format json
* Update prettier and eslint and reformat codebase
* Remove obsolete file
* Add comment
2018-03-06 11:40:36 +01:00