Replies: 2 comments
-
I love this idea. We can add |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'll start some work on the rust side for non-breaking changes to support these. Can slowly migrate things over @swc/cli for v2 and beyond once we have it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
This proposal attempts to describe proposals for potential changes to
@swc/cli
's entrypoint.Currently,
@swc/cli
offers differently named entrypoint for individual features.swc
is for the main transpiler,spack
(to be renamed toswcpack
in v2) is for the bundler.Instead of adding each entrypoint name for the each features, I'd like to propose consolidate
swc
as single entrypoint for any cli command execution. Each features can be represented as subcommand instead. Think howgit
works with its subcommand.Illustrated example
All of subcommands are pseudo, subject to change and only being used for example illustration.
For easier migration, V2 will prints out deprecated warning and forward args to
swc compile
. V3 will actually deprecate code paths to let top-level invocation for the compilation.Pros
Cons
Beta Was this translation helpful? Give feedback.
All reactions