Donny/강동윤
afa97f63df
chore: Publish v1.2.155
2022-03-14 19:27:27 +09:00
SWC Bot
db62bb6415
chore: Publish crates
2022-03-14 10:01:39 +00:00
Donny/강동윤
0ad13d93f2
fix(common): Don't use None
as source while generating source maps ( #4007 )
...
**Description:**
I used https://pastcompute.github.io/ScriptMapper/ to dump source map, and found that line/column becomes null if file is `None`. Seems like the rust crate `sourcemap` is mature enough to handle sourcemaps with those entries, but many other sourcemap libraries, including the one used by `@swc/cli` expects non-null value for the line and the column.
2022-03-14 09:51:51 +00:00
Donny/강동윤
ae2f8d6327
chore: Publish crates
2022-03-14 15:39:23 +09:00
SWC Bot
ae46919477
chore: Publish crates
2022-03-14 03:54:43 +00:00
Donny/강동윤
f650ca6bb9
doc(api/rust): Add an example for generating code and sourcemap ( #4005 )
2022-03-14 03:52:59 +00:00
SWC Bot
833dc89a2d
chore: Publish crates
2022-03-14 02:08:47 +00:00
Donny/강동윤
ee9a841f33
test(*): Print diagnostics to stderr while testing ( #4003 )
...
**Description:**
This will make debugging stack overflow and parser issues easier because it writes to stderrr right away, instead of holding a buffer for it.
2022-03-14 02:06:34 +00:00
SWC Bot
470396a091
chore: Publish crates
2022-03-13 22:09:40 +00:00
Donny/강동윤
dac84b98e3
doc(api/rust): Add examples ( #4002 )
2022-03-13 22:07:34 +00:00
SWC Bot
8565a8e8f3
chore: Publish crates
2022-03-13 21:44:41 +00:00
Austaras
87a3c1c916
fix(es/resolver): Use correct context for identifiers after type parameters ( #4000 )
2022-03-13 21:42:24 +00:00
Donny/강동윤
38c0c0faa6
chore: Publish crates
2022-03-14 04:11:07 +09:00
SWC Bot
8ba1f201b9
chore: Publish crates
2022-03-13 19:09:34 +00:00
Donny/강동윤
40b8a4e596
feat(common): Implement a pretty error reporter ( #3946 )
2022-03-13 19:07:18 +00:00
SWC Bot
13ee45a830
chore: Publish crates
2022-03-13 18:40:08 +00:00
Alexander Akait
96d6f37c20
feat(css/parser): Improve error reporting ( #3999 )
2022-03-13 18:37:42 +00:00
SWC Bot
3cfe4ccb94
chore: Publish crates
2022-03-13 18:00:19 +00:00
Alexander Akait
ece8d962f8
fix(css/codegen): Fix source maps ( #3997 )
2022-03-14 02:55:18 +09:00
SWC Bot
386456f48a
chore: Publish crates
2022-03-13 09:13:23 +00:00
Donny/강동윤
a23af2dea2
feat(es/minifier): Compress more comparisons ( #3996 )
2022-03-13 09:11:16 +00:00
SWC Bot
39532d3548
chore: Publish crates
2022-03-13 08:48:07 +00:00
Donny/강동윤
dabc4920a8
test(es): Add auto-closable tests ( #3995 )
2022-03-13 08:45:55 +00:00
SWC Bot
499d204ae3
chore: Publish crates
2022-03-13 08:20:19 +00:00
OJ Kwon
560c81b120
build(cargo): Set workspace default members ( #3978 )
2022-03-13 08:17:55 +00:00
SWC Bot
3fba1a1a6d
chore: Publish crates
2022-03-13 07:54:40 +00:00
Donny/강동윤
b22d084180
test(es): Add an execution test system ( #3994 )
...
Description:
As we have a way to verify that input is behaving identically, we create a huge matrix of compile options and process the input with all of those options.
This system can be used to check for fixed issues easily.
For first, someone can add issues using a unix hidden directory, which starts with `.`. Those tests are ignored by `testing::fixture`.
Then, when something is changed, one can run `./scripts/check-issues.sh`. If a test succeeds, it means it's fixed and the starting dot (`.`) of the path to the test input file is removed.
2022-03-13 07:47:39 +00:00
SWC Bot
ad3115fa2f
chore: Publish crates
2022-03-13 03:29:32 +00:00
Donny/강동윤
64ca5bae4d
feat(es/minifier): Implement more rules for arrows
( #3992 )
2022-03-13 03:27:15 +00:00
SWC Bot
d9db2faded
chore: Publish crates
2022-03-13 02:59:56 +00:00
Donny/강동윤
f7b212bfc4
perf(es/minifier): Use Vec<u8>
as a buffer for base54
( #3993 )
...
Description:
We are only using ASCII characters so we can avoid utf8 logics by using `Vec<u8>` as a buffer and converting it into `String` at the end.
2022-03-13 02:57:47 +00:00
SWC Bot
63177b7cf2
chore: Publish crates
2022-03-13 01:51:32 +00:00
magic-akari
0312292410
chore: Update linguist ( #3991 )
2022-03-13 01:49:25 +00:00
SWC Bot
abf6a1b294
chore: Publish crates
2022-03-12 16:16:12 +00:00
Austaras
3590ea2277
fix(es): Merge jsc.loose
and jsc.assumptions
( #3990 )
2022-03-12 16:14:03 +00:00
SWC Bot
2a6106f0b7
chore: Publish crates
2022-03-12 15:38:49 +00:00
magic-akari
04db7e2a9b
perf(es/minifier): Refactor base54 ( #3989 )
2022-03-12 15:36:42 +00:00
Donny/강동윤
3054409214
chore: Publish crates
2022-03-12 20:47:59 +09:00
Donny/강동윤
bd0fcb9ea4
chore(es/preset-env): Track .json
files to make cargo happy
2022-03-12 20:47:29 +09:00
Donny/강동윤
743a5da1e5
chore(ci): Invoke yarn
before publishing
2022-03-12 20:16:51 +09:00
Donny/강동윤
f5e8cc2d09
chore: Publish crates
2022-03-12 20:13:53 +09:00
SWC Bot
ad42c60e05
chore: Publish crates
2022-03-12 11:08:43 +00:00
Donny/강동윤
1beecceead
perf(es/minifier): Merge hashmap for scoping before checking ( #3988 )
...
Currently, we check for child scopes by doing a recursive call, like 2ad0d801a2/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs (L112-L114)
But this is slow because it results in an enormous amount of calls.
We can optimize this by merging information of child scopes beforehand.
2022-03-12 20:06:59 +09:00
Donny/강동윤
2ad0d801a2
chore: Publish v1.2.154
2022-03-12 19:18:34 +09:00
SWC Bot
11c26d8d13
chore: Publish crates
2022-03-12 09:35:26 +00:00
Donny/강동윤
073d847a33
test(es): Add tests for fixed issues ( #3987 )
2022-03-12 09:33:32 +00:00
Donny/강동윤
9e4f4e92f7
chore: Publish v1.2.154
2022-03-12 17:40:56 +09:00
SWC Bot
8f1d6302d1
chore: Publish crates
2022-03-12 07:52:26 +00:00
Donny/강동윤
83722df21a
chore(es/preset-env): Use js script for copying files ( #3986 )
...
Description:
- We don't store `.json` from dependencies in our repo anymore.
2022-03-12 07:45:25 +00:00
SWC Bot
7e96a8a9d7
chore: Publish crates
2022-03-12 07:17:08 +00:00