Open MichaelMitchell-at opened 1 week ago
Rebased on the TS upgrade, so this example should be functional now. I'd still like to verify all the actions have expected inputs and outputs, and maybe add an analysis test showing that.
Perhaps out of scope of this PR, but it would be interesting to consider an API similar to https://docs.aspect.build/rulesets/aspect_rules_ts/docs/rules#transpiler to allow specifying a non-tsc decleration emit tool (such as swc)
TypeScript doesn't ship a release yet that calls the new transpileDeclaration
API, and I don't know of another tool that does. Maybe we'll have to cut scope here to just support the part of the feature which verifies your code is ready for isolatedDeclarations
semantics but doesn't actually give the speed improvement yet.
Merged a PR on rules_swc to mirror the newest release that has the declaration emit feature, I'll give it a try...
Changes are visible to end-users: yes
Test plan
isolated_declarations=True
tots_project
.bazel build --build_tag_filters=typing --output_groups=types,typecheck <target>