@sundaeswap/babel-preset
TypeScript icon, indicating that this package has built-in type declarations

2.0.15 • Public • Published

babel-preset

This exports default preset configurations for dealing with modern ESM and TypeScript.

Installation

To install, run the following in your project root:

bun run add @sundaeswap/babel-preset -D

Within your .babelrc file, extend this config via:

{
  "presets": ["@sundaeswap/babel-preset"]
}

In your package.json file, use the following build scripts (replace bun run with your package manager of choice):

{
  "scripts": {
    "build": "bun run clean && bun run types && bun run build:esm && bun run build:cjs && bun run set-cjs",
    "build:esm": "cross-env BABEL_ENV=esmUnbundled babel src --extensions '.ts' --out-dir './dist/esm' --source-maps",
    "build:cjs": "cross-env BABEL_ENV=cjs babel src --extensions '.ts' --out-dir 'dist/cjs' --source-maps",
    "types": "tsc --project ./tsconfig.json"
  }
}

/@sundaeswap/babel-preset/

    Package Sidebar

    Install

    npm i @sundaeswap/babel-preset

    Weekly Downloads

    115

    Version

    2.0.15

    License

    none

    Unpacked Size

    9.98 kB

    Total Files

    11

    Last publish

    Collaborators

    • pi.lanningham
    • selvio
    • wasddd
    • cjkoepke