Donny/강동윤
1c6fe35313
chore: Publish v1.3.26
( #6787 )
2023-01-11 08:40:40 +00:00
Alexander Akait
08a9e21b36
feat(es/codegen): Skip whitespaces for comments in minify mode ( #6465 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-11-20 10:03:26 +00:00
Donny/강동윤
05d185d59b
fix(es/modules): Fix jsc.paths
( #6454 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6446 .
2022-11-16 04:51:59 +00:00
Daiki Nishikawa
f6faeb3bad
fix(es/parser): Fix parsing of TS satisfies
expressions ( #6354 )
2022-11-07 03:56:15 +00:00
Donny/강동윤
de036754c4
test(es/preset-env): Ensure custom transforms are working ( #6227 )
...
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5052
2022-10-21 07:53:45 +00:00
Donny/강동윤
e9f4f4eb06
chore: Publish v1.3.1
( #5854 )
2022-09-14 17:24:15 +09:00
Donny/강동윤
6fde98217b
chore: Publish v1.2.249
( #5782 )
2022-09-08 16:17:11 +09:00
Donny/강동윤
46aa86f5f8
chore: Publish v1.2.245
2022-08-30 13:01:04 +09:00
Donny/강동윤
3943eb24d1
feat(es/minifier): Consider char frequencies ( #5375 )
2022-08-03 10:20:17 +00:00
Donny/강동윤
27cdc65a51
fix(es/minifier): Drop more comments ( #5361 )
2022-08-02 04:24:24 +00:00
Donny/강동윤
14894ed4c9
fix(atoms): Workaround a bug of rkyv
( #5323 )
2022-07-28 11:41:15 +09:00
Donny/강동윤
ff949b0bc7
chore(ci): Disable some tests
2022-07-14 20:01:35 +09:00
HeYunfei
1ef541eec4
feat(es/codegen): Emit comments in emit_module
( #5132 )
2022-07-12 15:23:24 +00:00
magic-akari
4d5783d9cd
feat(es/modules): Add pure annotations to interop functions ( #5087 )
2022-07-03 05:54:07 +00:00
magic-akari
9e162dcbae
fix(es/modules): Improve compatibility with cjs lexer ( #5080 )
2022-07-01 08:37:04 +00:00
magic-akari
2cc229e6fb
feat(es/modules): Optimize a dynamic import with a literal path ( #5049 )
2022-06-28 06:31:24 +00:00
magic-akari
fa68cbd74a
refactor(es/module): Implement new module transformer ( #4758 )
2022-06-27 12:32:06 +00:00
Donny/강동윤
c31b0a38ea
chore(ci): Fix CI ( #4779 )
2022-05-24 23:39:08 +09:00
Donny/강동윤
b8d2fb8546
feat(es/helpers): Import only used helpers ( #4767 )
2022-05-24 04:09:59 +00:00
Donny/강동윤
417b2182ce
fix(es/loader): Fix jsc.paths
on windows ( #4739 )
2022-05-22 20:12:22 +00:00
Donny/강동윤
9966e98ac6
fix(es/config): Respect .swcrc
( #4735 )
2022-05-21 23:18:43 +09:00
Donny/강동윤
ad309f4050
fix(es/config): Auto-detect tsx
( #4696 )
2022-05-18 10:21:45 +00:00
Donny/강동윤
53ff81ccd6
test(es): Add a test for merging configurations ( #4617 )
2022-05-11 07:08:52 +00:00
Donny/강동윤
3b2b8c4512
fix(es/config): Merge jsc.transform
correctly ( #4615 )
2022-05-11 14:28:40 +09:00
Donny/강동윤
c68dec9448
chore: Publish v1.2.181
2022-05-10 04:52:51 +09:00
Donny/강동윤
7fc9bbccd9
feat(config): Make all configuration overridable ( #4575 )
2022-05-09 05:38:27 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting ( #4304 )
2022-04-11 18:45:58 +00:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw
to Num
( #4245 )
2022-04-05 12:46:35 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw
to Str
( #4071 )
2022-03-22 07:54:08 +00:00
Alexander Akait
bd444c0ceb
fix(es/codegen): Fix codegen of string literals ( #4037 )
2022-03-16 14:25:26 +00:00
Donny/강동윤
834cd4f7b6
fix(es/modules): Use correct span for ExportAll
s ( #4038 )
2022-03-16 17:10:47 +09:00
Donny/강동윤
48f2fd8e1b
fix(es): Change error message as it can be misleading ( #3982 )
2022-03-12 14:32:00 +09:00
David Campion
c5a0c9a0ab
feat(es): Add an option to preserve all comments ( #3815 )
2022-03-11 07:25:59 +00:00
Donny
e19fe7d33b
chore(ci): Remove redudant plugin test
2022-01-06 18:01:08 +09:00
Donny/강동윤
91ef3cc16e
feat(plugin): Enable plugin support under experimental flag ( #2894 )
...
swc_plugin_runner:
- Add plugin resolver.
- Implement cache for resolver.
- Add some integration tests.
swc:
- Add a cargo feature named `plugin`.
- Add an experimental option for plugins.
node:
- Enable `plugin`.
- Add some integration tests.
2021-11-28 17:02:14 +09:00
Sven
65d376a91b
feat(swc): Add IsModule
( #2601 )
...
swc:
- Allow parsing input as a `Program`. (Closes #2541 )
2021-11-16 10:31:02 +00:00
Donny/강동윤
3dc1e765e9
feat(swc): Provide &Program
to pass creator ( #2665 )
...
swc:
- Use `impl |prorgram: &Program| -> impl Fold` instead of `impl Fold`. (Closes https://github.com/swc-project/swc/issues/2664 )
2021-11-06 18:05:10 +09:00
LongYinan
1a659d3214
ci: Sync to latest napi workflow ( #2592 )
2021-10-31 10:04:18 +09:00
Donny/강동윤
8494f6583c
fix(swc): Allow overriding specified parser config using .swcrc
( #2547 )
...
swc:
- Merge parser config by enabling each feature. (#2546 )
2021-10-26 22:39:06 +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
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
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/강동윤
9ba68c6863
fix(common): Fix sourcemap ( #2457 )
...
swc_common:
- Include the index to the name in `mappings` of a sourcemap.
swc:
- Fix handling of `inputSourceMap`.
2021-10-18 06:43:59 +00:00
Donny/강동윤
98cc79a2be
fix(es/minifer): Fix bugs ( #2397 )
...
swc_ecma_codegen:
- Fix sourcemap of `export` tokens.
- Fix codegen of numeric operands in left of a binary expression.
- Fix codegen of unary operations.
swc_ecma_minifier:
- Visit `AssignPatProp.valie`.
- Move `inline_prevented` to analyzer.
- Add `Ctx.dont_invoke_iife`.
- `iife`: Check for `arugments`
swc:
- `inline_sources_content`: true by default for `minify()`.
2021-10-11 07:44:42 +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
강동윤
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
강동윤
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
강동윤
cb2b0c671f
fix(es/transforms/base): Optimize hygiene
( #2193 )
...
swc_ecma_transforms_base:
- `hygiene`: Don't rename if not required. (#1600 )
swc_ecma_minifier:
- Remove `hygiene_optimizer`.
2021-09-01 13:11:55 +00:00
강동윤
d975a197c9
fix(es): Fix source map ( #2159 )
...
swc:
- Fill `names` of sourcemap.
- Don't add `sourceContents` to sourcemap if `sources` is added.
node_swc:
- Handle source map for `minify` correctly.
- `minify`: Accept `{ filename: code }`.
2021-08-26 10:44:38 +00:00