Donny/강동윤
70f55833e9
feat(es/transforms/react): Improve development more ( #2542 )
...
swc_ecma_transforms_react:
- `jsx_src`: Add column to `__source`.
- `jsx`: Support `jsxDEV`.
- `jsx`: Handle `__source` and `__self` specially.
2021-10-26 11:09:09 +00:00
Donny/강동윤
b8933e3db9
fix(swc): Fix bugs ( #2538 )
...
swc_ecma_transforms_base:
- `unique_scopes`: Handle method properties.
- `hygiene`: Fix handling of method properties. (#2539 )
swc_ecma_transforms_compat:
- Fold children of for-of/in statements. (#2531 )
swc_ecma_minifier:
- `name_mangler`: Fix handling of method properties.
2021-10-26 07:43:32 +00:00
Iha Shin
edc97ef540
ci: Limit number of runs in graph ( #2540 )
2021-10-26 16:23:34 +09:00
Donny/강동윤
265084c41e
chore: Remove useless submodules ( #2537 )
2021-10-26 06:10:15 +00:00
Alexander Akait
5ef6686029
refactor(css/codegen): Use raw
instead ( #2534 )
...
swc_css_codegen:
- Remove `write_ident`.
- Use `raw` for printing identifiers.
2021-10-26 14:34:47 +09:00
Nayeem Rahman
693181ee6a
fix(es/transforms/typescript): Remove declare
d class properties ( #2530 )
...
swc_ecma_transforms_typescript:
- `strip`: Remove class properties with `declare` keyword.
2021-10-26 14:31:20 +09:00
Alexander Akait
6876b1b26c
refactor(css/parser): Fix parsing of some selectors ( #2525 )
...
swc_css_parser:
- Fix whitespace bugs related to parsing of attribute selectors.
- Fix bugs related to empty namespace selectors.
2021-10-25 23:48:56 +09:00
Donny/강동윤
dcf5f05195
fix(es/minifier): Fix minifier ( #2528 )
...
swc_ecma_minifier:
- `collapse_vars`: Respect operator.
2021-10-25 12:24:40 +00:00
Donny/강동윤
a099e8f846
perf(es/minifier): Make name mangler parallel ( #2527 )
...
swc_ecma_minifier:
- Remove useless `RefCell<T>`.
- Make name mangler parallel.
2021-10-25 07:09:00 +00:00
Donny/강동윤
e7189fbdbd
fix(es/transforms/compat): Fix async_to_generator
( #2526 )
...
swc_ecma_transforms_compat:
- `async_to_generator`: Handle `for-await` correctly. (#2306 )
2021-10-25 05:37:13 +00:00
Donny/강동윤
709b3c7cd6
fix(es/transforms/optimization): Fix inline_globals
( #2524 )
...
swc_ecma_transforms_optimization:
- `inline_globals`: Skip assignment to `process.env.FOO`. (#2499 )
2021-10-24 21:51:08 +00:00
Donny/강동윤
cead404a53
fix(bundler): Fix bundler ( #2510 )
...
swc_bundler:
- Consider usage in named export specifier while analyzing imports.
2021-10-24 16:25:59 +00:00
Donny/강동윤
a8b29b662e
test(es/minifier): Add a test for moment.js
( #2522 )
...
swc_ecma_minifier:
- Ensure that `moment.js` is minified correctly. (#2521 )
2021-10-24 14:54:23 +00:00
Sosuke Suzuki
65c83e8cb4
feat(es/transforms): Move stage 4 proposals to es2022
( #2519 )
2021-10-24 21:28:40 +09:00
Donny/강동윤
fce3b79e79
fix(es/minifier): Improve name mangler ( #2509 )
...
swc_ecma_transforms_base:
- Expose renamer.
swc_ecma_minifier:
- Improve name mangler.
swc:
- Disable hygiene if mangler is enabled.
2021-10-24 10:52:09 +00:00
Sosuke Suzuki
ecd617af39
feat(es/transforms): Move class_properties
to es2022
( #2512 )
2021-10-23 23:25:14 +09:00
Donny/강동윤
5afedf83c9
fix(bundler): Fix name of helper ( #2518 )
...
swc_bundler:
- Use correct name for helpers. (#2517 )
2021-10-23 13:18:14 +00:00
Alexander Akait
430a06ce4d
refactor(css/parser): Respect spec ( #2487 )
2021-10-23 21:27:16 +09:00
Austaras
c482162206
feat(es/transforms/module): Fix transform of this
for classes ( #2514 )
2021-10-23 21:13:56 +09:00
Yunfei He
4abde38dd7
feat(swc): Add browserslist
to optionalDependencies
( #2515 )
2021-10-23 20:04:06 +09:00
Donny/강동윤
f33d3218cd
feat(es/transforms/compat): Add single-property optimization to destructuring
( #2511 )
...
swc_ecma_transforms_compat:
- `destructuring`: Convert single-property destructuring to direct field access.
2021-10-22 13:46:29 +00:00
Alexander Akait
e327c9a502
feat(css/ast): Add Percent
token ( #2482 )
2021-10-22 13:35:29 +09:00
Sosuke Suzuki
91717c9c5f
feat(es/babel): Support babelify
of static blocks ( #2504 )
2021-10-22 13:32:34 +09:00
Donny/강동윤
175c997676
fix(es/transforms/react): Fix hygiene of react fast refresh ( #2501 )
...
swc_ecma_trasnforms_react:
- `refresh`: Use span hygiene system.
2021-10-21 14:09:00 +00:00
Donny/강동윤
9e215769cc
fix(es/minifier): Fix minifier using Deno
test suite ( #2503 )
...
swc_ecma_codegen:
- Emit `;` after private class properties.
swc_ecma_minifier:
- `pure`: Drop more invalid expressions.
- `sequences`: Drop more invalid expressions.
- `strings`: Fix concat.
- `inline`: Inline into `b` in `a[b] = foo`.
2021-10-21 11:56:48 +00:00
Pig Fang
a9869e60f2
test(es/transforms/compat): Add tests for optional_catch_binding
( #2502 )
2021-10-21 20:41:10 +09:00
LongYinan
1b91d55277
ci: Re-enable FreeBSD build ( #2497 )
2021-10-21 15:15:52 +09:00
Sosuke Suzuki
52dfb55816
fix(es/transforms/compat): Change error message ( #2500 )
...
swc_ecma_transforms_compat:
- `classes`: Use `unreachable` instead of `unimplemented ` for static blocks.
2021-10-21 15:15:08 +09:00
Nayeem Rahman
c29a6e11c9
fix(es/transforms/typescript): Fix strip
( #2496 )
...
swc_ecma_transforms_typescript:
- Visit the RHS of import equals declaration properly.
2021-10-21 15:12:51 +09:00
Donny
7af0f8c81b
chore: Publish
2021-10-21 14:16:15 +09:00
Donny/강동윤
26944e159d
fix(es/transforms/base): Reimplement hygiene
( #2408 )
...
swc_ecma_transforms_base:
- Reimplement `hygiene`.
2021-10-21 05:12:50 +00:00
Donny/강동윤
ecf0d7507c
feat(swc): Allow removing filename from error output ( #2498 )
...
swc:
- Add an option to exclude filename from error messages.
2021-10-21 04:45:12 +00:00
Alexander Akait
d83bde8ca5
fix(css/parser): Fix parsing of url ( #2484 )
2021-10-20 15:39:01 +09:00
Donny/강동윤
eef3d6e3fb
fix(es): Fix simple bugs ( #2495 )
...
swc_ecma_parser:
- Don't panic on `declare declare`. (#2343 )
swc_ecma_transforms_react:
- Don't panic on `createElement()`. (#2492 )
swc_bundler:
- Don't panic on wasm. (#2334 )
swc:
- Disable `inline_globals` if it's not specified. (#2490 )
2021-10-20 06:12:21 +00:00
Sosuke Suzuki
bb1cc974c7
feat(es/trasform): Support static blocks ( #2474 )
...
swc_ecma_transforms_proposal:
- Add transform for static blocks, which is stage 3.
2021-10-20 14:18:55 +09:00
Donny/강동윤
cef2c8666e
fix(es/minifier): Fix join_vars
( #2494 )
...
swc_ecma_minifier:
- Don't join `let`/`const` into narrower scope.
2021-10-20 05:17:14 +00:00
Alexander Akait
b62dc60c5d
feat(css/ast): Add Function
token ( #2491 )
2021-10-20 04:53:08 +09:00
David Sherret
3886eeddd5
fix(es/parser): Fix parsing of a property named async
( #2485 )
2021-10-20 04:31:52 +09:00
Donny/강동윤
7c5b6cafd8
fix(es/minifier): Fix regexp handling ( #2489 )
...
swc_ecma_minifier:
- Use allowlist of characters for optimizing RegExp calls.
2021-10-19 19:30:20 +00:00
Donny/강동윤
eef63ca6db
chore(ci): Prevent benchmark from marking PR as failed ( #2488 )
2021-10-19 19:01:30 +00:00
Donny/강동윤
bf886bac73
perf(es/parser): Make typescript parser faster ( #2483 )
...
swc_ecma_parser:
- Check for option before backtracking.
2021-10-20 00:00:48 +09:00
Donny/강동윤
b0361caa58
feat(es/transforms/optimization): Improve inline_globals
( #2479 )
...
swc_ecma_transforms_optimization:
- `inline_globals`: Support inlining into shorthand properties.
- `inline_globals`: Support replacing member expressions.
swc:
- Add an option to disable simplifier when using `inline_globals`.
node_swc:
- Improve error message on panic.
2021-10-19 14:58:10 +00:00
Donny/강동윤
9b96885171
fix(es/transforms/compat): Fix handling of private static properties ( #2478 )
...
swc_ecma_transforms_compat:
- `class_properties`: Replace `this` in private static property initializers. (#2476 )
2021-10-19 11:21:13 +00:00
Donny/강동윤
0020e16370
fix(es/minifier): Fix minifier ( #2477 )
...
swc_ecma_minifier:
- `MultiReplacer`: Handle inlining into shorthands.
- `ExprReplacer`: Handle inlining into shorthands.
2021-10-19 11:00:51 +00:00
Donny/강동윤
2ca6e5d79b
feat(es/transforms/optimization): Support inlining of typeof
s ( #2473 )
...
swc_ecma_transforms_optimization:
- `inline_globals`: Support inlining of `typeof`s.
swc:
- Change error message for parsing failure to mention `Syntax Error`.
2021-10-19 09:49:18 +00:00
Alexander Akait
5234530cd5
fix(css/ast): Use correct type for units ( #2464 )
2021-10-19 17:32:59 +09:00
Donny/강동윤
123c1f5d02
chore: Fix typo ( #2472 )
2021-10-19 08:25:57 +00:00
Donny/강동윤
ee880d63ae
fix(swc): Change default value of inlineSourcesContent
( #2471 )
...
swc:
- Make `inlineSourcesContent` `true` by default. (#2470 )
2021-10-19 06:37:58 +00:00
Donny/강동윤
c9437d3226
fix(es): Fix bugs ( #2469 )
...
swc:
- Fix handling of `envs`.
- Check for already fixed issues. (#2319 )
2021-10-19 06:02:46 +00:00
Donny/강동윤
01e171a4b4
test(es): Freeze as es2015
to verify base transforms ( #2468 )
2021-10-19 05:31:12 +00:00