Mateusz Burzyński
0a517b51cd
Added custom NodePath.prototype.toString method as debug utility ( #7218 )
2018-01-15 13:07:05 +01:00
Mateusz Burzyński
79c84f2f9b
Fixed _containerInsertAfter setting path key as stringified index ( #7213 )
2018-01-15 08:08:42 +01:00
Joe Haddad
ca86648726
bugfix: set color level when color is forced ( #7216 )
...
Color level 1 matches our usages, level 0 is no color
2018-01-14 12:43:20 -06:00
Raja Sekar
2d05487293
Add support for @@iterator ( #7058 )
2018-01-12 09:19:11 -06:00
Peri Nikhil
c3352ad2e0
Fix: unicode characters not allowed in regexes ( #7179 )
...
Issue #6691
2018-01-10 15:33:21 +01:00
Antoine Prieëls
26e4911eb2
Use the async version of transform in babel-cli ( #6826 )
...
* use the async version of transform in babel-cli
* Modify compile to use async version of transformFile
* Babel-CLI: transform files sequentially
* Remove useless res in callback
2018-01-09 19:17:07 -08:00
Henry Zhu
aa888e666a
fix wording [skip ci]
2018-01-09 15:09:47 -05:00
Nicolò Ribaudo
8659e1a88c
Remove old expected.{js,json} files ( #7187 )
2018-01-09 13:10:30 -06:00
Maaz Syed Adeeb
9e384f3915
Cleaning up some TS parsing tests ( #7184 )
2018-01-09 11:37:05 -06:00
Raja Sekar
f694b5d034
Doc changes for https://github.com/babel/babel/issues/7063 ( #7185 )
2018-01-09 11:10:00 -06:00
Artem Yavorsky
d765573c0b
Remove excess check for hidden files. ( #7183 )
2018-01-09 10:21:49 -06:00
Henry Zhu
64161fa0b5
Fix syntax plugins in babylon readme [skip ci] ( #7182 )
2018-01-09 10:04:54 -06:00
Henry Zhu
52f22e9e1e
Merge pull request #7181 from nicolo-ribaudo/pr-7169
...
Rename actual/expected to input/output in fixtures.
2018-01-09 10:43:33 -05:00
Brian Ng
3e5fce07e4
Regen lib/types ( #7180 )
2018-01-09 09:25:45 -06:00
Raja Sekar
0f42accb87
Renamed files
2018-01-09 15:36:42 +01:00
Raja Sekar
07e69c009b
Code changes
2018-01-09 10:36:11 +01:00
Claudio Procida
ce420ba51c
Fixes React isCompatTag validator accepting leading dash character ( #7164 )
2018-01-09 09:42:05 +01:00
Nicolò Ribaudo
9fe30b98a1
Remove "quotes" internal flag from babel-generator ( #7174 )
2018-01-08 23:37:33 -08:00
Mauro Bringolf
0a9f136d5f
Minor improvements to block-scoping/tdz ( #6782 )
...
* Add test case for simple reference in tdz
* Add more examples from old issues as test cases
* Fix two testcases by excluding function declarations from being tdz checked
* Document the option for block-scoping
* Add test cases with destructuring assignments
* Remove failing test cases
* [skip ci] Include type and default value for options
2018-01-08 21:49:05 -08:00
Mouad Debbar
e9ed687666
Bail out on JSX fragments instead of throwing ( #7166 )
...
* Bail out on JSX fragments instead of throwing
The `transform-react-inline-elements` plugin doesn't handle JSX fragments. It throws an exception because `node.openingElement` is undefined.
* Add a comment explaining `node.openingElement`
2018-01-08 21:38:52 -08:00
mtpc
63157159ab
Preserve namespaced attributes when throwIfNamespace is false ( #7173 )
...
Previously that part would throw since it expects a JSXIdentifier but it (logically) gets a JSXNamespacedName when using a namespaced attribute.
2018-01-08 21:24:02 -08:00
Maaz Syed Adeeb
74682f33bc
Support 'assert and assign' TypeScript syntax ( #7098 )
2018-01-08 15:29:27 -06:00
Henry Zhu
b1bf7798ab
update to v7-beta.37 ( #7104 )
2018-01-08 12:05:49 -05:00
Henry Zhu
7c99f4653f
v7.0.0-beta.37
v7.0.0-beta.37
2018-01-08 11:02:14 -05:00
Logan Smyth
a19349a22a
Merge pull request #7091 from loganfsmyth/config-overrides
...
Allow configs to have an 'overrides' array
2018-01-07 13:51:07 -08:00
Nicolò Ribaudo
b93184e430
[decorators] Only transform declarations to expressions when needed ( #7124 )
2018-01-06 16:38:28 +01:00
Logan Smyth
bb17b72f4f
Process .babelignore before .babelrc ( #7161 )
2018-01-05 20:39:36 -08:00
Logan Smyth
a76709cabc
Throw errors for users of 'ignore'/'only' options are passed in, but the filename is unknown.
2018-01-05 12:47:47 -08:00
Logan Smyth
c292140254
Implement an 'overrides' config array to process in order for overrides.
2018-01-05 12:47:47 -08:00
Logan Smyth
f4a24a38ca
Allow config objects to use test/include/exclude to limit application to specific files.
2018-01-05 12:47:47 -08:00
Logan Smyth
193e841d89
Allow .env and .overrides in presets.
2018-01-05 12:47:47 -08:00
Steve Fan
1ded1d7ff6
[@babel/standalone] Remove additional function context ( #7094 )
2018-01-04 21:15:51 -06:00
Daniel Bayerlein
aec6e5c370
Update license year ( #7141 )
2018-01-04 20:35:43 -06:00
Raja Sekar
152e95fb52
Preserve jsx comment ( #7155 )
2018-01-04 14:11:08 -06:00
Sophie Alpert
8250ff963e
Suggest JSX fragment syntax in adjacent tag error ( #7152 )
2018-01-04 09:21:39 +01:00
Elad Chen
82c6ca2f96
Update README.md ( #7140 )
2018-01-03 09:59:46 -06:00
Mateusz Burzyński
820edd1e23
Fix computed properties being inserted after the class, thus making them unavailable for instance methods & properties ( #7147 )
2018-01-03 15:39:07 +01:00
Raja Sekar
e872f0d975
Regex parsing issue fix after function declaration. ( #7121 )
2018-01-03 14:21:18 +01:00
Tim Seckinger
c3f6f7fe28
fix buildCodeFrameError empty code frames
2018-01-03 13:53:15 +11:00
Andy
49775e2f12
Remove redundant property declarations ( #7144 )
2018-01-02 22:20:54 +01:00
Raja Sekar
f3410e761c
Flow comment parsing ( #7007 )
2017-12-30 23:53:08 +01:00
Brian Ng
ebbd5c7321
Bump regenerator-transform and regen fixture ( #7137 )
2017-12-30 16:44:22 -06:00
Boris Cherny
4208099f5b
Add validators for Flow AST node fields ( #7107 )
2017-12-30 15:26:01 -06:00
h1b9b
068c65a1dd
Remove hasBeenLogged flag from preset-env ( #7130 )
2017-12-29 08:19:11 -06:00
Fabian Streitel
3956b3ee0e
Fix turning division operator into line comment in compact mode ( #7131 )
2017-12-29 08:11:35 -06:00
Nicolò Ribaudo
2297e2d764
Fix a regression introduced in #7040 ( #7116 )
2017-12-28 22:15:53 +01:00
Gustavo Rios de Sousa e Silva
d761d765bd
Replace target: uglify tests with forceAllTransforms in preset-env
2017-12-28 13:17:28 -06:00
Alan Pierce
ad2019aa30
Add syntax-typescript and transform-typescript to babel-standalone ( #7119 )
...
The preset was already there, but this is nice for configs working directly with
plugins.
2017-12-28 10:03:28 -06:00
Diogo Franco
f9e0805337
Regenerate fixtures ( #7120 )
...
* Update line endings in test fixtures to match current output
* Fix incorrectly set up static-property-tdz fixtures
It seems the fixture runner does not look into subfolders.
* Remove expected file that should not exist
* Reenable disable optimisation test
* Reenable disabled nbsp tests
* Reenable comments between props test
The comments adjacent to children test is still broken so it stays off.
2017-12-28 19:28:05 +09:00
Diogo Franco
0f60d42fdf
Avoid adding #__PURE__ annotation to .bind(this)() expressions ( #7043 )
...
* Avoid adding #__PURE__ annotation to .bind(this)() expressions
Fixes the #__PURE__ annotation getting added to (async () => {})() IIFEs when the arrow function transform is running with spec: true.
* Return false instead of undefined
* Fix indentation in json files
* Add one more case to the async-iife fixtures
2017-12-28 17:02:54 +09:00