Commit Graph

130 Commits

Author SHA1 Message Date
Donny/강동윤
28af875811
chore: Publish v1.3.92 with swc_core v0.83.38 (#8067) 2023-10-05 07:27:16 +00:00
Donny/강동윤
020027d5d9
chore: Publish v1.3.91 with swc_core v0.83.34 (#8040) 2023-10-01 11:51:50 +00:00
Donny/강동윤
724b83b05d
chore: Publish v1.3.90 with swc_core v0.83.26 (#8013) 2023-09-27 01:12:23 +00:00
Donny/강동윤
98d283cb34
chore: Publish v1.3.89 with swc_core v0.83.22 (#8002) 2023-09-25 13:24:09 +00:00
Donny/강동윤
dff9e15b72
chore: Publish v1.3.88 with swc_core v0.83.19 (#7997) 2023-09-24 04:57:46 +00:00
Donny/강동윤
866f34d278
chore: Publish v1.3.87 with swc_core v0.83.18 (#7986) 2023-09-22 02:10:47 +00:00
Donny/강동윤
6b1216e9e8
chore: Publish v1.3.86 with swc_core v0.83.16 (#7970) 2023-09-18 21:37:45 +00:00
Donny/강동윤
94b45e92a4
chore: Publish v1.3.85 with swc_core v0.83.10 (#7954) 2023-09-15 06:03:20 +00:00
Donny/강동윤
c8ac13e60c
chore: Publish v1.3.84 with swc_core v0.83.5 (#7937) 2023-09-11 23:21:02 +09:00
Donny/강동윤
3b10b7532d
chore: Publish v1.3.83 with swc_core v0.83.2 (#7920) 2023-09-07 10:20:12 +09:00
Donny/강동윤
a86e9f3bb5
fix(es/module): Fix jsc.paths for projects using pnpm (#7918)
**Related issue:**

- x-ref: https://vercel.slack.com/archives/C04DUD7EB1B/p1693911653100299?thread_ts=1693819683.070959&cid=C04DUD7EB1B
2023-09-06 17:29:47 +00:00
Donny/강동윤
ee7575695d
feat(es/codegen): Add an option to print assert for import attributes (#7914)
**Description:**

- `jsc.experimental.keepImportAssertions` is renamed to `jsc.experimental.keepImportAttributes`.
 - `jsc.experimental.emitAssertForImportAttributes` is added.

**Related issue:**

 - Closes #7908
2023-09-05 21:24:25 +09:00
Donny/강동윤
7d2a3015dc
chore: Publish v1.3.82 with swc_core v0.82.10 (#7905) 2023-09-01 11:35:07 +09:00
Donny/강동윤
feb36e61ff
chore: Publish v1.3.81 with swc_core v0.82.7 (#7895) 2023-08-30 21:07:19 +09:00
Donny/강동윤
5fbc251db1
fix(es/module): Don't create absolute paths for jsc.paths on Windows (#7892)
**Related issue:**

 - Closes #7806
2023-08-30 10:11:34 +00:00
Donny/강동윤
74a5dc62a7
chore: Publish v1.3.80 with swc_core v0.81.5 (#7867) 2023-08-25 22:54:38 +09:00
Donny/강동윤
f819c4487d
chore: Publish v1.3.79 with swc_core v0.81.3 (#7859) 2023-08-25 15:20:50 +09:00
Donny/강동윤
854e2e78b3
chore(ci): Fix CI (#7857) 2023-08-25 03:32:44 +00:00
Donny/강동윤
f9013a0409
chore: Publish v1.3.78 with swc_core v0.79.69 (#7831) 2023-08-18 04:29:38 +09:00
Donny/강동윤
677e25026d
chore: Publish v1.3.77 with swc_core v0.79.59 (#7817) 2023-08-16 11:23:54 +09:00
Donny/강동윤
7aea2bdd97
chore: Publish v1.3.76 with swc_core v0.79.55 (#7794) 2023-08-10 17:12:04 +09:00
Donny/강동윤
9079050232
chore: Publish v1.3.76 with swc_core v0.79.54 (#7792) 2023-08-10 12:04:11 +09:00
Donny/강동윤
41692f91db
chore: Publish v1.3.75 with swc_core v0.79.49 (#7778) 2023-08-08 14:03:36 +09:00
Donny/강동윤
9eb05f2d05
chore: Publish v1.3.74 with swc_core v0.79.38 (#7744) 2023-08-03 07:17:29 +09:00
Donny/강동윤
6dce81e2ca
chore: Publish v1.3.73 with swc_core v0.79.36 (#7733) 2023-08-01 12:40:40 +09:00
Donny/강동윤
00a0575408
chore: Publish v1.3.72 with swc_core v0.79.33 (#7727) 2023-07-29 04:34:33 +09:00
Donny/강동윤
d358c01392
chore: Publish v1.3.71 with swc_core v0.79.27 (#7703) 2023-07-25 12:52:06 +09:00
Donny/강동윤
882d31980f
chore: Publish v1.3.70 with swc_core v0.79.19 (#7668) 2023-07-18 13:21:00 +09:00
Donny/강동윤
480c97f9e5
chore: Publish v1.3.69 with swc_core v0.79.15 (#7654) 2023-07-13 11:18:42 +09:00
Donny/강동윤
be8a0e9a49
chore: Publish v1.3.68 with swc_core v0.79.9 (#7628) 2023-07-05 10:05:58 +09:00
Donny/강동윤
e62a0b91bd
chore: Publish v1.3.67 with swc_core v0.78.27 (#7594) 2023-06-29 11:18:46 +09:00
Donny/강동윤
c51eac6075
chore(ci): Fix CI (#7589) 2023-06-27 14:34:41 +00:00
Donny/강동윤
d57d0d3ad3
build(cargo): Update deps (#7566) 2023-06-22 13:37:35 +00:00
Donny/강동윤
1f65d50610
chore: Publish v1.3.66 with swc_core v0.78.15 (#7554) 2023-06-20 18:38:32 +09:00
Donny/강동윤
6e5d8b3cf1
feat(es/codegen): Support preamble (#7551)
**Related issue:**

 - Closes #7475.
2023-06-20 14:35:46 +09:00
Donny/강동윤
4585ed99db
chore: Publish v1.3.65 with swc_core v0.78.8 (#7541) 2023-06-19 12:24:49 +09:00
Donny/강동윤
5b0ee541b4
chore: Publish v1.3.64 with swc_core v0.78.3 (#7529) 2023-06-14 14:07:00 +09:00
Donny/강동윤
178abee03e
chore: Publish v1.3.63 with swc_core v0.78.0 (#7520) 2023-06-12 21:32:15 +09:00
Donny/강동윤
c7463893e6
chore: Publish v1.3.62 with swc_core v0.76.39 (#7484) 2023-06-03 00:43:20 +09:00
Donny/강동윤
43d1e46ccf
chore: Publish v1.3.61 with swc_core v0.76.37 (#7468) 2023-05-30 14:40:44 +09:00
Donny/강동윤
df7a2be938
chore: Publish v1.3.60 with swc_core v0.76.30 (#7448) 2023-05-25 11:23:55 +09:00
Donny/강동윤
a79a9cf6ff
chore: Publish v1.3.59 with swc_core v0.76.16 (#7416) 2023-05-19 14:24:32 +09:00
OJ Kwon
ac5ab607c9
refactor(plugin/runner): Revise cache, module loading (#7408)
**Description:**

One of the oversight around design of `TransformExecutor` is
encapsulating plugin module logic. It has access to the cache and do its
own loading & storing. This means consumer of plugin runner have tricky
challenge to control its caching system. First, there is no way to
escape how swc_plugin_runner controls cache and cannot synchronize into
their own, also depends on the usecases cannot control the features they
want to opt in: for example, there's no way one interface uses in-memory
cache, and another uses filesystem since it is compile time configured
singleton.

PR revisits overall design of TransformExecutor: now it accepts a tratir
`PluginModuleBytes`, which abstracts any kind of bytes we are dealing
with, such as raw file slice or serialized `wasmer::Module`. Cache
instantiation and managing is now bubbled up to the application level
(`swc` in here), so if someone wants non-singleton caching or integrate
into their own caching system it can be customized.

Lastly, deprecated `memory_cache` feature and only exposes
`filesystem_cache`. Cache implementation uses in-memory is always
available, and can opt in filesystem cache where it's supported.


**BREAKING CHANGE:**

This is clearly breaking changes for the consumers of swc_core. for the
@swc/core, this PR takes care of necessary changes. I'll work on
next-swc changes later once we have new @swc/core version with this
changes.
2023-05-18 07:05:39 +00:00
Donny/강동윤
a5e68243e2
chore: Publish v1.3.58 with swc_core v0.76.7 (#7393) 2023-05-15 13:17:25 +09:00
OJ Kwon
bba1fad35c
feat(plugin): Add versioned wrapper struct (#7382) 2023-05-15 03:17:31 +00:00
Donny/강동윤
6399d450cc
chore: Publish v1.3.57 with swc_core v0.75.46 (#7368) 2023-05-09 12:02:09 +09:00
Donny/강동윤
fee0ec4d01
chore: Publish v1.3.56 with swc_core v0.75.41 (#7345) 2023-04-29 22:56:07 +09:00
Donny/강동윤
c67900278e
chore: Publish v1.3.55 with swc_core v0.75.35 (#7332) 2023-04-25 19:22:55 +09:00
Donny/강동윤
08b3dc0149
chore: Publish v1.3.54 with swc_core v0.75.34 (#7327) 2023-04-25 09:28:27 +09:00
Donny/강동윤
a483750bd9
chore: Publish v1.3.53 with swc_core v0.75.31 (#7310) 2023-04-21 15:29:14 +09:00