Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Build & publish type declarations #110

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

sufian-slack
Copy link
Contributor

Hey there, we've instrumented our jest build phases so that we're collecting performance metrics around compilation. To do this, we augment the transform returned by transformSync.

By publishing the types of this package, this wrapping code can be written in typescript without adding some global declarations for @swc/jest:

i.e. we do something like this:

import { createTransformer } from '@swc/jest';
export function createTransformer() {
  const swcTransformer = createTransformer();
  return { ... /* use swcTransformer */ ... };
}

@CLAassistant
Copy link

CLAassistant commented Jun 27, 2022

CLA assistant check
All committers have signed the CLA.

@kdy1 kdy1 changed the title Build & publish type declarations feat: Build & publish type declarations Feb 1, 2024
@kdy1 kdy1 merged commit 08803e7 into swc-project:master Feb 1, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants