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
Henry Zhu
7d798952d2
v7.0.0-beta.36
v7.0.0-beta.36
2017-12-25 14:04:08 -05:00
Joe Lim
ed2b88830e
Remove extraneous console output when running preset-env tests ( #6576 )
2017-12-25 13:47:19 -05:00
Bogdan Chadkin
d25918aa5d
Fix generation flow unnamed computed property ( #7095 )
2017-12-22 12:55:40 -06:00
Artem Yavorsky
035286a810
[preset-env] Move all defaults to the separate module ( #7084 )
...
* preset-env: Move all defaults to the separate module.
* preset-env: Add test cases for defaults.
2017-12-22 10:42:06 -05:00
Logan Smyth
c9a00fbae8
Merge pull request #7090 from loganfsmyth/chain-processing-rewrite
...
Refactor config processing more
2017-12-21 19:57:07 -08:00
Logan Smyth
758fd0369c
Rewrite config chain loading to build chain recursively to keep caching readable.
2017-12-21 19:06:36 -08:00
Logan Smyth
7b861796cf
Centralize validation logic in common folder.
2017-12-21 14:45:19 -08:00
Logan Smyth
f9825394a7
Remove unnecessary folder nesting.
2017-12-21 14:45:19 -08:00
Logan Smyth
43e7d1d2cc
Use an object instead of a 2-tuple.
2017-12-21 12:31:48 -08:00
Logan Smyth
de63443762
Split babelrc and babelignore searching into two functions.
2017-12-21 12:28:51 -08:00
Andy
6a73f39199
Support parsing export default abstract class {} ( #7075 )
2017-12-21 16:13:31 +01:00
Azharuddin
2190e10e9a
Better error messages when Babel fails to parse import = and export =… ( #7079 )
...
* Better error messages when Babel fails to parse import = and export = syntax from typescript when using babel-plugin-transform-typescript
* Fixing Test cases
* Ran make fix and broken looong sentence into smaller
* Slight changes to Messages after review with Nicolo & existentialism
* Removed trailing space
2017-12-21 02:00:36 +02:00
Nicolò Ribaudo
ae3f5b9149
Return the obj in setPrototypeOf fallback ( #7080 )
2017-12-20 22:48:10 +01:00
Nicolò Ribaudo
0c885b3200
Add support for extending builtins ( #7020 )
2017-12-20 14:46:00 -05:00
Artem Yavorsky
148fe7d3ff
Add proposal-async-generator-functions to babel-standalone ( #7073 )
2017-12-20 20:37:16 +01:00
Henry Zhu
cabdf3769d
Merge pull request #7065 from babel/dotall-preset-env
...
Add dot-all regex support to preset-env and standalone
2017-12-19 20:45:18 -05:00
Logan Smyth
1178799f07
Remove the LoadedFile class.
2017-12-19 15:36:54 -08:00