diff options
author | tdro <tdro@users.noreply.github.com> | 2023-09-02 19:48:47 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2023-09-02 19:48:47 -0400 |
commit | 458230d9b030e685b3720e5f37f8d32a144eb70c (patch) | |
tree | 17bd2a9a8d47b0764876cd71c985513f68c7865c | |
parent | e218d1f14cc1f283aa582c38474f8c6b8b662cd4 (diff) | |
download | dotfiles-458230d9b030e685b3720e5f37f8d32a144eb70c.tar.gz dotfiles-458230d9b030e685b3720e5f37f8d32a144eb70c.tar.bz2 dotfiles-458230d9b030e685b3720e5f37f8d32a144eb70c.zip |
.local/bin/wrappers: Add swc
-rw-r--r-- | .config/swc/swc.json | 23 | ||||
-rwxr-xr-x | .local/bin/wrappers/swc | 2 |
2 files changed, 25 insertions, 0 deletions
diff --git a/.config/swc/swc.json b/.config/swc/swc.json new file mode 100644 index 0000000..2f3bfc6 --- /dev/null +++ b/.config/swc/swc.json @@ -0,0 +1,23 @@ +{ + "jsc": { + "parser": { + "syntax": "ecmascript", + "jsx": false, + "dynamicImport": false, + "privateMethod": false, + "functionBind": false, + "exportDefaultFrom": false, + "exportNamespaceFrom": false, + "decorators": false, + "decoratorsBeforeExport": false, + "topLevelAwait": false, + "importMeta": false, + "preserveAllComments": false + }, + "target": "es3", + "loose": false, + "externalHelpers": false, + "keepClassNames": false + }, + "isModule": false +}
\ No newline at end of file diff --git a/.local/bin/wrappers/swc b/.local/bin/wrappers/swc new file mode 100755 index 0000000..c352781 --- /dev/null +++ b/.local/bin/wrappers/swc @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which swc --all | grep --invert-match "local/bin" | head --lines 1) "$@" --config-file "$HOME/.config/swc/swc.json" |