2.0.15 • Published 2 years ago

@sundaeswap/babel-preset v2.0.15

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

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"
  }
}
2.0.15

2 years ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.11

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago