강동윤
eecdca4e86
fix(es/transforms/base): Fix resolver ( #1414 )
...
swc_ecma_transforms_base:
- `resolver`: Handle private class methods. (denoland/deno_lint#615 )
2021-02-19 19:51:50 +09:00
강동윤
27aad87798
fix(es/transforms/base): Fix hygiene of catch clause ( #1413 )
...
swc_ecma_transforms_base:
- `hygiene`: Apply ops in catch clauses. (#1402 )
2021-02-19 16:52:02 +09:00
강동윤
eaeffabf74
fix(es): Improve performance ( #1411 )
...
swc_ecma_ast:
- Add `BindingIdent`.
- Reduce size of `Ident`.
2021-02-19 15:34:22 +09:00
강동윤
0be20ff0ae
feat(es/transforms/react): New jsx transform ( #1408 )
...
swc_ecma_transforms_react:
- Implement new jsx transform. (#1103 , denoland/deno#7993 )
2021-02-19 14:32:53 +09:00
강동윤
702e20ef56
Update issue templates
2021-02-17 21:27:55 +09:00
강동윤
8fb0b4c303
fix(es/transforms/react): Use VisitMut instead of Fold ( #1409 )
...
swc_ecma_transforms_base:
- Implement `MapWithMut` for more types.
swc_ecma_transforms_react:
- Migrate to `VisitMut`.
2021-02-17 14:40:03 +09:00
강동윤
5ad57b02f2
fix(es/parser): Fix bugs ( #1405 )
...
swc_ecma_parser:
- Parse generics in class methods with special name properly.
2021-02-17 01:47:00 +09:00
Ivan Tham
a53186c842
fix(swc): Reduce allocation ( #1401 )
2021-02-15 23:01:37 +09:00
강동윤
fc2a8cb073
fix(es): Fix docs.rs ( #1399 )
2021-02-15 02:45:50 +09:00
강동윤
9dabf00200
fix(es): Fix bugs ( #1395 )
...
swc_ecma_codegen:
- Implement `emit_ts_type_assertion`.
- Implement `emit_ts_type_cast_expr`.
- Implement `emit_ts_ns_export_decl`.
- Implement `emit_ts_signature_decl`.
swc_ecma_parser:
- Ensure that we report an error for invalid input. (#1391 )
swc_ecma_transforms_base:
- fixer: Handle `await (await foo)()`. (#1397 )
2021-02-14 22:18:05 +09:00
Jovi De Croock
f5a90ae985
fix(node-swc): Handle empty object patterns. ( #1393 )
...
Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
2021-02-14 19:57:15 +09:00
David Sherret
313f51fab1
feat(es/parser): Allow to look at the kind of an error ( #1396 )
...
swc_ecma_parser:
- Add a method to look at the kind of an error without destructuring it.
Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
2021-02-14 16:49:28 +09:00
Jovi De Croock
a0898e8ce3
fix(node-swc): Don't remove plugin from options ( #1390 )
2021-02-13 19:34:35 +09:00
Bartek Iwańczuk
8ef78a9e08
feat: add import assertion to dep analyzer ( #1387 )
...
Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
2021-02-10 21:49:44 +09:00
강동윤
bf445a75c4
fix(swc): Fix bugs ( #1372 )
...
swc_ecma_ast:
- Support import assertions for exports.
swc_ecma_parser:
- Support import assertions for exports.
swc_ecma_transform_typescript:
- Strip `declare globals` correctly. (#1383 )
spack:
- Re-enable multi-entry tests.
2021-02-10 17:25:28 +09:00
LongYinan
79e991bcc3
chore(node-swc): Use latest napi versions ( #1386 )
2021-02-10 15:47:01 +09:00
강동윤
686c98116d
fix(es): Fix for the type checker ( #1381 )
...
swc_ecma_codegen:
- Fix codegen of `TsCallSignatureDecl`.
swc_ecma_transforms_base:
- Handle `TsCallSignatureDecl`.
2021-02-08 01:39:05 +09:00
LuisPa
7a93594229
docs: Fixed documentation link URL in README.md ( #1375 )
...
Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
2021-02-04 12:12:54 +09:00
Yehuda Katz
98ae16761d
fix(node): Add es2020 to JscTarget in types.ts ( #1376 )
2021-02-04 12:12:19 +09:00
Michael Nicholls
bd119e6634
feat(es/preset-env): Custom config path ( #1374 )
...
swc_ecma_preset_env:
- Support custom path.
Co-authored-by: 강동윤 <kdy1@dudy.kr>
2021-02-03 13:27:11 +09:00
강동윤
bfde9a1f6e
fix(bundler): Fix bugs ( #1373 )
...
swc_bundler:
- Handle export default-ed functions correctly.
2021-02-01 12:31:03 +09:00
강동윤
0d130f8103
fix(bundler): Prevent hanging ( #1369 )
...
swc_bundler:
- Prevent infinite loop.
2021-01-30 13:35:07 +09:00
강동윤
af25a88902
fix(swc): Fix bugs for v1.2.47 ( #1368 )
...
swc_ecma_parser:
- Fix generic parsing issue in jsx context. (#1299 )
swc_ecma_transforms_module:
- Allow importing a module multiple time. (#1232 )
- Handle imports in the constructor of an exported class decl. (#1213 )
swc:
- Respect `sourceMappingURL`. (#1236 )
- Resolve `sourceMappingURL` relative from file. (#1255 )
- Respect `isModule: false` (#1258 )
spack:
- Support loading json files. (#1225 )
2021-01-29 22:19:04 +09:00
LongYinan
ca417e9d59
feat(node-swc): Support windows ia32 arch ( #1367 )
2021-01-29 15:09:44 +09:00
David Sherret
4155822283
Fix span of arrow expression with type params ( #1365 )
...
swc_ecma_parser:
- Fix span of arrow expression with type params.
Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>
2021-01-28 20:55:43 +09:00
강동윤
767f21e9dd
fix(bundler): Fix pass ordering ( #1363 )
...
swc_bundler:
- Invoke iife handler before fixer.
2021-01-27 20:20:39 +09:00
강동윤
78e79a7ace
feat(es/transforms/typescript): Strip out type-only namespaces ( #1361 )
...
swc_ecma_transforms_typescript:
- Strip out type-only namespaces.
2021-01-27 16:20:10 +09:00
강동윤
93a19140a8
fix(es): Fixes for type checker ( #1359 )
...
swc_ecma_codegen:
- Print type parameters of a class method.
swc_ecam_transforms_base:
- `ts_resolver`: Handle type parameter constraints correctly.
2021-01-26 22:05:30 +09:00
강동윤
947161b43b
fix(bundler): Fix bugs ( #1349 )
...
swc_bundler:
- Fix deglobbing of imports. (denoland/deno#8985)
- Use correct syntax context while deglobbing imports. (denoland/deno#9212)
- Allow reexporting from wrapped esms. (denoland/deno#8959, denoland/deno#9200)
- Fix statement orderings. (denoland/deno#9250)
- Emit injected items as early as possible. (denoland/deno#9250)
- Respect `external_modules`. (#1338 )
- Fix cjs suppport. (#1328 )
swc_ecma_transforms_base:
- hygiene: Fix for hoisting. (denoland/deno#9212 )
2021-01-25 21:15:42 +09:00
강동윤
947f9c5641
fix(es/ast): Fix EqIgnoreSpan ( #1360 )
...
swc_ecma_ast:
- Make `EqIgnoreSpan` impl of` StrKind` always return true.
2021-01-25 18:14:34 +09:00
강동윤
2921b903d7
fix(es/ast): Compilation ( #1357 )
...
swc_ecma_ast:
- Fix compilation.
2021-01-25 11:32:09 +09:00
강동윤
5c3a0b5166
v1.2.46: Prevent regression. ( #1356 )
2021-01-24 23:46:23 +09:00
강동윤
e40aca983a
v1.2.46 ( #1354 )
2021-01-24 22:02:44 +09:00
강동윤
acb4f1a278
Bump versions
2021-01-23 20:54:01 +09:00
강동윤
b7ae896bbd
fix(es): Fix bugs ( #1353 )
...
swc_ecma_transforms_compat:
- Handle all accesses to private class properties. (#1333 )
- block_scoping: Inject variable correctly. (#1231 )
- Handle async arrow function correctly. (#1341 )
2021-01-23 20:52:53 +09:00
강동윤
d4df2cece8
fix(es): Fix bugs ( #1347 )
...
swc_ecma_parser:
- Do not emit strict mode error while backtracking. (#1252 )
swc_ecma_transforms_proposal:
- Handle decorator on methods with computed key.
2021-01-23 15:46:42 +09:00
강동윤
6a1c3da326
fix(bundler): Fix bugs ( #1346 )
...
swc_bundler:
- Fix keywords pass.
swc_ecma_transforms_optimization:
- Remove `dbg!`.
- `constant_propagation`: Inline only injected variables.
2021-01-22 18:39:57 +09:00
강동윤
0469e3a33e
fix(es): Move and rename JscTarget ( #1343 )
...
swc_ecma_ast:
- Add `EsVersion`.
swc_ecma_parser:
- Remove `JscTarget`.
- Reexport `EsVersion` as `JscTarget`.
2021-01-20 19:43:56 +09:00
강동윤
17f17e82e6
fix(bundler): Fix bugs ( #1342 )
...
swc_bundler:
- Add a testing system for constant inliner.
swc_ecma_transforms_optimization:
- const_propagation: Handle export specifiers.
- const_propagation: Handle inlining of variables whose initializer is inlined.
- dce: Allow dropping identifiers used in `exported` part of export specifiers.
2021-01-20 16:10:12 +09:00
강동윤
ddc9492aed
fix(es/transforms): Handle enum in namespaces ( #1340 )
...
swc_ecma_transforms_typescript:
- Handle enums in namespaces. (#1329 )
swc:
- Exclude files based on .swcrc.
2021-01-18 23:00:53 +09:00
강동윤
613a5a45dd
fix(es): Fixes for the type checker ( #1331 )
...
swc_ecma_codegen:
- Fix codegen of typescript interfaces.
swc_ecma_transforms_base:
- ts_resolver: Handle ts module declarations.
2021-01-15 21:12:16 +09:00
강동윤
3faefb5836
feat(es): TypeScript 4.2 ( #1330 )
...
swc_ecma_ast:
- Add `is_abstract` to constructor types.
swc_ecma_codegen:
- Fix codegen of `Bool`.
- Implement codegen for abstract constructors.
swc_ecma_parser:
- Inline tsc parser test suite.
- Implement parsing of abstract constructor types.
2021-01-15 19:30:44 +09:00
강동윤
4b79cbbffe
Bump version
2021-01-14 22:02:37 +09:00
강동윤
a9bf9bb9e1
fix(swc): Fix bugs ( #1300 )
...
swc_ecma_codegen:
- Handle unicode escape sequences when target is es5. (#1227 , #1326 )
swc_ecma_transforms_compat:
- Handle template literals correctly. (#1314 )
- Handle private class properties correctly. (#1306 )
swc:
- Don't panic on `export * as foo from 'foo'`. (#1307 )
2021-01-14 21:56:25 +09:00
강동윤
6984217200
feat(ES/transform/typescript): Support namespace ( #1325 )
...
swc_common:
- Update `serde`.
swc_ecma_transforms_typescript:
- Add support for namespace.
2021-01-12 21:59:42 +09:00
강동윤
ebc0d0a203
fix(bundler): Publish
2021-01-11 20:08:39 +09:00
강동윤
f0ca499b92
Include build.rs
2021-01-11 20:03:12 +09:00
강동윤
b822ac8d43
Bump version
2021-01-11 19:48:08 +09:00
Hee
78dc61af33
chore: Update actions/setup-node ( #1315 )
2021-01-11 19:39:17 +09:00
강동윤
23aebacade
fix(bundler): Fix bundler ( #1318 )
...
swc_bundler:
- Use two-context system properly.
- Remove old logic.
- keywords: Handle assignment pattern property.
- keywords: Handle shorthand property.
- keywords: Handle identifiers in declarations.
swc_ecma_transforms_typescript:
- Do not remove import if there's non-type usage. (Related to denoland/deno#8978 )
swc_ecma_transforms_optimization:
- dce: Handle new expression correctly.
2021-01-11 19:38:20 +09:00