Donny/강동윤
be5b02a8cf
fix(es/module): Preserve import specifier if resolving fails ( #7955 )
...
**Related issue:**
- https://github.com/vercel/next.js/pull/55216
This PR fixes a regression caught by the PR above.
2023-09-15 12:36:25 +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/강동윤
aa6495519b
fix(common): Fix logic for excluding FileName
from source maps ( #7900 )
...
**Description:**
This PR also modifies React transform to use `FileName::Internal` and makes `SourceMapGenConfig` skips `FileName::Internal`.
**Related issue:**
- Closes #5272
2023-08-31 13:23:11 +00: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/강동윤
9099883175
feat(es/module): Improve error message about relative jsc.baseUrl
( #7827 )
2023-08-17 14:35:39 +00: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
magic-akari
40136f7c54
fix(es/module): Do not determine module name for modules without exports in UMD ( #7718 )
...
**Related issue:**
- Closes #6263 .
2023-07-28 05:20:16 +00:00
magic-akari
a2d0408597
fix(es/module): Skip CJS and AMD transformations for Script
( #7661 )
...
**Related issue:**
- Closes #7650
2023-07-17 07:17:17 +00:00
Donny/강동윤
b34f1adbcc
build(cargo): Update rustc
to 2023-07-03
( #7623 )
2023-07-05 03:50:43 +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
Donny/강동윤
3958f1792c
refactor(es/ast): Remove unused fields ( #7518 )
...
**Related issue:**
- Closes #7347 .
- Closes #7487 .
2023-06-12 08:02:34 +00:00
Donny/강동윤
041b491466
feat(es/parser): Implement explicit resource management ( #7322 )
...
**Description:**
- Add `UsingDecl`.
- Add `UsingDecl` to `Decl`.
- Rename `VarDeclOrPat` to `ForHead`.
- Add `UsingDecl` to `ForHead`.
- Implement parser for using declarations.
**Related issue:**
- #7316 .
2023-05-10 04:16:44 +00: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
magic-akari
38dfb91ebc
fix(es/helpers): Remove unnecessary parameters in helper_expr!
macro ( #7296 )
...
**Description:**
We have moved to snake_case, so the last parameter of helper_expr is unnecessary.
2023-04-20 08:26:34 +00:00
Donny/강동윤
5d3313aa7e
feat(es/modules): Use function instead of arrow function unconditionally ( #7273 )
2023-04-15 13:57:00 +00:00
IWANABETHATGUY
c4cce12758
build(cargo): Update bitflags
to v2 ( #7270 )
2023-04-15 03:26:56 +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/강동윤
1ec161a0f1
fix(es/module): Fix jsc.paths
on Windows ( #6930 )
...
**Related issue:**
- Reverts https://github.com/swc-project/swc/pull/6716 .
- Closes https://github.com/swc-project/swc/issues/6782 .
2023-02-11 16:27:17 +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/강동윤
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/강동윤
9c9c3ebd2c
fix(es/modules): Fix jsc.paths
of .ts
imports ( #6431 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6432 .
2022-11-14 05:30:40 +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/강동윤
1a182ef8d9
perf(es): Optimize memory layout of AST ( #5829 )
2022-09-20 12:47:21 +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
095cbf1b4f
test(es/transforms): Respect directives in tsc tests ( #5648 )
2022-08-29 10:49:01 +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
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
f952a6161c
feat(es/typescript): Follow TypeScript error report ( #5114 )
2022-07-05 22:08:55 +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
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
de66b64aed
fix(es/compat): Preserve spans in object_rest_spread
( #5082 )
2022-07-02 03:50:30 +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