esbuild-register

    3.3.3 • Public • Published

    esbuild-register

    npm version npm downloads

    Install

    npm i esbuild esbuild-register -D
    # Or Yarn
    yarn add esbuild esbuild-register --dev
    # Or pnpm
    pnpm add esbuild esbuild-register -D

    Usage

    node -r esbuild-register file.ts

    It will use jsxFactory, jsxFragmentFactory and target options from your tsconfig.json

    When using Yarn, you can add an npm script:

    "ts": "node -r esbuild-register"

    to shorten the command, now just run yarn ts file.ts instead.

    Programmatic Usage

    const { register } = require('esbuild-register/dist/node')
    
    const { unregister } = register({
      // ...options
    })
    
    // Unregister the require hook if you don't need it anymore
    unregister()

    Sponsors

    sponsors

    License

    MIT © EGOIST w

    Keywords

    none

    Install

    npm i esbuild-register

    DownloadsWeekly Downloads

    75,233

    Version

    3.3.3

    License

    MIT

    Unpacked Size

    181 kB

    Total Files

    6

    Last publish

    Collaborators

    • egoist