Faster ts-node without typecheck
Performance profiling made simple
Monolithic repository management for the rust programming language.
My own commons library for flutter.
[Unofficial] Algolia is a pure dart SDK, wrapped around Algolia REST API for easy implementation for your Flutter or Dart projects.
A secure JavaScript and TypeScript runtime
Blazing fast linter for JavaScript and TypeScript written in Rust
issue openedswc-project/swc
bug: can't parse abstract class
<!-- If you are using swc at work, please considering adding your company to https://swc.rs/users/ If then, your issue will be fixed more quickly. -->
Input code
export abstract class AbstractProviderDeliveryService {
}
Describe the bug
❯ npx swc src -s -d ./dist
error: Expected {, got abstract
--> src/modules/delivery/provider/AbstractProviderDeliveryService.ts:73:8
|
73 | export abstract class AbstractProviderDeliveryService {
| ^^^^^^^^
failed to process js file
Caused by:
failed to parse module
Successfully compiled 188 files with swc.
Error: Failed to compile 1 file with swc.
at Object.assertCompilationResult (node_modules/@swc/cli/lib/swc/util.js:152:15)
at default_1 (node_modules/@swc/cli/lib/swc/dir.js:137:14)
Config
{
"test": ".*.ts$",
"sourceMaps": true,
"jsc": {
"loose": true,
"target": "es2018",
"parser": {
"syntax": "typescript",
"tsx": false,
"decorators": true,
"dynamicImport": true
},
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
}
},
"module": {
"type": "commonjs",
"strict": true,
"strictMode": false,
"lazy": false,
"noInterop": false
}
}
Expected behavior Should be parsed without error
Version The version of @swc/core: 1.2.50 The version of @swc/cli: 0.1.35
created time in 19 hours
startedkdy1/rweb
started time in a day
startedkdy1/rweb
started time in 2 days
issue commentswc-project/swc
design:type wrong for enum values
Compiling one by one is always a compromise for babel. If swc aims to work the same way as tsc then why not. Shouldn't swc eventually become a full feature drop in replacement?
comment created time in 2 days
issue commentswc-project/swc
design:type wrong for enum values
Is includeDeps
equivalent to isolatedModules
?
comment created time in 2 days
issue commentswc-project/swc
design:type wrong for enum values
@kdy1 We're not using spack. Our setup is fairly simple so using only the CLI is enough for us. I guess it would be acceptable for you to require people to use your bundler in order to achieve such things as long as it's clearly stated in the documentation.
The deps flag / includeDeps option would be awesome. I'm just wondering if it should be enabled by default.
comment created time in 2 days
push eventkdy1/kdy1
commit sha 55d363724b5c015da58dd98de9835ddea599dc8b
chore: autopublish 2021-03-04T05:47:48Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 2 days
push eventkdy1/kdy1
commit sha 9bbb853c6665a400efc45525dfefde29dfdb3e48
chore: autopublish 2021-03-04T04:56:56Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 2 days
issue openedswc-project/swc
`async foo => 0` minifies to `asyncfoo=>0`
Describe the bug
Swc's minifier appears to omit the space after the async
keyword of an arrow function.
swc.transformSync('async foo => 0', {minify: true, jsc: {target: 'es2018'}})
Input code
Here is my reproduction using the @swc/core JS API on node:
swc.transformSync('async foo => 0', {minify: true, jsc: {target: 'es2018'}})
// {code: 'asyncfoo=>0'}
Config
Run without an .swcrc
Expected behavior
Minified output has the necessary space:
async foo=>0
Version The version of @swc/core: 1.2.50
Additional context
created time in 2 days
push eventkdy1/kdy1
commit sha 8746de6ec3bf339b235e67e321aeba7b43cf0b4a
chore: autopublish 2021-03-04T03:53:06Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 2 days
push eventkdy1/kdy1
commit sha e1cd4ff3281017977c899458afa3906b708cbf0e
chore: autopublish 2021-03-04T02:54:29Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 2 days
push eventkdy1/kdy1
commit sha 4a005b8e93ca45ed601b601ad393d3187b423f92
chore: autopublish 2021-03-04T02:12:12Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 2 days
push eventkdy1/kdy1
commit sha ec3d56d4c1e67451fc164411932b36f36d372ec0
chore: autopublish 2021-03-04T01:28:02Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 2 days
push eventkdy1/kdy1
commit sha 82bdd0beb963f047c9d87aef514d2c3eaf4d2edc
chore: autopublish 2021-03-03T23:53:31Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha afc1163e22b813544715492a277776d98afde390
chore: autopublish 2021-03-03T22:53:13Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha 44626c9110ceab73a5e5a1fd3c1357ce1eadb326
chore: autopublish 2021-03-03T21:50:43Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha c94dea4e560a943ab26a8ddab541bc224d9acf6b
chore: autopublish 2021-03-03T20:48:47Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha ac2b5d010fbf1bd35ce658123cfd8a1b87a7875b
chore: autopublish 2021-03-03T19:46:46Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha 41b7be2b00c8f2479f748bcb44a02d92291494e6
chore: autopublish 2021-03-03T18:59:23Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha a521d65b9bfc782c965a0c17119a2b11772f0b2b
chore: autopublish 2021-03-03T18:07:20Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha e591cd61a9084bdcba52795891e310168272b2b0
chore: autopublish 2021-03-03T17:26:51Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha a6e2e58b3401c666e4f3c0b164ec5adb7d3ff3f9
chore: autopublish 2021-03-03T15:57:36Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha df96990ccda13a06d3bac13b5fa2e9c3be635982
chore: autopublish 2021-03-03T14:53:25Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha fefcc77b05b5d37ec232de6a76f5a916b70964d5
chore: autopublish 2021-03-03T13:47:18Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha ca3e7304a6062a95e78bd39df6f325a8db1ba9bd
chore: autopublish 2021-03-03T13:06:22Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha 8c182c7f9d24be6458e8e935e76170a9e2f9a85d
chore: autopublish 2021-03-03T11:51:24Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha ecbbeef00752a271534424574050103c3bfd4b48
chore: autopublish 2021-03-03T10:57:24Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha d2c79414dcb54ff75d22d57561aa286d26ee9c1d
chore: autopublish 2021-03-03T09:52:55Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days
push eventkdy1/kdy1
commit sha 07c4377b9499b9c74f5931bd1a1988d70f460bac
chore: autopublish 2021-03-03T08:54:11Z Co-authored-by: 강동윤 <kdy1997.dev+github+profile@gmail.com>
push time in 3 days