Nicolò Ribaudo
8e7a164490
Make sure that Rollup's dynamicRequireTargets are included ( #12839 )
...
* Make sure that Rollup's `dynamicRequireTargets` are included
* Update packages/babel-standalone/src/dynamic-require-entrypoint.cjs
Co-authored-by: Brian Ng <bng412@gmail.com>
2021-02-21 22:32:50 +01:00
Sosuke Suzuki
9c567baa9b
Parse JS Module Blocks proposal ( #12469 )
2021-02-21 20:08:20 +01:00
Bogdan Savluk
1290d215f1
Convert @babel/types to TS ( #12431 )
...
* babel-types flowts convert
* babel-types code generation updates
* babel-types add more generated types to src (copy logic from scripts/typescript)
* babel-types update generateBuilders to specify exact argument types
* babel-types fix deprecated types generation
* babel-types fixes
* babel-types fix potential bug
* babel-types update generateBuilders, to include proper return types
* babel-types backport types from generated index.d.ts to be included in sources
* babel-types fixes
* babel-types avoid export of builders starting with upper case in ts sources
* babel-types
* babel-types todo updates, small fixes
* babel-types generate helpers
* babel-types remove typescript definitions generation
* babel-types generate files
* babel-types copy d.ts file for deprecated ast node creators into lib folder
* babel-types use t as alias for ast node types namespace
* babel-types update generateBuilders script to use "t" as alias instead of "types"
* babel-types update deprecated builders generation to have more compact file
* babel-types publish the .d.ts file for `@babel/types`
* Publish the .d.ts file for `@babel/types`
* Fix flowcheck
* Prettier
* No need to lint generated .d.ts files (now they are generated by tsc)
* Run prepublish-prepare-dts from prepublish-build
* Fix Babel 8 tests
* Update codecov config
* babel-types more improvements
- better type for gatherSequenceExpressions
- mark createUnionTypeAnnotation as deprecated
- fix createTSUnionType
- babel-types better type for builder
- other improvements from PR comments
* babel-types lint fix
* babel-types fix createTSUnionType
* Don't commit .d.ts file in lib, and rename "deprecated"->"uppercase" for builders
* Add back types for TS 3.7
* Update packages/babel-types/package.json
* Cleanup converters types
Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-12-10 21:22:10 +01:00
Huáng Jùnliàng
e5b2680756
Move some build steps to gulp ( #12127 )
...
* chore: move generate-standalone to gulp tasks
* move build-flow-typings to gulp tasks
* chore: move build-typescript-typings to gulp tasks
* move generate-type-helpers to gulp tasks
* chore: include build-typings and generate-type-helpers in gulp build
* update generate-standalone comments
* address review comments
* chore: revert build-typings refactor
* fix: run build-typings in build-no-bundle
2020-12-10 12:25:16 -05:00
hirochachacha
136bf231ea
packages/babel-standalone: make data-type="module" option avilable without data-presets option ( #12226 )
...
* use "env" preset instead of "es2015" preset
* configure "env" preset if data-type="module" is given
2020-10-20 18:01:53 +02:00
Sven Sauleau
af8e0facc1
Parse import-assertions ( #12139 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-10-14 21:18:16 +02:00
Huáng Jùnliàng
f697e7995d
Transform class static block ( #12143 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 21:16:24 +02:00
Huáng Jùnliàng
62965e3880
Archive plugins ( #12117 )
2020-10-09 16:29:37 +02:00
Huáng Jùnliàng
059e9124ff
Add decimal parsing support ( #11640 )
...
* docs: add DecimalLiteral to AST spec
* add decimal support
* fix: throw invalid decimal on start
* add DecimalLiteral type definitions
* update parser typings
* add generator support
* add syntax-decimal plugin
* Add syntax-decimal to babel-standalone
* add syntax-decimal to missing plugin helpers
* fix incorrect test macro
2020-07-29 16:43:15 -04:00
Wojciech Maj
1dd94e813e
Replace non-inclusive "whitelist" and "blacklist" terms with "allowlist" etc. ( #11758 )
2020-06-29 15:39:38 -04: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
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
Dan Fabulich
05804b166c
Fix standalone tag when data-type is not set. ( #11624 )
2020-05-27 11:19:12 -05:00
Huáng Jùnliàng
852520eff5
feat: add privatePropertyInObject to babel-standalone ( #11593 )
2020-05-26 22:18:17 +02: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
dfabulich
8fce3717a3
Support data-type="module" to generate <script type="module"> ( #11466 )
2020-05-24 22:31:30 +02:00
Nicolò Ribaudo
31b361b736
Use ?. where it represents the intended semantics ( #11512 )
2020-05-09 23:31:50 +02:00
Huáng Jùnliàng
eb6d5c6a80
chore: update stage preset in babel-standalone ( #11395 )
2020-04-09 20:55:29 +02:00
Luna Ruan
748897be07
Add experimental version of the `babel-plugin-transform-react-… ( #11154 )
...
* add next option for babel-plugin-transform-react-jsx
* address review comments
* chore: update test fixtures
* Update fixture
* Add "columnNumber" to the new React transform
* Update windows fixtures
* Delete unused output.js
* Update windows tests
* Fix windows again
* fix comments
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Moti Zilberman <motiz88@gmail.com>
2020-03-17 09:16:53 +01:00
Huáng Jùnliàng
1599e9025d
fix: specify sourceFileName when generating inline sourcemaps ( #10797 )
2020-02-07 22:42:18 +01:00
Huáng Jùnliàng
405c1aaad8
Merge env-standalone to babel-standalone ( #10821 )
...
* feat: add babel-preset-env to babel-standalone
* chore: copy preset-env-standalone test
* polish: tune warning message when babel-preset-env-standalone is loaded
2020-01-11 10:31:29 +01:00
Eugene Myunster
d248e2d188
moving proposalNullishCoalescingOperator and proposalOptionalChaining to stage 3 ( #10590 )
2019-10-29 18:44:01 +01:00
Daniel Tschinder
4f0840ab88
Update dev dependencies and fix linting errors ( #10228 )
...
* chore: Uppate dev dependencies
* chore: Fix lint errors
* chore: Format options.json files
* chore: Fix stupid flow errors
* Update test262 whitelist
Seems test262-stream was updated and now these tests work.
2019-07-27 15:09:30 +02:00
Min ho Kim
0bf0ae3410
Fix typos ( #10153 )
2019-07-03 15:51:48 +02:00
Denis Pushkarev
ae9b25ac69
Add to preset-env ES3 transforms for ES3 targets ( #9781 )
...
* add to preset-env ES3 transforms for ES3 targets
* add `transform-reserved-words`
* fix `transform-reserved-words` plugin in `@babel/standalone`
2019-03-30 23:25:12 +01:00
Daniel Tschinder
095e5c0e09
Generate plugins file
2019-03-06 19:34:08 -08:00
Daniel Tschinder
fb81e8f8b4
Make babel-standalone an ESModule and enable flow ( #9025 )
...
* Make babel-standalone an ESModule and enable flow
* autogenerate plugin list
* Make config an array
2019-03-06 14:30:43 -08:00
Nicolò Ribaudo
6c2771c116
Add @babel/plugin-proposal-private-methods to @babel/standalone ( #9115 )
2018-12-03 19:40:00 +01:00
Nicolò Ribaudo
82a0e681ab
Add "decoratorsBeforeExport" to the babel-standalone presets ( #8649 )
2018-09-13 10:52:40 +02:00
Jeff Rafter
1b03906da4
Allow users to specify a module for inline scripts ( #6223 )
2018-09-07 16:33:19 -07:00
Henry Zhu
c70a32ab9d
Throw when using Stage presets ( #8293 )
...
* inline stage presets into standalone, throw error with using Stage presets
2018-07-23 22:22:52 -04:00
Henry Zhu
10910a10f5
Remove yearly presets from repo, inline in standalone ( #8274 )
...
These were already deprecated in v6, just didn't remove the folders?
2018-07-09 14:23:25 -04:00
Mauro Bringolf
92fc26d399
Remove check-constants plugin ( #6987 )
...
* Rebased onto new version
* Moved constants check into a separate method
2018-01-26 10:43:09 -05:00
Raja Sekar
88e550c733
removed plugin transform eval ( #7262 )
2018-01-23 17:31:45 -05:00
Steve Fan
1ded1d7ff6
[@babel/standalone] Remove additional function context ( #7094 )
2018-01-04 21:15:51 -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
Artem Yavorsky
148fe7d3ff
Add proposal-async-generator-functions to babel-standalone ( #7073 )
2017-12-20 20:37:16 +01:00
Brian Ng
3cea9f412a
Add dot-all regex support to preset-env and standalone
2017-12-19 11:39:00 -06:00
Bo Lingen
56638e1370
Add pipeline operator plugins to babel-standalone ( #6955 )
2017-12-18 10:10:20 -06:00
dnalborczyk
ed4d90b33d
expose import.meta syntax parser option as plugin ( #7008 )
2017-12-16 15:06:23 -06:00
Brian Ng
d8bbaaae0a
Split exportExtensions into exportDefault and exportNamespace plugins… ( #6920 )
...
* Split exportExtensions into two plugins in babylon
* rename proposal-export-default to proposal-export-default-from
* rename proposal-export-namespace to proposal-export-namespace-from
2017-11-30 17:46:36 -05:00
Daniel Lo Nigro
7d8932b6be
Add comment to babel-standalone to dissuade removal of whitelist ( #6910 )
...
There was a good discussion on https://github.com/babel/babel/pull/6177 . Linking to it in the code to preserve the comments.
2017-11-27 10:08:28 -08:00
Henry Zhu
9ac326b075
remove es20xx prefixes from plugins and rename folders ( #6575 )
2017-10-28 20:43:15 -04:00
Henry Zhu
5b47e4a6cb
Merge transform-async-to-module-method into transform-async-to-generator ( #6573 )
2017-10-27 17:14:40 -04:00
Henry Zhu
c41abd79a1
Rename all proposal plugins to -proposal- from -transform- ( #6570 )
2017-10-27 15:26:38 -04:00
Mathias Bynens
5d4c736413
Import babel-plugin-transform-unicode-property-regex ( #6499 )
...
* Import babel-plugin-transform-unicode-property-regex
Original: https://github.com/mathiasbynens/babel-plugin-transform-unicode-property-regex
Moving it into the official Babel repository makes it easier to maintain the transform.
* Update package.json
* Update README.md
* fixup
* fixup 2
2017-10-18 13:58:44 -04:00
Henry Zhu
eab0a1fadb
Scoped: remove old references to default enabled syntax plugins, fix bootstrap [skip ci]
2017-10-16 22:49:57 -04:00
Henry Zhu
425c2090c1
Scoped: update standalone [skip ci]
2017-10-16 22:49:57 -04:00
Mateusz Burzyński
47fa189053
Scoped: update more babel- to @babel/ [skip ci]
2017-10-16 22:49:56 -04:00