mapping parsed program
SWC in backend
include .js or .mjs files to output
tsx/api/esm
before importing the actual worker file if I'm running project in dev mode, etc.). But swc seems to not include them to output directory. How can I include these files to output directory?...swc not compatible with bun docker
how to start contributing?
Use `swc_ecma_compat_es2017::async_to_generator` for conditional async transformations
async
functions and transforms them to generators for usage with mobx flows. I've gotten reasonably far but came across: https://docs.rs/swc_ecma_compat_es2017/latest/src/swc_ecma_compat_es2017/async_to_generator.rs.html#39-46
This transformation is exactly what i've been aiming for and would make for a far more robust solution, as what i've written so far handles the conditional cases as I expect.
The issue i'm running into is that I'd like to instantiate the AsyncToGenerator
visitor to visit_children_with
it when the conditions are met to perform this transformation, but async_to_generator
returns Pass
which does not satisfy VisitMut
...minify output to gzip
Changelog for minifier
How to handle the execution order of WASM plugins
externalHelpers
, env.targets
, ...) are processed after all plugins have completed execution.
For example, if I want a plugin to execute after the externalHelpers
transformation, is there any approach I can try?...Comments not going on new lines always
How can keep css comments after codegen?
Some(&comments)
, but it deletes the comments
```rust...How to set "paramtypes" metadata in Javascript?
Encountering SIGBUS intermittently
@swc/jest
:
```
β Test suite failed to run...Any examples of maintaining same plugin for babel and swc?
Emitter in SWC does not add expected space after '=>' in Arrow Functions
Does SWC remove comments in the code when transforming a JS file's AST and converting it back to a c
Compile .node DSO on freebsd
Parsing error
1:1 line number mapping
how to migrate from visit_mut_with to Pass?