강동윤
a40518f667
v1.0.36 ( #330 )
...
swc_ecma_parser
- decorator_before_export is true for typescript. (#325 )
- fix parsing of dynamic imports. (#328 )
- fix parsing of conditional expression. (#327 )
2019-03-09 09:07:15 +09:00
강동윤
248a53ce7c
Make deserialization faster ( #324 )
...
swc_ecma_ast:
- make deserialization faster
2019-03-08 11:36:23 +09:00
강동윤
dd5f17463e
hygiene now handles class name correctly ( #323 )
2019-03-07 22:42:16 +09:00
강동윤
a311f42acf
Bugs ( #321 )
...
swc_ecma_parser:
- add a test to ensure that \r\n is lexed correctly (#316 )
swc_ecma_transforms:
- destructuring pass now handle variable exports correctly (#317 )
- es2017::async_to_generator now handles module items. Fix #319 .
- prevent hygiene pass from de-exporting class and funcrion (#315 )
2019-03-07 15:48:45 +09:00
강동윤
ed100700f1
Make deserialization fast ( #314 )
...
swc_ecma_ast:
- add deserialization benchmark
ast_node:
- #[ast_node] on enum now implements faster deserialization
2019-03-05 23:16:45 +09:00
강동윤
b4a391b3a7
es2015::destructuring pass ( #312 )
...
swc_ecma_transforms:
- es2015::destructuring pass now uses computed member if necessary. (#311 )
2019-03-05 17:44:47 +09:00
강동윤
5f16412273
Fix class properties pass ( #310 )
...
swc_ecma_transforms:
- Class properties pass handle nested scope correctly (#308 )
2019-03-03 17:01:23 +09:00
강동윤
b5d3b9a7c7
Initialize var to undefined in loops ( #306 )
...
swc_ecma_transforms:
- block_scoping: initialize var to undefined if it's declared in a loop (#305 )
2019-03-02 16:19:19 +09:00
강동윤
5dc4ba181d
Improve fixer ( #304 )
...
swc_ecma_transforms:
- fixer: handle member exprssion correctly
- fixer: handle binary expression correctly
- fixer: handle conditional expression correctly
- fixer: handle unary expression correctly
2019-03-01 22:50:43 +09:00
강동윤
1a0f1108a1
Bugs ( #303 )
...
swc_ecma_transforms:
- report error if jsx namespace is used (#301 )
2019-03-01 18:18:57 +09:00
강동윤
a2144bbbf5
Handle escapes in jsx attributes. Fix #299 .
2019-03-01 16:31:26 +09:00
강동윤
99e34ddbbd
Fix #295 ( #298 )
...
swc_ecma_transforms:
- hygiene::operator now handles export correctly (#295 )
- make function hoisting respect directives
2019-03-01 14:02:33 +09:00
강동윤
21f3f792d1
Fixes ( #294 )
...
swc_ecma_transforms:
- block_scoped_fn: don't fold self-modifing functions. (#288 ).
- fixer: fix assignment in conditional expression (#293 )
- make resolver work with self modifying function (#292 )
2019-02-28 23:07:31 +09:00
강동윤
f49fbea2af
Update referenes
2019-02-28 19:30:58 +09:00
강동윤
a46804ab48
swc_ecma_ast:
...
- Split class member / property into separate types
2019-02-28 19:25:38 +09:00
강동윤
8c1b773eec
Bug fixes ( #289 )
...
swc_ecma_transforms:
- fix assignment expression in callee position (#286 )
- don't name funtion if function's body reference function name (#288 )
2019-02-28 16:30:56 +09:00
강동윤
cdf4a09e65
Fixes ( #283 )
...
swc_ecma_transforms:
- Remove State / Clone
- Fix hygiene bug of labels (#281 )
- Fix sequence expression in unary expression (#282 )
2019-02-27 22:40:19 +09:00
강동윤
892b4f01cd
FIx #280
2019-02-27 18:56:12 +09:00
강동윤
ae91b724b7
Fix helpers
2019-02-27 18:46:34 +09:00
강동윤
74dc5582f1
Don't inject @swc/helpers if nothing is used
2019-02-27 18:31:30 +09:00
강동윤
1e38d2e124
Handle sourcemap correctly
2019-02-27 17:44:11 +09:00
강동윤
a5bc5c1490
Publish (again) ( #279 )
...
- swc_ecma_codegen@0.6.1
- swc_ecma_codegen_macros@0.3.0
- swc_ecma_parser@0.9.1
- swc_ecma_parser_macros@0.3.0
2019-02-27 10:48:02 +09:00
강동윤
10cb9a4b21
Publish ( #278 )
...
- swc_macros_common@0.2.0
- ast_node@0.4.1
- string_enum @0.2.0
- swc_ecma_ast@0.8.0
- swc_ecma_parser_macros@0.3.0
- swc_ecma_codegen_macros@0.3.0
- swc_ecma_parser@0.9.1
- swc_ecma_parser@0.6.1
2019-02-27 10:42:22 +09:00
강동윤
1b28766c26
Improve comment api ( #277 )
...
swc_ecma_parser:
- parser now take comments by reference
2019-02-26 13:56:58 +09:00
강동윤
a75dbdf2f2
Update references
2019-02-25 19:47:53 +09:00
강동윤
b6a4d1548a
FIx
2019-02-25 19:14:23 +09:00
강동윤
27cd169522
More works for ast node serialization
2019-02-25 19:07:20 +09:00
강동윤
3e2750ba5e
Make const_module pass parse expressions itself
2019-02-25 12:42:23 +09:00
강동윤
906d6a0625
Fix codegen of yield, break, continue. Fixes #275 .
2019-02-25 11:42:50 +09:00
강동윤
dff2cb8f75
Implement deserialize for ast nodes ( #274 )
...
string_enum:
- #[derive(StringEnum)] now derives `Deserialize`
swc_ecma_ast:
- implement deserialize for ast nodes.
- change ast to make it serialized / deserialized correctly
swc_ecma_parser:
- jsx, test262, typescript tests now verify serialization and deserialization of module
2019-02-24 14:12:04 +09:00
강동윤
78f4b25480
Bug Fixes ( #273 )
...
swc_ecma_transforms:
- fix spread pass (#270 )
- add babel's fixture tests for spreads
- change order of passes (#271 )
- handle updates of private class fields (#272 )
2019-02-23 21:56:12 +09:00
강동윤
7dcb2e34af
Add test for #269 .
2019-02-22 15:55:04 +09:00
강동윤
a785ecc960
Add const_modules pass ( #268 )
...
swc_ecma_transforms:
- use fxhash for inline_globals pass
- handle member expression in inlne_globals pass
- add const_modules pass
2019-02-22 15:42:27 +09:00
강동윤
c1de0a5c86
Improve codegen of binary expression which contains unary expression. ( #267 )
...
swc_ecma_codegen:
- improve codegen of binary expression which contains unary expression (#266 )
2019-02-22 12:04:41 +09:00
강동윤
8f932c374e
Fix visibillity
2019-02-21 22:29:06 +09:00
강동윤
07e2cffb43
Fixes ( #265 )
...
swc_ecma_parsr:
- fix parsing of invalid utf8 characters (#261 )
- fix parsing of function body (#257 )
- fix parsing of () => (x = true) (#259 )
swc_ecma_transforms:
- fix default arguments in arrow expression (#254 )
- fix assignment pattern in array pattern (#260 )
- make amd / umd configurable. (#262 )
2019-02-21 22:21:48 +09:00
강동윤
e9b06c5de2
Improve fixer ( #263 )
...
swc_ecma_transforms:
- fixer does not breaks cast to boolean (#252 )
- fixer does not break conditional expression with comma expressions (#255 )
2019-02-21 14:49:13 +09:00
강동윤
162dee5518
Fix bugs ( #251 )
...
swc_ecma_transforms:
- don't convert typeof to _typeof if not necessary (#250 )
- fix imports of `@swc/helpers` (#248 ).
2019-02-20 20:02:22 +09:00
강동윤
601f0feb14
Hoist functions in block scoped function pass.
...
Fix #245 .
2019-02-20 12:10:28 +09:00
강동윤
76ce98b685
Implement serialize for ast nodes ( #244 )
...
swc_common:
- implement Serialize / Deserialize for span
swc_ecma_parser:
- use json instead of {:#?} while testing
- update test references
2019-02-20 11:35:41 +09:00
강동윤
7d5316463d
Fixes ( #241 )
...
swc_ecma_transforms:
- handle constructor from object_rest_spread pass (#239 )
- typescript::strip pass now removes signature-only constructor
swc_ecma_parser:
- fix parsing of do while statement (#242 )
swc_ecma_codegen:
- fix codegen of do while statement (#242 )
2019-02-19 15:20:02 +09:00
강동윤
4fddea0bbd
swc_ecma_transforms:
...
- remove this parameter from typescript::strip pass (fixes #236 )
2019-02-19 14:30:26 +09:00
강동윤
4dc10d849e
Fixes ( #237 )
...
swc_ecma_transforms:
- handle pattern correctly in coomon_js pass (#235 )
- fix object rest in arrow expression (#233 )
2019-02-19 12:52:03 +09:00
Nate Mara
6fd789aa34
Remove dbg! macro call ( #232 )
2019-02-19 10:34:12 +09:00
강동윤
aa8940c1b0
Fix #226 .
...
Now parser works correctly when either
exportDefaultFrom and exportNamespace is enabled
2019-02-18 23:43:53 +09:00
강동윤
4917bbaf44
Fix test
2019-02-18 22:34:32 +09:00
강동윤
3252988e6a
Update fixer.
...
Fixes #231 .
2019-02-18 22:31:50 +09:00
강동윤
59f6a6ffb6
Handle react fragment in top level.
...
Fixes #229 .
2019-02-18 18:08:40 +09:00
강동윤
1368a4a281
Fix #227
2019-02-18 15:05:58 +09:00
강동윤
2b7240c595
Support export * as Foo from 'foo';
( #228 )
...
swc_ecma_parser:
- support `export * as Foo from 'foo';` (Fix #226 )
swc_ecma_transforms:
- support `export * as Foo from 'foo';` (Fix #226 )
2019-02-18 14:01:56 +09:00