Donny/강동윤
71d01ec127
feat(es): Add an option to disable builtin transforms ( #7873 )
2023-08-26 01:12:36 +00:00
Donny/강동윤
eed290319e
chore: Use textarea
for swc-info
2023-08-26 07:28:15 +09:00
Donny/강동윤
67afaf1f2d
fix(swc-info): Use correct path while getting local package versions ( #7872 )
2023-08-26 07:27:09 +09:00
SWC Bot
606b57c101
chore: Publish crates
2023-08-25 22:13:55 +00:00
Donny/강동윤
d6952ea687
feat(swc-info): Add a CLI to help issue reporting ( #7871 )
2023-08-26 07:11:34 +09:00
Donny/강동윤
7911973020
chore: Publish crates
2023-08-25 22:55:28 +09:00
Donny/강동윤
74a5dc62a7
chore: Publish v1.3.80
with swc_core
v0.81.5
( #7867 )
2023-08-25 22:54:38 +09:00
SWC Bot
5c96b8545d
chore: Publish crates
2023-08-25 13:48:47 +00:00
Donny/강동윤
11ebae1bdd
fix(es/module): Don't resolve as node_modules
from TscResolver
( #7866 )
...
**Related issue:**
- Closes #7863
2023-08-25 22:46:53 +09:00
SWC Bot
7986566128
chore: Publish crates
2023-08-25 07:25:19 +00:00
Donny/강동윤
52a1ee78da
fix(es/module): Fix logic for exact matches in jsc.paths
( #7860 )
...
**Related issue:**
- Closes #7829
2023-08-25 07:23:19 +00:00
Donny/강동윤
e47f1c2bf7
chore: Remove unused files
2023-08-25 15:22:53 +09:00
Donny/강동윤
c18051fb0b
chore: Publish crates
2023-08-25 15:21:54 +09:00
Donny/강동윤
f819c4487d
chore: Publish v1.3.79
with swc_core
v0.81.3
( #7859 )
2023-08-25 15:20:50 +09:00
SWC Bot
9c69caf665
chore: Publish crates
2023-08-25 06:07:50 +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
SWC Bot
f79ca54584
chore: Publish crates
2023-08-25 04:49:30 +00:00
Lewis Liu
ae8cd9430d
fix(es/minifier): Don't remove exports ( #7856 )
2023-08-25 13:47:42 +09:00
SWC Bot
5ae2e810d8
chore: Publish crates
2023-08-25 03:34:55 +00:00
Donny/강동윤
854e2e78b3
chore(ci): Fix CI ( #7857 )
2023-08-25 03:32:44 +00:00
SWC Bot
e3b4cfbbf9
chore: Publish crates
2023-08-24 18:52:19 +00:00
Donny/강동윤
64e51d3a28
fix(es): Fix default value of jsc.minify.format.comments
( #7853 )
...
**Related issue:**
- Closes #7842
2023-08-24 18:50:21 +00:00
SWC Bot
7b5cb902a5
chore: Publish crates
2023-08-24 12:58:41 +00:00
Donny/강동윤
c65732496e
refactor(common): Mark some methods of Input
unsafe ( #7848 )
...
**Related issue:**
- Closes #7709
2023-08-24 12:56:38 +00:00
SWC Bot
a9a6928a4e
chore: Publish crates
2023-08-24 08:20:56 +00:00
Jason
a34f3592b3
feat(css/ast): Support @scope
at-rule ( #7837 )
...
> ### Describe the feature
> [Chrome 118 is shipping
soon](https://chromium-review.googlesource.com/c/chromium/src/+/4790561 ),
which is expected to be one of the more popular CSS features, giving new
hope for style isolation of components.
>
> * Explainer https://css.oddbird.net/scope/explainer
> * Specification https://drafts.csswg.org/css-cascade-6/#scope-atrule
>
Closed : #7836
2023-08-24 08:18:35 +00:00
SWC Bot
da5bc1084d
chore: Publish crates
2023-08-24 07:37:21 +00:00
Austaras
65db1badff
refactor(es/minifier): Pre-calculate reassigned
( #7832 )
2023-08-24 07:35:26 +00:00
SWC Bot
662f236aa5
chore: Publish crates
2023-08-22 02:06:20 +00:00
Donny/강동윤
7fe01e64dd
fix(es/minifier): Don't inline properties if the var is not fn-local
( #7839 )
...
**Related issue:**
- https://github.com/vercel/next.js/issues/54192 .
2023-08-22 11:04:15 +09:00
SWC Bot
6a8ea89f4b
chore: Publish crates
2023-08-18 06:26:59 +00:00
Donny/강동윤
f713f1b2f6
refactor(es/types): Extract @swc/types
as a small, reusable package ( #7834 )
...
**Related issue:**
- Closes #7828
2023-08-18 06:24:49 +00:00
SWC Bot
f87581f67d
chore: Publish crates
2023-08-18 04:27:30 +00:00
Donny/강동윤
1ab406cd7a
refactor(es/helpers): Move packages for monorepo ( #7833 )
2023-08-18 04:25:37 +00:00
Donny/강동윤
6e37fd2932
chore: Publish crates
2023-08-18 04:30:40 +09:00
Donny/강동윤
f9013a0409
chore: Publish v1.3.78
with swc_core
v0.79.69
( #7831 )
2023-08-18 04:29:38 +09:00
SWC Bot
becea47a2d
chore: Publish crates
2023-08-17 18:11:16 +00:00
Donny/강동윤
31de19ece2
fix(es/minifier): Preserve more analysis data upon inlining ( #7823 )
...
**Related issue:**
- Closes #7821 .
2023-08-17 18:09:02 +00:00
SWC Bot
9dbfadb48d
chore: Publish crates
2023-08-17 14:38:07 +00:00
Donny/강동윤
9099883175
feat(es/module): Improve error message about relative jsc.baseUrl
( #7827 )
2023-08-17 14:35:39 +00:00
SWC Bot
ebbc9292e3
chore: Publish crates
2023-08-17 05:18:03 +00:00
Austaras
f8ca366cc1
fix(es/minifier): Abort seq inliner if var is not fn_local or reassigned ( #7804 )
...
**Description:**
It turns out that the original implementation of `infect`is incomplete
because it cannot cover function param, and the new implementation
introduced in #7772 is redundant because what
[terser](https://github.com/terser/terser/blob/master/lib/compress/tighten-body.js#L909C18-L909C28 )
do is basically checking `fn_local`
**Related issue:**
- Closes #7784
2023-08-17 05:15:59 +00:00
SWC Bot
a6a5ec30cd
chore: Publish crates
2023-08-17 04:37:14 +00:00
Donny/강동윤
05990a98fd
fix(es/minifier): Preserve cooked
while compressing template literals ( #7773 )
...
**Related issue:**
- Closes #7770
2023-08-17 04:35:07 +00:00
SWC Bot
05200ad352
chore: Publish crates
2023-08-17 04:03:33 +00:00
Donny/강동윤
3766a7c776
fix(es/compat): Remove wrong logic for object patterns in object_rest
( #7788 )
...
**Related issue:**
- Closes #7776
2023-08-17 04:01:30 +00:00
SWC Bot
0d036b4915
chore: Publish crates
2023-08-16 19:11:18 +00:00
Donny/강동윤
04921f301a
fix(es/codegen): Add quotes to property names when ascii_only
is true
( #7820 )
...
**Related issue:**
- Closes #7805 .
2023-08-16 19:09:27 +00:00
SWC Bot
e9dfe879d9
chore: Publish crates
2023-08-16 18:04:14 +00:00
David Sherret
981d7b152b
refactor(common): Make ahash
optional ( #7816 )
...
**Description:**
This adds the ability to not include `ahash` with swc_common, which
caused some issues for me compiling dprint-plugin-typescript to Wasm
because of:
```
Compiling ahash v0.8.3
Compiling getrandom v0.2.10
error: the wasm*-unknown-unknown targets are not supported by default, you may need to enable the "js" feature. For more information see: https://docs.rs/getrandom/#webassembly-support
--> C:\Users\david\.cargo\registry\src\index.crates.io-6f17d22bba15001f\getrandom-0.2.10\src\lib.rs:285:9
|
285 | / compile_error!("the wasm*-unknown-unknown targets are not supported by \
286 | | default, you may need to enable the \"js\" feature. \
287 | | For more information see: \
288 | | https://docs.rs/getrandom/#webassembly-support ");
| |________________________________________________________________________^
```
(I can't enable the JS feature because it's running the wasm file in
Wasmer and also I don't support Wasi in dprint plugins)
**BREAKING CHANGE:**
This removes swc_common's "perf" feature and makes it the default, then
adds an `ahash` feature instead. An alternative would be to make the
`ahash` dep optional and part of the default features, then do
`default-features = false` in the downstream crates (I think, but I'm
not sure), but I figure most people will be using the perf default
anyway? I'm not sure what's preferable.
**Related issue:**
- Closes #7729 .
2023-08-16 18:02:05 +00:00