Nicolò Ribaudo
2984f0cb88
Use the correct context when re-using a cached NodePath ( #12331 )
2020-11-10 15:03:21 +01:00
Guy Bedford
9c7d9c0fe5
SystemJS top-level await support ( #12163 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-10-14 20:14:52 +02:00
Huáng Jùnliàng
21d7ee2610
String import/export specifier ( #12091 )
...
* feat: parse moduleExportName
* feat: add validators
* Support string specifier name in commonjs transform
* Support string specifier name in export-ns-from
* test: add loose testcases
* test: add testcases for amd and umd
* feat: support systemjs
* test: update fixtures fixed in #12110
* add plugin name typings
* test: rename test layout
* feat: implement under moduleStringNames flag
* chore: add plugin syntax module string names
* feat: support ModuleExportName as ModuleExportName
* test: update test fixtures
* fix flow errors
* docs: update AST spec
* feat: support { "some imports" as "some exports" }
* feat: support { "some imports" as "some exports" } in systemjs
* test: add test on `import { "foo" }`
* Address review comments
* add moduleStringNames to missing plugin helpers
* Apply suggestions from code review
* update test fixtures
* Update packages/babel-parser/src/parser/error-message.js
* update test fixtures
Co-Authored-By: Kai Cataldo <kai@kaicataldo.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 20:01:37 +02:00
Huáng Jùnliàng
62965e3880
Archive plugins ( #12117 )
2020-10-09 16:29:37 +02:00
Huáng Jùnliàng
62df8d2b79
fix: push exported variable when hoisting export declared names ( #12110 )
2020-09-28 11:38:39 -04: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
Nicolò Ribaudo
a677d59a63
Archive syntax plugins enabled by default ( #10820 )
...
* Remove syntax plugins enabled by default
Moved to babel-archive: babel/babel-archive@8f23ddce03
- `@babel/plugin-syntax-async-generators`
- `@babel/plugin-syntax-bigint`
- `@babel/plugin-syntax-dynamic-import`
- `@babel/plugin-syntax-json-strings`
- `@babel/plugin-syntax-nullish-coalescing-operator`
- `@babel/plugin-syntax-object-rest-spread`
- `@babel/plugin-syntax-optional-catch-binding`
- `@babel/plugin-syntax-optional-chaining`
* Fix build script
* Fix jest config
* Remove archived plugins from tests
2020-01-13 00:31:48 +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
Daniel Tschinder
43eed1ac92
Check exported bindings are defined ( #9589 )
...
* Check exported bindings are defined
* Add tests
* Update flow whitelist
* Add tests for builtins
2019-02-26 13:28:10 -08: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
Logan Smyth
79b2af5997
Format fixture JSON with Prettier. ( #8658 )
2018-09-09 17:57:52 -07: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
7cc00cce0d
Require output fixture extension to match sourceType output.
2018-03-04 13:31:33 -08:00
Logan Smyth
beb99dfda1
Rename test fixtures using module syntax to .mjs files.
2018-03-04 13:31:32 -08:00
Nicolò Ribaudo
8659e1a88c
Remove old expected.{js,json} files ( #7187 )
2018-01-09 13:10:30 -06:00
Raja Sekar
0f42accb87
Renamed files
2018-01-09 15:36:42 +01:00
Henry Zhu
9ac326b075
remove es20xx prefixes from plugins and rename folders ( #6575 )
2017-10-28 20:43:15 -04:00