walkerburgin

Results 18 comments of walkerburgin

We lost an hour to this today

Friendly ping -- is this something you'd be open to a PR for?

Another dot in favor of the `terser` CLI supporting this natively is performance. Invoking the CLI for each file via something like `xargs` incurs the overhead of starting node and...

> Is it not simply the use of plugins that makes it so slow? I don't think so. The plugin we're using (`@formatjs/swc-plugin-experimental`) and the `@swc/plugin-noop` plugin are both compiled...

I think SWC is using `wasmer`'s `FileSystemCache` ([here](https://github.com/swc-project/swc/blob/b22d7ee3ab8ee0a6dd521298237c42633137c633/crates/swc_plugin_runner/src/cache.rs#L239)), which looks like it fails if the directory is read only ([here](https://github.com/wasmerio/wasmer/blob/6e0d552180e91f46a5bf10ca0e4251384365d4bb/lib/cache/src/filesystem.rs#L51-L55))?

Running this in https://github.com/walkerburgin/rules_swc-plugin-cache-repro seems to confirm the theory: ```bash ➜ hyperfine --runs 5 --prepare 'bazel clean' 'bazel build //...' Benchmark 1: bazel build //... Time (mean ± σ): 26.402...

Adding `build --experimental_writable_outputs` to our `.bazelrc` for local builds alleviated the immediate pain and I've been focused on other things 😰 . I think the right way to fix this...

Narrowing the dependency definitely lessens the impact (I was being lazy and over-declaring the dependency), but it still seems wrong to me. I'm struggling to think of why a dependency...

Hrmm, I'm not sure I follow. We put project references in `tsconfig.json` so that type checking in the IDE will work out of the box (I updated the repo to...

This is almost related in that it's a slightly more legitimate reason to have `ts_config()` deps: https://github.com/aspect-build/rules_ts/issues/757