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
Donny/강동윤
ce40ff73a7
feat(css/parser): Implement more error recovery ( #2316 )
...
swc_css_parser:
- Recover from wrong properties like `flex-basis: __styled-jsx-placeholder__2%;`.
2021-09-29 05:38:49 +00:00
Donny/강동윤
2c50cde8de
fix(swc): Fix try_with_handler
( #2315 )
...
swc:
- `try_with_handler`: Return `Err` on errors.
2021-09-29 04:55:31 +00:00
Donny/강동윤
36c83127e8
fix(css): Reexport codegen from swc_css
( #2314 )
...
swc_css:
- Reexport `swc_css_codegen`.
2021-09-28 13:32:35 +00:00
Pig Fang
2b292e6d17
feat(es): Support type-only import/export specifiers ( #2309 )
2021-09-28 22:05:20 +09:00
Donny/강동윤
b206404d94
feat(css): Recover from invalid properties ( #2312 )
...
swc_css_ast:
- Add `DeclBlockItem`.
- Change `DeclBlock.properties` to `DeclBlock.items`.
swc_css_parser:
- Add a way to recovered errors.
2021-09-28 09:58:56 +00:00
Donny/강동윤
e8a1710a21
fix(es/minifier): Fix bugs ( #2283 )
...
swc_ecma_transforms_optimization:
- `expr_simplifier`: Don't inject `0` needlessly. (#2257 )
2021-09-27 12:05:31 +00:00
Donny/강동윤
650e1494d4
fix: Migrate dependencies ( #2307 )
...
*:
- Migrate from `log` to `tracing`. (#2284 )
- Migrate from `fxhash` to `rustc-hash`.
swc_common:
- Add a cargo feature named `debug`.
2021-09-27 09:19:15 +00:00
Donny/강동윤
e46a842e99
feat(es/parser, es/transform): Implement ergonomic brand checking ( #2079 )
...
swc_ecma_parser:
- Implement parsing of private properties in object literals.
swc_ecma_transforms_base:
- `fixer`: Handle `const [a = (b, c)]`.
swc_ecma_transforms_compat:
- `class_properties`: Support ergonomic brand checks. (#2064 )
swc_ecma_transforms_proposal:
- Implement ergonomic brand checks for private fields. (#2064 )
2021-09-27 08:03:48 +00:00
즈눅
2580f1a372
feat(node/swc): Add a named export for Visitor
( #2291 )
2021-09-26 19:41:22 +09:00
Pig Fang
552fc2374d
fix(es/parser): Improve error message ( #2304 )
...
swc_ecma_parser:
- Improve error message for unexpected tokens.
2021-09-26 01:19:08 +09:00
Pig Fang
83153a0f85
fix(es/parser): Report errors for multiple import/export specifiers without comma ( #2302 )
2021-09-25 23:53:57 +09:00
Donny/강동윤
83d88ce388
chore: Improve docs ( #2301 )
2021-09-24 19:41:01 +09:00
Donny/강동윤
5e1003ec4c
fix(es/transforms/base): Fix hygiene
( #2299 )
...
swc_ecma_transforms_base:
- `hygiene`: Support usage-def conflict where def comes first. (#2297 )
2021-09-24 10:26:01 +00:00
Alexander Akait
8af2173a33
test(css/parser): Add tests for comments in selectors ( #2293 )
2021-09-24 17:09:57 +09:00
Alexander Akait
2a565e8464
test(css/parser): Add tests for @page
at-rule ( #2296 )
2021-09-24 16:12:08 +09:00
Alexander Akait
75c930caf1
fix(css/ast): Fix typo ( #2298 )
2021-09-24 15:48:31 +09:00
Alexander Akait
2f4da9a8ff
fix(css/parser): Fix parsing of !important
( #2286 )
2021-09-23 20:50:16 +09:00
Donny/강동윤
ca0d6ddf2e
fix(es/parser): Fix bugs ( #2255 )
...
swc_ecma_parser:
- Treat `{` after an arrow as a brace stmt. (#2237 )
- Handle comments correctly while backtracking. (#2264 )
2021-09-23 11:32:40 +00:00
Donny/강동윤
1b2e6706bd
fix(swc): Fix simple bugs ( #2292 )
...
swc:
- Ensure that #2154 is not the case. (#2154 )
node_swc:
- Verify `sourceMaps: true` in `.swcrc`. (#2120 , #2194 )
2021-09-23 08:10:12 +00:00
즈눅
4846c32303
fix(node/swc): Allow JsMinifyOptions
type for JscConfig.minify
( #2287 )
2021-09-23 13:44:36 +09:00
즈눅
dd3f18b760
chore: Fix typo ( #2288 )
2021-09-23 13:43:31 +09:00
Pig Fang
e5389700e6
chore: Ignore linguist detection for fixtures ( #2285 )
2021-09-22 19:07:00 +09:00
Donny/강동윤
2156364121
fix(es/transforms/base): Fix hygiene
( #2282 )
...
swc_ecma_transforms_base:
- `hygiene`: Handle decl-ref conflict. (#2211 )
2021-09-22 06:56:04 +00: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
Alexander Akait
b5ad03d0b1
fix(css/parser): Fix parsing of url ( #2280 )
...
swc_css_parser:
- Fix parsing of url values with space.
2021-09-21 23:52:28 +09:00
Pig Fang
4d500baaaa
fix(es/transforms/compat): Move the optional catch binding pass to ES2019 ( #2247 )
...
swc_ecma_transforms_compat:
- Move optional chaining pass to `es2019`.
Co-authored-by: Donny <kdy1997.dev@gmail.com>
2021-09-21 21:54:51 +09:00
Donny/강동윤
180dc31550
fix(es/transforms/base): Fix hygiene
pass ( #2266 )
...
swc_ecma_transforms_base:
- `hygiene`: Consider nested scopes correctly. (#2211 )
- `hygiene`: Fix handling of constructors.
2021-09-21 12:21:49 +00:00
Donny/강동윤
893fb087ae
chore: Add discord server link to README.md
( #2278 )
2021-09-21 08:39:04 +00:00
Alexander Akait
9eb45e8515
fix(css/parser): Allow @at-rules to be lowercased ( #2274 )
...
swc_css_parser:
- Allow lowercase for @at-rules.
2021-09-21 16:55:46 +09:00
Fábio Santos
3f306f0b79
fix(es/minifier): Don't drop used variables ( #2272 )
...
swc_ecma_minifier:
- Don't drop used variables. (#2262 )
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2021-09-21 16:45:28 +09:00
Fábio Santos
406fa3fc78
feat(es/minifier): Add CLI for debugging ( #2273 )
...
swc_ecma_minifier:
- Add a binary to help development.
2021-09-20 15:25:51 +09:00
Heyang Zhou
b82702cf0f
fix(swc): Remove global side effects for rust users. ( #2270 )
...
swc:
- Don't enable `log/release_max_level_info`.
- Don't depend on `swc_node_base`.
2021-09-19 17:05:36 +09:00
David Sherret
8e0a5450b1
fix(es/codegen): Emit static
before readonly
( #2271 )
2021-09-19 16:28:33 +09:00
강동윤
ce01b8a9b7
fix(es): Fix bugs ( #2256 )
...
swc_ecma_codegen:
- Fix source map of string literals. (#2253 )
swc_ecma_transforms_typescript:
- Allow using same name for a module with function. (#2243 )
2021-09-18 07:52:08 +00:00
강동윤
f087d1515b
fix(es/transforms/testing): Fix comparing logic ( #2263 )
...
swc_ecma_transform_testing:
- Fix comparing logic.
2021-09-16 20:21:09 +09:00
강동윤
e2d8465565
fix(es/codegen): Fix codegen of ` in synthesized template literals ( #2260 )
...
swc_ecma_codegen:
- Fix codegen of ` in synthesized template string literals.
2021-09-16 09:26:02 +00:00
강동윤
20ce326909
feat(es/minifer): Improve minifier ( #2229 )
...
swc_ecma_minifier:
- `if_return`: Allow side-effect-free statements to come after `if_return`.
- `collapse_vars`: Move variables without init to first.
- `analyzer`: Remove useless fields.
- Don't drop `return` tokens if there's a finally block.
- `drop_return_value`: Drop side-effect-free return arguments.
- `make_sequences`: Don't inject `void 0` to return args.
- `if_terminate`: Move to the pure optimizer.
- Fix a bug related to `RegExp`.
2021-09-16 04:23:33 +00:00
강동윤
ff389ca8d2
chore: Add a link to github sponers
2021-09-15 18:05:53 +09:00
강동윤
6f33c327cb
fix(es/transforms): Fix bugs ( #2249 )
...
swc_ecma_transforms_compat:
- Fix `this` in class properties. (#2228 )
swc_ecma_transforms_typescript:
- Handle `import =` correctly. (#2234 )
- Ensure that #1653 is not the case anymore. (#1653 )
swc:
- Ensure that #2232 is not the case. (#2232 )
2021-09-15 07:46:03 +00:00
강동윤
cab37f8166
fix(ci): Publish ( #2250 )
2021-09-15 01:38:50 +09:00
강동윤
48d61039d2
fix(common, node/swc): Allow inlining sourcesContent
( #2245 )
...
swc_common:
- Allow setting `sourceContents` of source map files. (#2218 )
swc:
- Support `inlineSourceContents`. (#2244 )
2021-09-14 02:31:32 +00:00
Iron Lu
4ca85ec79c
feat(node/swc): Enable tsx automatically based on the extension ( #2230 )
2021-09-14 10:47:53 +09:00
Iron Lu
6e12ef0306
fix(es/transforms/compat): Add new.target
to es5
( #2231 )
2021-09-13 15:51:17 +09:00
강동윤
f78a504806
fix(ci): Publish v1.2.86 ( #2235 )
2021-09-11 09:36:06 +00:00
강동윤
9eafd0c6c4
fix(es/loader): Fix support for jsc.paths
. ( #2227 )
...
swc_ecma_loader:
- `TsConfigResolver`: Use `baseUrl`. (#2050 )
swc:
- Change type of `JscConfig.base_url` to `PathBuf`.
testing:
- Improve `NormalizedOutput::compare_to_file`.
2021-09-10 12:29:26 +00:00