Nostalgic Primordial Monster

    @drieam/jest-transform-sucrase-vite
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    @drieam/jest-transform-sucrase-vite

    Use Sucrase as Jest transformation instead of the default babel-jest. It will also transform Vite's env variables.

    Installation

    Install as development dependency:

    $ yarn add -D @drieam/jest-transform-sucrase-vite
    

    Usage

    Set @drieam/jest-transform-sucrase-vite as the transformer for JavaScript/Typescript code in your Jest config:

    "transform": {
      "\\.[jt]sx?$": "@drieam/jest-transform-sucrase-vite"
    },
    

    Keywords

    none

    Install

    npm i @drieam/jest-transform-sucrase-vite

    DownloadsWeekly Downloads

    225

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    224 kB

    Total Files

    9

    Last publish

    Collaborators

    • stef.schenkelaars
    • hbarrientosg
    • drieambot
    • ellya
    • martijnpieters