강동윤
|
6e028696a5
|
Faster sourcemap generation for large files (#697)
We buffer operations related to source map and make it fast using an assumption that the byte positions always increment while emitting a file.
|
2020-03-02 20:49:08 +09:00 |
|
강동윤
|
8f280c535c
|
Performance (#696)
- Parser performance is improved by ~15%
- Codegen performance is improved by ~90% (when comment and source map is enabled)
|
2020-03-01 20:05:03 +09:00 |
|
강동윤
|
e709da9d55
|
Fix SourceMap (#672)
Previously, `SourceMap` (taken from rustc) has a bug which reuses start position when new_source_file is invoked concurrently.
|
2020-02-17 15:56:41 +09:00 |
|
강동윤
|
64ed0bd801
|
Validate sourcemap (#669)
|
2020-02-16 16:51:42 +09:00 |
|
kdy1
|
82e73b1121
|
Fix bugs (#659)
- Strip out const assertions (Closes #656)
- Fix exclude of the file matcher (Closes #658)
- Automatic typescript detection (Closes #655)
|
2020-02-12 15:07:45 +00:00 |
|
강동윤
|
64f6e51b42
|
Unescape template literals before emitting. (#652)
Fixes #637.
Fixes #639.
|
2020-02-11 13:33:29 +09:00 |
|
강동윤
|
8afa3413ea
|
Remove dependency on lazy_static and chashmap (#617)
- `lazy_static` is replaced by `once_cell`
- `chashmap` is replaced by `dashmap`
|
2020-01-30 23:29:12 +09:00 |
|
kdy1
|
96e1dbe213
|
Improve hygiene and use JSXAttrValue (#592)
swc_ecmacript:
- use JSXAttrValue (Fixes #584)
swc_ecma_transforms:
- make hygiene pass check for exported vars (Fixes #591)
|
2020-01-17 05:45:33 +00:00 |
|
강동윤
|
1bcfcb741a
|
Fix #555 (#556)
|
2020-01-03 12:19:39 +09:00 |
|
David Sherret
|
288008091a
|
Typo (#550)
|
2020-01-02 10:13:47 +09:00 |
|
강동윤
|
916858ae81
|
Bugfixes (#549)
swc_ecma_ast:
- fix TsExprWithTypeArgs (closes #548)
swc_ecma_codegen:
- allow using default import with namespace import (closes #546)
swc_ecma_parser:
- parse import.meta (closes #545)
|
2020-01-01 06:57:34 +09:00 |
|
David Sherret
|
708efebac9
|
Fix comment line's end to be on same line (#544)
- fix comment line's end to be on same line.
|
2019-12-30 11:09:45 +09:00 |
|
강동윤
|
702800e0d9
|
Attach comments to correct node (#541)
|
2019-12-28 22:02:58 +09:00 |
|
강동윤
|
6fa85b646f
|
preset-env (#537)
swc_ecma_preset_env:
- can inject polyfills automatically
- can apply transforms automatically
swc:
- added env config to .swcrc
|
2019-12-28 11:25:54 +09:00 |
|
강동윤
|
b1e4122b02
|
Nullish coalescing / optional chaining / comments (#529)
swc_ecma_ast:
- rename `TsOptChain` to `OptChainExpr` (Fixes #525)
- add `BinOp::NullishCoalescing`
swc_ecma_parser:
- parse `??` (Fixes #526)
swc_ecma_transforms:
- remap comments from fixer (Fixes #528)
|
2019-12-24 17:01:32 +09:00 |
|
강동윤
|
24b5c44ba3
|
Numeric separator & Bigint (#523)
swc_ecma_ast:
- `BigInt` literal
swc_ecma_parser:
- numeric separators. (#521)
- parsing of bigint literal
|
2019-12-22 17:14:04 +09:00 |
|
강동윤
|
30af06bb70
|
Ast (#513)
swc_ecmascript:
- add `ExprStmt`.
- change type of regex.expression and regex.flags.
|
2019-12-16 18:08:21 +09:00 |
|
강동윤
|
332061f44d
|
Parser: respect jsc.target (#507)
swc:
- make parser respect `jsc.target`.
|
2019-12-14 18:51:08 +09:00 |
|
kdy1
|
fa98c470d6
|
Program instead of Module (#499)
This pr adds an option to parse file as script, not module.
Related: https://github.com/swc-project/swc/issues/491
|
2019-12-11 06:07:21 +00:00 |
|
강동윤
|
b3a2ee8e9b
|
Fix bugs (#482)
swc_ecma_parser:
- fix lexing of numbers like 9.09
swc_ecma_transforms:
- jsx_text_to_str
- use fxhash instead of ahash for exports
|
2019-12-02 20:19:15 +09:00 |
|
Zimon Dai
|
ec086a1dab
|
use 2018 edition syntax (#479)
|
2019-12-02 17:10:05 +09:00 |
|
강동윤
|
a7a8a4a2e4
|
Plugin (#473)
swc_common:
- apply patch from rust-lang/rust#59693
swc:
- use &Options instead of Options
- configures commons::CM
- exposes `handler`
|
2019-11-29 23:46:06 +09:00 |
|
강동윤
|
8c7005d7ab
|
More testing (#469)
swc:
- Move tests from node-swc to swc
- Add integration tests (webpack, rxjs, angular-core)
- Support `exclude`
swc_ecma_transforms:
- More span validation
- classes:
- Strip `TsIndexSignature`
swc_ecma_parser:
- Fix span of member expression
- Fix span of binary expression
- Fix span of unary expression
|
2019-11-26 10:08:48 +09:00 |
|
강동윤
|
fc9880e4f4
|
Bump parser's version
|
2019-11-24 14:42:08 +09:00 |
|
강동윤
|
b46c4ec300
|
Update dependencies (#464)
|
2019-11-24 14:17:27 +09:00 |
|
강동윤
|
3474c61a48
|
Fix codegen and parsing of template literal (#453)
- Fix codegen and parsing of template literal (#450)
|
2019-11-18 19:54:24 +09:00 |
|
강동윤
|
d074063867
|
Parser: Error recovery (#449)
Implement some error recovery logic to parser
|
2019-11-17 18:36:47 +09:00 |
|
Jasper De Sutter
|
716bfe05b2
|
Cleanup (#448)
- cargo fix
- update all crates to 2018 edition
|
2019-11-17 13:21:53 +09:00 |
|
강동윤
|
bc4a2976e5
|
Validate spans (#447)
- Add span validator to swc_ecma_transforms
|
2019-11-16 23:49:32 +09:00 |
|
강동윤
|
37b80dfd08
|
Optional chaining for typescript (#444)
Implement typescript 3.7's optional chaining
|
2019-11-15 14:34:48 +09:00 |
|
강동윤
|
96aa4796ea
|
Fix #441
|
2019-11-15 14:23:39 +09:00 |
|
강동윤
|
d64d125996
|
Bugfixes (#440)
* Allow running swc on babel's output (#438)
* Print comments correctly (#439)
|
2019-11-10 18:21:28 +09:00 |
|
강동윤
|
167008de6f
|
Expose tokenizer (#437)
swc_common:
- Added input::Input
swc_ecma_parser:
- Made lexer public
- Make input type of parser generic
- Added example of using lexer
|
2019-11-06 13:14:44 +09:00 |
|
강동윤
|
ae3326cd9d
|
Compiler apis & .swcrc improvement (#434)
- Expose high-level compiler apis (#431)
- Support multiple entries in .swcrc (#414)
|
2019-10-25 10:11:24 +09:00 |
|
강동윤
|
2e5c81ee8e
|
Fix parsing readonly array and tests
Closes #432
|
2019-10-23 20:20:17 +09:00 |
|
강동윤
|
34c3a0ece9
|
Fix lints
|
2019-10-19 12:47:25 +09:00 |
|
강동윤
|
9f1fca55ff
|
Update rustc toolchain to nightly-2019-09-30
|
2019-10-02 13:53:56 +09:00 |
|
강동윤
|
2bd4475c5d
|
Fix codegen tests
|
2019-09-20 23:39:19 +09:00 |
|
강동윤
|
c20176820e
|
Fix #415
|
2019-09-20 23:07:24 +09:00 |
|
강동윤
|
4f8220329f
|
publish
|
2019-09-20 13:41:11 +09:00 |
|
강동윤
|
eefdaaaa2f
|
Fold expressions in module item (#420)
* Fix #413
|
2019-09-20 13:20:37 +09:00 |
|
강동윤
|
7715c2626b
|
Issues (#404, #406, #407) (#408)
swc_ecma_transforms:
- fix mis-referencing caused by destructuring (#404)
- fix invalid code generated by comment on arrow functions (#406)
- fix string concatation of template literal (#407)
- hygiene: fix rewriting of object pattern
- fix test module to prevent SIGILL
- fix module import order (using IndexMap)
|
2019-09-18 14:40:22 +09:00 |
|
강동윤
|
a1c2538338
|
hashbrown & comment revamp
|
2019-06-25 09:41:58 +09:00 |
|
강동윤
|
ed64a60cb3
|
Publish ast / codegen /transforms
|
2019-05-02 15:50:21 +09:00 |
|
강동윤
|
2951546f77
|
Fix sourcemap.
Closes #349
|
2019-05-01 19:18:48 +09:00 |
|
강동윤
|
b329d34632
|
Fix codegen of async method property
|
2019-04-26 18:01:36 +09:00 |
|
Erik Desjardins
|
3cc2e3315d
|
Don't emit octal escape for null character followed by digit
|
2019-04-09 19:37:43 -04:00 |
|
bors[bot]
|
48b2607b28
|
Merge #362
362: Fix #358 r=kdy1 a=kdy1
Fix #358
Co-authored-by: 강동윤 <kdy1@outlook.kr>
|
2019-04-07 14:10:29 +00:00 |
|
강동윤
|
fe451d5809
|
Fix #360 and update rustc
|
2019-04-05 12:19:18 +09:00 |
|
강동윤
|
adcc5954ee
|
Fix #358
|
2019-03-25 12:11:15 +09:00 |
|