Donny
fd08a27f0c
chore(plugin): Publish
2021-10-10 20:18:19 +09:00
Donny/강동윤
897f4b670e
fix(dev/cli): Remove CLI from main swc repositoy ( #2393 )
2021-10-10 11:17:12 +00:00
Donny/강동윤
ff2baf75b4
fix(swc): Fix bugs ( #2396 )
...
swc_ecma_codegen:
- Check for comments deeply while emitting a return statement.
swc_ecma_transforms_react:
- Fix handling of texts in attributes.
2021-10-10 09:19:47 +00:00
Donny/강동윤
a33032279a
perf(es/transforms/base): Make resolver
faster ( #2392 )
...
swc_ecma_transforms_base:
- `resolver`: Don't use `Mark::parent()`.
2021-10-10 05:06:07 +00:00
Donny/강동윤
ab687a0f98
fix(es/minifer): Fix handling of callable expressions ( #2379 )
...
swc_ecma_minifier:
- `sequences`: Don't inline into arrow expression or function expressions.
- Inject variables to arrow expressions correctly.
2021-10-10 03:47:11 +00:00
Pig Fang
be3dca295b
fix(es/parser): Allow using async
as the first one in parameters ( #2388 )
2021-10-10 11:02:32 +09:00
Alexander Akait
a5592e3207
feat(css/ast): Add raw
to Str
( #2295 )
2021-10-10 10:43:11 +09:00
Donny
b9b7de0871
chore: Publish
2021-10-10 01:33:22 +09:00
Donny/강동윤
7a31a3f530
feat(plugin/api): Determine plugin api ( #2199 )
2021-10-09 17:47:42 +09:00
Pig Fang
2379fe1ce0
fix(es/parser): Allow using async
as the first one in parameters ( #2386 )
2021-10-09 17:09:09 +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
Pig Fang
644e49c7fa
refactor(es/parser): Simplify parsing logic ( #2381 )
2021-10-09 10:22:47 +09:00
Donny/강동윤
2c058cb124
fix(es/codegen, es/transforms/typescript): Fix bugs ( #2383 )
...
swc_ecma_codegen:
- Emit sourcemap for `import` tokens.
swc_ecma_transforms_typescript:
- Strip `react` correctly.
2021-10-09 01:20:59 +00:00
Donny
d19df1379c
chore: Publish swc
2021-10-09 00:05:59 +09:00
Donny/강동윤
486c689504
fix(swc): Fix sourceMap
option of minify ( #2380 )
2021-10-08 15:01:09 +00:00
Alexander Akait
cf1235ece1
fix(css): Change the type of the source of @import
rules. ( #2363 )
2021-10-08 20:55:19 +09: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/강동윤
4466ca6ab8
fix(es/transforms/react): Allow non-first jsx directives ( #2377 )
...
swc_ecma_transforsm_react:
- Allow using jsx directives like `jsxRuntime` at any statement.
2021-10-08 06:49:14 +00:00
Yunfei He
500dbf244b
feat(es/codegen): Expose more API ( #2375 )
...
swc_ecma_codegen:
- `Emitter`: Make `emit_module_item` public.
2021-10-08 14:36:47 +09:00
Donny/강동윤
656f3e944d
fix(swc): Fix swc
as a crate ( #2376 )
...
swc_ecma_transforms_typescript:
- Don't drop imports from `react`.
2021-10-08 03:38:11 +00:00
Niklas Mischkulnig
1f99c3a44c
fix(es/transforms/optimization): Fix dead_branch_remover
( #2373 )
...
swc_ecma_transforms_optimization:
- `dead_branch_remover`: Fix handling of `switch(boolean)`.
2021-10-08 11:56:09 +09:00
Donny/강동윤
b0ee9543d4
doc(es/ast): Document identifier mangagement system ( #2371 )
2021-10-08 01:02:02 +09:00
Donny/강동윤
7a19fc6e8c
fix(es/trasnforms/testing): Improve test_fixture
( #2369 )
...
swc_ecma_transforms_testing:
- `test_fixture`: Don't print stderr to file.
- Enable logging.
- Add `test_fixture_allowing_error`.
2021-10-07 12:24:41 +00:00
Alexander Akait
4ff1b7568c
feat(css/ast): Add raw to Text
( #2361 )
2021-10-07 20:32:54 +09:00
Pig Fang
d65ce85030
fix(es/parser): Report errors for array patterns without comma ( #2365 )
2021-10-07 17:03:06 +09:00
Pig Fang
521e6717ad
fix(es/parser): Report errors for multiple array elements without comma ( #2366 )
2021-10-07 16:08:53 +09:00
Donny/강동윤
e2a0edd49d
chore: Setup workfllow to bump version ( #2368 )
2021-10-07 16:07:55 +09:00
Alexander Akait
1e9ecfbad1
test(css/parser): Add tests for hex colors ( #2360 )
2021-10-07 15:14:11 +09:00
Donny/강동윤
edc4cb432e
fix(swc): Fix order of custom passes ( #2367 )
...
swc_ecma_transform_react:
- Accept `top_level_mark`.
swc:
- Fix order of `custom_before_pass`.
2021-10-07 15:13:21 +09:00
Alexander Akait
f0be833f14
test(css/parser): Combinators ( #2359 )
2021-10-07 00:32:31 +09:00
Donny/강동윤
3714802bd3
feat(css): Add error recovery for tokens in selector positions ( #2357 )
...
swc_css_ast:
- Add `Rule::Invalid`.
swc_css_parser:
- Add error recovery for tokens in selector positions.
- Report an error while recovering property errors.
2021-10-06 09:25:05 +00:00
Donny/강동윤
9e6a1f431b
fix(es/minifier): Fix minifier ( #2355 )
...
swc_ecma_minifier:
- `iife`: Don't replace parameters with identifiers in iife.
- `sequences`: Add `Marks.synthesized_seq`.
- pure: Drop empty statements.
2021-10-06 07:12:11 +00:00
Donny/강동윤
a553451562
chore(es/minifier): Publish ( #2354 )
2021-10-06 14:02:24 +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/강동윤
6d35e7c28d
fix(swc): Fix order of custom passes ( #2347 )
...
swc:
- Invoke `resolver` and `typescript::strip` before applying user passes.
2021-10-05 20:46:49 +00:00
Alexander Akait
6863d9624e
fix(css/parser): Fix parsing of funxtion named url
( #2350 )
...
swc_css_parser:
- Make `url` function calls to not contain space in arguments.
2021-10-06 04:39:54 +09:00
Donny/강동윤
fac6f47863
perf(es/transforms): Improve performance ( #2329 )
...
swc_ecma_ast:
- Implement `Take` for `Function`.
- Implement `Take` for `FnExpr`.
- Implement `Take` for `ClassExpr`.
swc_ecma_transforms_compat:
- Migrate `es2015::duplicate_keys` to `VisitMut`.
- Migrate `es2015::template_literals` to `VisitMut`.
- Migrate `es2015::function_name` to `VisitMut`.
- Add more fast-path to `reserved_words` pass.
swc_ecma_transforms_react:
- Reduce allocations of `pure_annotations`.
- Migrate `pure_annotations` to `VisitMut`.
- Migrate `jsx::display_name` to `VisitMut`.
swc_ecma_transforms_optimization:
- Migrate `inline_globals` to `VisitMut`.
- `inline_globals`: Use `Lrc<FxHashMap<K, V>>`.
swc:
- Cache `current_dir()`.
- `ModuleConfig::build`: cacnonicalize only if `paths` is used.
2021-10-05 13:31:35 +00:00
Donny/강동윤
87b20a8896
fix(es/minifier): Fix inlining into shorthand properties ( #2348 )
...
swc_ecma_minifer:
- Fix inlining of bindings into shorthand properties.
2021-10-05 09:53:00 +00:00
Pig Fang
ef4c80be7d
feat(babel/compat): Support type-only import/export specifiers ( #2342 )
2021-10-05 18:27:45 +09:00
Donny/강동윤
b64afb5b6f
fix(es/utils): Fix macros ( #2349 )
...
swc_ecma_utils:
- Allow using macros from crates using `swc_ecmascript`.
2021-10-05 09:14:25 +00:00
Donny/강동윤
8403057268
fix(es/minifier): Don't optimize new String
. ( #2341 )
...
swc_ecma_transforms_optimization:
- Don't optimize calls like `new String`.
2021-10-04 06:44:37 +00:00
Donny/강동윤
bbefa0e57e
chore: Improve documentation for rust users ( #2340 )
2021-10-04 06:10:30 +00:00
Julien Roncaglia
20171a3654
fix(testing): Fix CRLF issue on windows ( #2338 )
2021-10-04 10:58:36 +09:00
Amos Wong
f42616698c
fix(node/bundler): Prevent spreading string into return ( #2335 )
2021-10-03 23:16:48 +09:00
Donny/강동윤
a7357ab517
chore: Update rustc ( #2332 )
2021-10-01 12:11:17 +00:00
Donny/강동윤
9f4c5b7ba5
fix(css/parser): Fix error recovery logic of property values ( #2331 )
...
swc_css_parser:
- Fix `state` used for error recovery.
2021-10-01 11:04:24 +00:00
Donny/강동윤
dad73926e6
fix(es/minifier): Fix minifier ( #2323 )
...
swc_ecma_minifier:
- Don't inline literals if a property is mutated.
2021-09-30 07:50:34 +00:00
LongYinan
fee270fe57
perf(common): Avoid string re-allocation ( #2318 )
2021-09-30 14:50:25 +09:00
Donny/강동윤
6a41e9a0be
fix(es): Fix performance bugs ( #2313 )
...
swc_common:
- Optimize `SourceMap.span_until_char`.
swc_ecma_codegen:
- Make `Emitter` generic.
swc_ecma_parser:
- `Lexer`: Reuse allocation of `String`.
- `Lexer`: Avoid copying useless data.
2021-09-29 12:10:38 +00:00
Donny/강동윤
bd92d89306
fix(es/codegen): Fix codegen of numbers ( #2317 )
...
swc_ecma_codegen:
- Fix codegen of numbers when minification is enabled. (#2294 )
2021-09-29 11:08:59 +00:00