Huáng Jùnliàng
62df8d2b79
fix: push exported variable when hoisting export declared names ( #12110 )
2020-09-28 11:38:39 -04:00
Huáng Jùnliàng
5dd64ecc4a
Disallow duplicated AST nodes ( #11807 )
2020-07-14 08:32:16 -05:00
Bogdan Savluk
4108524856
Update prettier to v2 ( #11579 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-07 22:21:33 +02:00
Nicolò Ribaudo
31b361b736
Use ?. where it represents the intended semantics ( #11512 )
2020-05-09 23:31:50 +02:00
Nicolò Ribaudo
a875560c31
Allow defining the moduleIds-related option in the transform p… ( #11194 )
...
* Update "moduleIds" tests
* Allow defining the moduleIds related options in the transform plugins
- moduleIds
- moduleId
- getModuleId
- moduleRoot
* Sort deps
2020-03-16 23:58:04 +01:00
Huáng Jùnliàng
44f9d85904
add allowTopLevelThis option to transform-modules-systemjs ( #10780 )
...
* feat: expose rewriteThis method
* feat: add allowTopLevelThis option to transform-modules-systemjs
2020-01-10 03:16:26 +01:00
Huáng Jùnliàng
5e24016623
fix: remove ExportNamedDeclaration when the specifier is empty ( #10638 )
2019-11-04 21:51:24 +01:00
Nicolò Ribaudo
38f8bbac1a
Create @babel/plugin-proposal-dynamic-import ( #9552 )
...
* Create @babel/plugin-proposal-dynamic-import
* Use airbnb/babel-plugin-dynamic-import-node
Do not duplicate code, which will unavoidably lead
to bugs being fixed in one plugin and not in the other.
* Update error message
* Add error callback to amd interop
* Update babel-plugin-dynamic-import-node
2019-06-30 13:21:46 +02:00
Guy Bedford
a891b73401
System modules - Hoist classes like other variables ( #9639 )
2019-03-10 23:33:19 +01:00
Nicolò Ribaudo
0345c1bc1d
Use for..of Object.keys instead of for..in ( #9518 )
...
In https://github.com/babel/babel/issues/9511 (and #9495 is another symptom), @PavelKastornyy reported a node crash becaue the JavaScript heap run out of memory. The problem was that their code was adding enumerable properties to `Object.prototype`: it is something that shouldn't be done, but Babel shouldn't make node crash if someone adds them.
I reduced down the problem to `for...in` loops in `@babel/traverse` that grew the memory consumption exponentially because of that unexpected properties.
2019-02-26 20:09:02 +01:00
Daniel Tschinder
b78fdc0cb1
chore: Enable eqeqeq rule in eslint ( #9541 )
2019-02-18 21:16:42 -08:00
Nicolò Ribaudo
8c7d4b55c9
Add plugins name ( #8769 )
...
* Add plugins name
* Add missing names found by the plugin
* Add eslint plugin
2018-11-18 23:02:58 +01:00
Guy Bedford
3fa4f53d0a
System module format - fixes function hoisting failure case ( #8820 )
...
* failing test case
* fix function hoist bug
2018-10-07 23:30:02 -04:00
Guy Bedford
036c429ce1
system hoisting and export refinements ( #8104 )
2018-06-12 13:45:53 -04:00
Guy Bedford
7da7e760a6
support import.meta in system transform
2018-06-07 13:24:19 -05:00
Justin Ridgewell
34d73ebef0
Correct update expression Number coercion ( #7766 )
...
* Correct update expression Number coercion
You have to `ToNumber` whatever the `UpdateExpression` argument is.
* Fix systemjs update expression
2018-04-22 13:50:11 -04:00
Logan Smyth
a4795408b4
Allow plugins to assert that a specific babel version has loaded the plugin. ( #7450 )
2018-03-04 14:36:54 -08:00
Nicolò Ribaudo
252ea5a966
Fix reused nodes - part 2 ( #7149 )
2018-01-29 22:59:06 +01:00
Logan Smyth
b19b66d94b
Use peerDep rather than plugin param for common APIs.
2017-11-06 11:32:47 -08:00
Henry Zhu
9ac326b075
remove es20xx prefixes from plugins and rename folders ( #6575 )
2017-10-28 20:43:15 -04:00