Donny/강동윤
0aafa75fef
feat(es/testing): Use __swc_snapshots__
for test!
macro ( #8191 )
...
**Description:**
This implements something similar to `__snapshots__` of `jest`. Instead of storing the expected result as a string literal, we now store it in `$crate/tests/__swc_snapshots__/$path_to_test__$test_name.js`.
**Related issue:**
- Closes #4509
2023-10-30 10:38:59 +09:00
Donny/강동윤
e9606147fc
feat(es/testing): Support babel-like fixture testing officially ( #8190 )
2023-10-30 07:24:49 +09:00
Donny/강동윤
7e8d72d03b
feat(es/module): Add an option to make resolver fully resolve index.js
( #7945 )
...
**Description:**
- `jsc.module.resolveFully` is added to support resolving as `.js`.
**Related issue:**
- Closes #7861
- Closes #7898
2023-09-14 07:17:23 +00:00
thy486
f713f6aba8
fix(es/module): Fix handling of continuous assignments in systemjs
( #7741 )
...
**Description:**
Fix transpile the continuous assignment code like `d.a = d.b = d.c = d.d = ... = void 0;` to SystemJS may cause Infinite loop.
**Related issue:**
- Closes #7143 .
2023-08-03 02:43:17 +00:00
Donny/강동윤
0259a7465f
build(cargo): Update rustc
to nightly-2023-03-20
( #7170 )
...
**Description:**
This PR also updates `rkyv` to `=0.7.40`.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6807 .
2023-03-30 08:06:02 +00:00
Donny/강동윤
12546c853a
build(cargo): Revert rustc upgrade ( #7162 )
...
**Description:**
The `rkyv` bug is not fixed.
2023-03-29 17:48:45 +09:00
Donny/강동윤
e445502072
build(cargo): Update rustc
to nightly-2023-03-28
( #7154 )
...
**Description:**
This PR also updates `rkyv` to `=0.7.40`.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6807 .
2023-03-29 06:24:19 +00:00
Alex Vasilev
85fffdad02
fix(es/module): Fix SystemJS imports ( #6879 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5922 .
2023-02-07 16:07:46 +00:00
Alex Vasilev
39c75fdcce
fix(es/module): Fix handling of this
for systemjs
( #6857 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6784 .
2023-01-27 12:58:22 +00:00
Donny/강동윤
e6b1dd4731
feat(es/testing): Add an option to test sourcemap ( #6079 )
2022-10-07 05:52:22 +00:00
Donny/강동윤
53610fdafc
feat(es/resolver): Use different syntax context for unresolved refs ( #4436 )
...
- We don't need a list of bindings to check if an identifier is unresolved.
- Checking if an identifier is unresolved is now one CPU instruction.
- Previously it was one hashmap operation.
- This PR also improves performance, by removing the hashmaps mentioned above.
2022-04-26 07:38:50 +00:00
Donny/강동윤
8beaa202e2
fix(es/minifier): Fix optimizations of terminating expressions ( #3794 )
2022-03-01 09:55:45 +00:00
underfin
557a520a6d
feat(es/modules): Support system js ( #3659 )
2022-03-01 05:18:55 +00:00