Commit Graph

162 Commits

Author SHA1 Message Date
Donny/강동윤
af420eab4b
fix(es/utils): Fix collect_decls (#2792)
swc_ecma_utils:
 - `collect_decls`: Handle assignment pattern property. (Closes #2785)
2021-11-18 15:05:26 +09:00
Donny/강동윤
54bc4054a9
chore: Fix benchmark github action (#2755) 2021-11-16 00:38:03 +09:00
Donny/강동윤
6b70fb5afe
chore: Rename the default branch from master to main (#2750) 2021-11-15 16:52:45 +09:00
Donny/강동윤
b869c81888
refactor(swc_bundler): Extract logic for analyzing cycles (#2733) 2021-11-12 23:33:32 +09:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
Donny/강동윤
a90fae5696
fix(swc): Fix tests (#2707) 2021-11-10 18:08:45 +09:00
Donny/강동윤
4f70ee6d98
refactor: Flatten more packages (#2706) 2021-11-10 16:39:01 +09:00
Donny/강동윤
687305f280
refactor: Flatten crates (#2697) 2021-11-09 20:42:49 +09:00
Donny/강동윤
0414c31480
feat(es/ast): Implement Take for more types (#2649) 2021-11-04 19:59:28 +09:00
Donny/강동윤
380722976a
feat(plugin): Proxy swc_common apis (#2646)
swc_common:
 - Add `Runtime` trait for plugin.
 - Implement `serde` for diagnostics.
 - Proxy diagnostics using `Runtime`.
 - Proxy `HygieneData::with` with `Runtime`.
 - Add implementation of `Runtime` with cargo feature `plugin-rt`.
 - Make `Runtime` implement `StableAbi`.

swc_plugin:
 - Move api code to `swc_plugin_api`.
 - Depend on `swc_common/plugin-mode`.
 - Configure `Runtime` before invoking custom transforms.
 - Use `bincode` for serde.

swc_plugin_runner:
 - Depend on `swc_common/plugin-rt`.
 - Pass `Runtime` implementation to the plugins.
 - Use `bincode` for serde.
2021-11-04 19:24:49 +09:00
Pig Fang
f8c7d36ac9
chore: Update playground link in the issue form (#2621) 2021-11-02 13:09:35 +09:00
Pig Fang
c05f35d5f1
chore: Fix syntax of github issue template (#2596) 2021-10-31 14:32:44 +09:00
Pig Fang
a278eff5ee
chore: Use form for issues (#2595) 2021-10-31 13:51:30 +09:00
LongYinan
1a659d3214
ci: Sync to latest napi workflow (#2592) 2021-10-31 10:04:18 +09:00
Donny
e3b8e5324b chore: Use ubuntu-18.04 for musl 2021-10-30 23:35:28 +09:00
Donny
dfd8d1ad61 chore: Fix musl target 2021-10-30 23:29:44 +09:00
Donny
344daefd16 chore: Publish 2021-10-30 23:22:05 +09:00
Donny/강동윤
db09bce687
perf(node/swc): Parse input using worker thread (#2590)
node_swc:
 - Make `transform` parse the options in background.
 - Make `transform` analyze the input file in background.
 - Make `minify` parse the options in background.
 - Make `minify` deserialize the input in background.
 - Make `parse` parse the options in background.
 - Make `parse` analyze the input file in background.
 - Make `print` parse the options in background.
 - Make `print` deserialize the input file in background.
2021-10-30 12:31:28 +00:00
Donny
b197eb65af chore(ci): Don't use push action 2021-10-30 18:29:33 +09:00
Donny
ceb025b735 chore: Fix permission issue 2021-10-30 17:50:44 +09:00
Donny
bab638c5e8 chore: Fix crate manager script 2021-10-30 16:38:44 +09:00
Donny/강동윤
d63553e5d7
chore: Fix script for managing crates (#2588) 2021-10-30 16:23:30 +09:00
Donny/강동윤
f997bc4889
chore: Manage crate version using github action (#2587) 2021-10-30 15:47:14 +09:00
Donny/강동윤
a6af0ab30f
chore: Fix CI script for PRs (#2575) 2021-10-29 06:11:00 +00:00
Donny/강동윤
0364f9a2ae
feat(es/transforms/testing): Reduce CI time by caching execution result (#2565)
swc_ecma_transforms_testing:
 - Cache execution test result on CI.
2021-10-28 04:00:25 +00:00
Donny/강동윤
7e29685a17
chore: Fix failing tests and improve CI scripts (#2563) 2021-10-28 02:55:49 +00:00
Donny
ac02f3f3fa chore: Fix publish scripts 2021-10-28 10:40:32 +09:00
Donny
a6fcfe1ddd chore: Fix ci script 2021-10-28 09:57:17 +09:00
Donny
e3869f1d27 chore: Disable freebsd build to publish 2021-10-27 18:39:15 +09:00
Iha Shin
edc97ef540
ci: Limit number of runs in graph (#2540) 2021-10-26 16:23:34 +09:00
LongYinan
1b91d55277
ci: Re-enable FreeBSD build (#2497) 2021-10-21 15:15:52 +09:00
Donny/강동윤
eef63ca6db
chore(ci): Prevent benchmark from marking PR as failed (#2488) 2021-10-19 19:01:30 +00:00
Donny/강동윤
01e171a4b4
test(es): Freeze as es2015 to verify base transforms (#2468) 2021-10-19 05:31:12 +00:00
Iha Shin
8c0c250249
chore: Add CI steps for combined benchmark data (#2458) 2021-10-18 16:54:23 +09:00
Donny/강동윤
3d204b44f0
perf(es/transforms): Make transforms parallel (#2449)
swc_ecma_utils:
 - `collect_decls`: More parallel.

swc_ecma_transforms_macros:
 - Add `Parallel`, which is helper for `#[parallel]`.
 - Add `ParExplode`, which is helper for `#[parallel(explode)]`.

swc_ecma_transforms_macros:
 - Add `#[parllel]`.

swc_ecma_transforms_compat:
 - `sticky_regex`: Parallel.
 - `typeof_symbol`: Parallel.
 - `for_of`: Remove exponential visit.
 - `regenerator`: Remove exponential visit.
 - `object_spread`: Parallel.
 - `instance_of`: Parallel.
 - `duplicate_keys`: Parallel.
 - `logical_assignments`: Parallel.
 - `template_literal`: Parallel.
 - `block_scoped_functions`: Migrate to `VisitMut`.
 - `for_of`: Migrate to `VisitMut`.
 - `destructuring`: Reduce `Visit`.
 - `arrow`: Migrate to `VisitMut`.
 - `function_name`: Parallel.
 - `reserved_words`: Parallel.
 - `for_of`: Parallel.

swc_ecma_transforms_module:
 - `import_analyzer`: Migrate to `VisitMut`.

swc_ecma_transforms_react:
 - `jsx_src`: Parallel.
-  `jsx_self`: Migrate to `VisitMut`.
-  `jsx_self`: Parallel.

swc_ecma_transforms_proposal:
 - `export_default_from`: Migrate to `VisitMut`.

swc_ecma_transforms_optimization:
 - `inline_globals`: Parallel.
 - `json_parse`: Migrate to `VisitMut`.
 - `json_parse`: Parallel.
2021-10-18 00:03:30 +09:00
Donny/강동윤
1645bb30b7
perf(es/transforms): Reduce usage of #[fast_path] (#2442)
swc_ecma_ast:
 - Implement `Take` for `ObjectLit`.
 - Implement `Take` for `ArrayLit`.

swc_ecma_transforms_compat:
 - `nullish_coalescing`: Remove exponential visit.
 - `nullish_coalescing`: Migrate to `VisitMut`.
 - `optional_chaining`: Reduce exponential visit. (But it's not removed)
 - `class_properties`: Remove exponential visit.
 - `jsx_src`: Migrate to `VisitMut`.
 - `optional_chaining`: Mae it parallel.
 - `async_to_generator`: Remove `#[fast_path]`.
 - `arrow`: Remove `#[fast_path]`.
 - `destructuring`: Remove `#[fast_path]`.
 - `block_scoped_functions`:  Remove `#[fast_path]`.
 - `classes`: Remove `#[fast_path]`.
2021-10-16 08:12:02 +00:00
Donny
267d639c2e chore: Disable freebsd to publish 2021-10-14 12:06:24 +09:00
Donny
5fb5a7058f chore: Fix CI script for publising 2021-10-14 00:15:16 +09:00
Donny
eb402d8c6f chore: Publish 2021-10-13 23:32:42 +09:00
Donny/강동윤
8074c72ce9
fix(es/transforms/base): Fix hyigiene (#2421)
swc_ecma_transforms_base:
 - `hygiene`: Considering scoping of `var`.
 - `hygiene`: Avoid creating too many `JsWord` by caching index.
2021-10-13 17:32:37 +09:00
Donny/강동윤
897f4b670e
fix(dev/cli): Remove CLI from main swc repositoy (#2393) 2021-10-10 11:17:12 +00:00
Donny/강동윤
7a31a3f530
feat(plugin/api): Determine plugin api (#2199) 2021-10-09 17:47:42 +09:00
Donny/강동윤
ac3fbd91ac
perf(bundler): Improve performance (#2384)
*:
 - Use `ahash` instread of `rustc-hash`.

swc_ecma_transforms_optimization:
 - Make `dce` parallel.
2021-10-09 08:08:13 +00:00
Donny/강동윤
d0342a5a58
feat(swcpack): Enable concurrent mode (#2356)
swc_common:
 - Use `Mutex` from `parking_lot` instead of it from std.

swc_bundler:
 - Use `fxhash` if possible.
 - Don't `clone()` all modules if the entry has only one item.

swc_ecma_loader:
 - `NodeModulesResolver`: Use `path-clean` instead of `canonicalize`.

swc_ecma_transforms_optimization:
 - Reimplement `dce`

node_bundler:
 - Enable `concurrent` of `swc_bundler`.
2021-10-08 16:47:01 +09:00
Donny/강동윤
e2a0edd49d
chore: Setup workfllow to bump version (#2368) 2021-10-07 16:07:55 +09:00
Donny/강동윤
305f90ce76
chore(ci): Add a CI script to publish from github actions (#2353) 2021-10-06 13:36:02 +09:00
Donny/강동윤
e5f46a6800
fix(wasm): Fix bugs (#2279)
swc:
 - Ensure that #2281 is fixed. (#2281)

wasm:
 - Fix `baseUrl` and `paths` support.
 - Apply `hygiene` pass.
2021-09-21 15:24:03 +00:00
강동윤
ff389ca8d2 chore: Add a link to github sponers 2021-09-15 18:05:53 +09:00
강동윤
cab37f8166
fix(ci): Publish (#2250) 2021-09-15 01:38:50 +09:00
강동윤
f78a504806
fix(ci): Publish v1.2.86 (#2235) 2021-09-11 09:36:06 +00:00