Donny/강동윤
b70e96ffe9
fix(es/module): Fix resolving of .js
files ( #8480 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/56144
2024-01-03 20:15:53 +00:00
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
magic-akari
4d8e1013bb
fix(es/module): Handle directives ( #8048 )
...
**Related issue:**
- Closes : #8047
2023-10-02 16:44:05 +00:00
magic-akari
990ca06aca
fix(es/module): Sort the exported ESM bindings ( #8024 )
...
**Related issue:**
- Closes : #8023
2023-09-29 10:25:22 +00: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
Donny/강동윤
85d6e9be07
fix(es/module): Revert #7901 ( #7906 )
...
**Description:**
I'm reverting #7901 because it caused a regression in next.js CI.
https://github.com/vercel/next.js/pull/54653
**Related issue:**
- Reverts #7901 .
2023-09-01 14:24:50 +09:00
Donny/강동윤
c714dd20de
fix(es/module): Make jsc.paths
fully resolve TypeScript files ( #7901 )
...
**Related issue:**
- Closes #7861
- Closes #7898
2023-08-31 07:24:12 +00:00
Donny/강동윤
d33a97303c
fix(es/module): Make jsc.paths
work for a nest.js app ( #7852 )
2023-08-25 15:05:43 +09:00
Donny/강동윤
5c4bfa61f9
fix(es/module): Use jsc.baseUrl
while resolving absolute paths ( #7775 )
...
**Related issue:**
- Closes #7761
2023-08-09 13:58:45 +09: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/강동윤
7528de1897
test(es/modules): Add a test for unreproducible issue ( #7655 )
...
**Related issue:**
- Closes #7417 .
2023-07-13 04:34:22 +00:00
Donny/강동윤
f42fdd21af
fix(es/module): Add "use strict"
while preserving directives ( #7537 )
...
**Related issue:**
- Closes #7536 .
2023-06-16 06:44:28 +00:00
Donny/강동윤
3e9dd88e37
feat(es/module): Preserve custom use
directives ( #7528 )
...
**Related issue:**
- Closes #7315 .
2023-06-16 11:50:52 +09:00
magic-akari
caee073935
feat(es/module): Add export_interop_annotation
flag ( #7330 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/48801
2023-04-25 10:04:28 +00:00
Donny/강동윤
9c279b802b
fix(es/modules): Support jsc.baseUrl
without jsc.paths
( #7302 )
...
**Related issue:**
- Closes #1324 .
2023-04-20 07:33:29 +00:00
Donny/강동윤
5d3313aa7e
feat(es/modules): Use function instead of arrow function unconditionally ( #7273 )
2023-04-15 13:57:00 +00:00
magic-akari
a13a78e3fe
feat(es/helpers): Use named export and unify import path ( #7182 )
...
**BREAKING CHANGE:**
Breaking changes for `@swc/helpers`. A new major version `0.5.0` is required.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7157
2023-04-04 03:05:47 +00:00
magic-akari
98f14931e7
fix(es/modules): Hint nodejs for multiple export *
( #7184 )
2023-04-01 05:40:25 +00:00
magic-akari
3ca954b9f9
fix(es/helpers): Use snake_case for helpers ( #7147 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7144 .
- Closes https://github.com/swc-project/swc/issues/7118 .
2023-03-31 15:15:21 +09: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
Donny/강동윤
963c460613
refactor: Fix lints using clippy from nightly-2023-03-13
( #6920 )
2023-03-14 04:56:21 +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/강동윤
0ef84e1c00
test(es/module): Add a test for invalid issue ( #6785 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6779 .
2023-01-11 05:06:45 +00:00
Donny/강동윤
072bd13023
fix(es/modules): Remove wrong check for jsc.paths
( #6470 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6466 .
2022-11-18 06:35:49 +00:00
Donny/강동윤
05d185d59b
fix(es/modules): Fix jsc.paths
( #6454 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6446 .
2022-11-16 04:51:59 +00:00
Donny/강동윤
91e863c8df
fix(es/modules): Preserve extensions ( #6339 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6209 .
2022-11-03 07:04:03 +00:00
magic-akari
82cca674e3
fix(es/modules): Resolve jsc.paths
for export alls ( #6170 )
2022-10-16 00:25:55 +00:00
Donny/강동윤
e6b1dd4731
feat(es/testing): Add an option to test sourcemap ( #6079 )
2022-10-07 05:52:22 +00:00
Donny/강동윤
80da0981bd
feat(es/compat): Support iterator protocol on loose mode ( #6034 )
2022-10-04 21:42:39 +09:00
magic-akari
bf759819e4
fix(es/modules): Improve compatibility with cjs-module-lexer
( #5835 )
2022-09-13 07:43:41 +00:00
magic-akari
cdb6164937
fix(es/modules): Use an indirect call for a tagged template ( #5382 )
2022-08-04 04:59:42 +00:00
magic-akari
c0ace4cb2c
fix(es/modules): Use a private context for export from
( #5262 )
2022-07-21 06:04:06 +00:00
magic-akari
6b1ce09b6f
fix(es/modules): Preserve order for ts import equals ( #5215 )
2022-07-16 07:09:06 +00:00
HeYunfei
1ef541eec4
feat(es/codegen): Emit comments in emit_module
( #5132 )
2022-07-12 15:23:24 +00:00
magic-akari
56ad09afb2
fix(es/modules): Keep TDZ for export default
if possible ( #5164 )
2022-07-11 08:57:50 +00:00
magic-akari
997240cfe6
fix(es/modules): Add the missing span for export default
( #5170 )
2022-07-11 02:18:01 +00:00
magic-akari
2555d71a60
fix(es/modules): Handle top level this, really ( #5160 )
2022-07-09 05:33:14 +00:00
magic-akari
451f346af0
fix(es/modules): Handle top level this ( #5159 )
2022-07-09 02:30:01 +00:00
magic-akari
c531e67a30
fix(es/modules): Support lazy for export from
( #5103 )
2022-07-05 05:38:34 +00:00
magic-akari
ddb31d1fd7
feat(es/modules): Support AMD triple slash directives ( #5091 )
2022-07-04 04:17:34 +00:00
magic-akari
4d5783d9cd
feat(es/modules): Add pure annotations to interop functions ( #5087 )
2022-07-03 05:54:07 +00:00
magic-akari
52bfb18113
test(es/modules): Add test for string-names ( #5088 )
2022-07-03 04:38:48 +00:00
magic-akari
0a7ca2f4bb
fix(es/modules): Create an indirect call for a lazy require ( #5089 )
2022-07-03 03:44:56 +00:00
magic-akari
9addef6fc8
feat(es/modules): Support allowTopLevelThis
( #5086 )
2022-07-02 04:17:44 +00:00
magic-akari
2f2039c693
fix(es/modules): Preserve orders of exports ( #5081 )
2022-07-01 13:17:43 +00:00
magic-akari
9e162dcbae
fix(es/modules): Improve compatibility with cjs lexer ( #5080 )
2022-07-01 08:37:04 +00:00