Justin Ridgewell
3fba9710dc
Allow templates to parse v8intrinsics ( #11695 )
...
* Allow templates to parse v8intrinsics
The `v8intrinsic` and `placeholders` parser plugins conflict, so enabling `placeholders` unconditionally was causing errors for V8's internal codemods. This allows them to set `syntacticPlaceholders = false` (so they'll use the legacy identifier format) and enable `v8intrinsic` by itself.
* Fix linter
* Linter
2020-06-10 14:50:09 -04:00
Bogdan Savluk
36f9798f42
improve node type definitions to avoid any's in generated types ( #11687 )
2020-06-09 00:39:46 +02: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
Jesse Thomson
426acf336e
Add React.createContext to @babel/plugin-transform-react-pure-annotat… ( #11685 )
...
Co-authored-by: Jesse Thomson <jesset@qualtrics.com>
2020-06-05 21:36:06 -05:00
Sajad Torkamani
9d289c1457
Fix small typo ( #11682 )
2020-06-05 15:08:56 -04:00
Huáng Jùnliàng
71d3527ef5
Properly parse export default from when exportDefaultFrom is not enabled ( #11676 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-05 09:08:21 -05:00
Huáng Jùnliàng
c9da3bc8b8
refactor: do not rely on AST extra properties in plugins ( #11662 )
2020-06-05 01:12:07 +02:00
Huáng Jùnliàng
fdbbb57434
chore: add npmignore to babel-helper-plugin-utils ( #11674 )
2020-06-05 00:43:10 +02:00
Justin Ridgewell
a3f00896f7
Infer names of anonymous functions in logical assignments ( #11658 )
...
This is a partial revert of #11370 , updating the tests to match the [new consensus](https://github.com/babel/proposals/issues/66#issuecomment-636984546 ).
2020-06-03 23:23:40 +02:00
Huáng Jùnliàng
1440d97d9c
update test fixture
2020-06-01 11:11:30 -04:00
Huáng Jùnliàng
1e115aed33
fix: ensure (a?.b)() has proper this ( #11623 )
...
* fix: ensure (a?.b)() has proper this
* let test be more restrictive
* fix: transformed member call should preserve computed
* chore: revamp test files
* refactor: simplify
* fix: unwrap parthenthesizedExpression
* add loose test cases
* add `(a?.#b)()` support
* add with-transform test cases
* Update packages/babel-plugin-proposal-optional-chaining/src/index.js
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
* address review comments
* update test fixtures
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2020-06-01 10:25:22 -04:00
Brian Ng
3a3457d808
Fix some test fixtures ( #11655 )
2020-05-31 09:57:00 -05:00
Ajay Poshak
b1923fd140
Add a check for privateMap's existence ( #11571 )
...
Co-authored-by: Ajay Poshak <ajay.poshak@bookmyshow.com>
2020-05-30 22:38:15 +02:00
Nicolò Ribaudo
b0350e5b1e
v7.10.2
2020-05-30 19:16:08 +00:00
Huáng Jùnliàng
b5c4a46a69
refactor: split locationParser into ParserErrors and error message ( #11653 )
2020-05-30 15:05:42 -04:00
Stanley Stuart
15d6da076a
fix: don't mutate InputTarget's passed to @babel/helper-compilation-targets ( #11648 )
2020-05-30 09:56:34 -05:00
Nicolò Ribaudo
e6d873e061
Class features loose should have precedence over preset-env ( #11634 )
...
* Class features loose should have precedence over preset-env
* Comment
* Update packages/babel-helper-create-class-features-plugin/src/features.js
[skip ci]
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
* Future proof
* Add warning when loose mode changes automatically
* Better message
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-05-29 23:56:32 +02:00
Huáng Jùnliàng
5b24d79875
fix: add bigIntSuffix to minified output ( #11645 )
2020-05-29 22:09:20 +02:00
Huáng Jùnliàng
6b7a6dccd2
fix: add new plugin names to missing plugin helpers ( #11643 )
2020-05-29 14:04:47 -04:00
Brian Ng
d7d36a6c25
Add support for printing ImportAttribute ( #11641 )
2020-05-29 08:49:38 -05:00
Matt Hamlin
8e41f26e12
Fix moduleAttributesVersion errors with stage-0 preset in babel standalone ( #11631 )
...
* Fix moduleAttributesVersion errors with stage-0 preset in babel standalone
* Add regression test for stage-0 not erroring on missing moduleattributes version
* Remove moduleAttributesVersion from preset config
2020-05-28 14:35:06 -04:00
Nicolò Ribaudo
88f57a7ea6
v7.10.1
2020-05-27 21:56:37 +00:00
Nicolò Ribaudo
32bd530f25
[hotfix] Use same targets for fields as for private methods ( #11633 )
2020-05-27 22:43:23 +02:00
Dan Fabulich
05804b166c
Fix standalone tag when data-type is not set. ( #11624 )
2020-05-27 11:19:12 -05:00
Saulo Santiago
242d9e0b20
Use repository.directory field in package.json files ( #11625 )
...
Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-05-27 16:32:25 +02:00
Nicolò Ribaudo
5da2440adf
v7.10.0
2020-05-26 21:20:43 +00:00
Nicolò Ribaudo
a06e8e5dd0
Uncomment code for Babel 7.10.0
2020-05-26 21:20:11 +00:00
任文龙
429840dc2b
scope.rename() missing identifier in VariableDeclarator ( #11595 )
2020-05-26 23:05:12 +02:00
Justin Ridgewell
bda759ac3d
Handle private access chained on an optional chain ( #11248 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-05-26 22:18:17 +02:00
Huáng Jùnliàng
852520eff5
feat: add privatePropertyInObject to babel-standalone ( #11593 )
2020-05-26 22:18:17 +02:00
Justin Ridgewell
7459038db8
Add private-property-in-object support ( #11372 )
...
https://github.com/tc39/proposal-private-fields-in-in
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-Authored-By: Huáng Jùnliàng <jlhwung@gmail.com>
2020-05-26 22:18:17 +02:00
Huáng Jùnliàng
b457f52ab5
update test fixture
2020-05-25 15:00:40 -04:00
Justin Ridgewell
97f0b7c4a0
Transform ES2015 Unicode Escapes to ES5 ( #11377 )
2020-05-25 01:26:55 +02:00
Vivek Nayyar
66b86e088c
added basic support for module attributes and tests updated ( #10962 )
...
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-05-25 01:26:28 +02:00
Andrew Leedham
c5ba345ac2
[preset-env] Add browserslistEnv option ( #11434 )
2020-05-24 23:44:39 +02:00
Nicolò Ribaudo
698fe8ef50
Log after subsequent compilations in --watch mode ( #11220 )
2020-05-24 23:03:22 +02:00
Nicolò Ribaudo
93978267ec
Add "allowArrayLike" opt to destructuring and spread transforms ( #11265 )
2020-05-24 23:00:06 +02:00
Nicolò Ribaudo
28231e1be6
Add "allowArrayLike" support to the for-of transform ( #11266 )
2020-05-24 22:58:47 +02:00
Kiko Estrada
5dd7f438c9
Enable import.meta by default in @babel/parser ( #11406 )
2020-05-24 22:57:34 +02:00
Bruno Macabeus
75a6530abe
Fix optional-chaining with TS non-null operator ( #10961 )
2020-05-24 22:56:31 +02:00
Devon Govett
6ba1f0dd22
Implement @babel/plugin-transform-react-pure-annotations ( #11428 )
...
The new plugin is also enabled in `@babel/preset-react`
2020-05-24 22:55:29 +02:00
Huáng Jùnliàng
93a50056ca
Add class proposals to shipped proposals ( #11451 )
2020-05-24 22:32:53 +02:00
dfabulich
8fce3717a3
Support data-type="module" to generate <script type="module"> ( #11466 )
2020-05-24 22:31:30 +02:00
lazytype
62e686af91
Fix comments for smartPipeline topic-forbidding contexts ( #11597 )
...
[skip ci]
2020-05-23 22:59:46 +02:00
Huáng Jùnliàng
2f31ecf85d
fix: allow bigInt in method name and TSLiteralType ( #11547 )
...
* refactor: add isLiteralPropertyName to parser utils
* address review comments [skip-ci]
* refactor: keyword is valid identifierName
* fix: allow bigint in TSLiteralType
* update typescript test whitelist
2020-05-14 18:40:52 -04:00
Jason Quense
de8264c8a7
fix: don't elide jsx pragma import namespaces ( #11523 )
...
* fix: don't elide jsx pragma import namespaces
* use the correct pragma oops
2020-05-14 16:01:54 +02:00
Nikita Kirsanov
9a52019019
Use computed memberExpression for literal keys with object rest ( #11550 )
2020-05-12 22:56:03 +02:00
Nicolò Ribaudo
07347544fd
Downgrade rollup to 1.27.9 ( #11538 )
...
* Downgrade rollup to 1.27.9
* Add test
2020-05-11 23:53:04 -04:00
Nicolò Ribaudo
31b361b736
Use ?. where it represents the intended semantics ( #11512 )
2020-05-09 23:31:50 +02:00
Justin Ridgewell
c3a5bf1ff5
Update preset-env tests, and add yarn.lock deps ( #11537 )
2020-05-08 23:53:09 +02:00