2.0.15 • Published 1 year ago

@sundaeswap/babel-preset v2.0.15

Weekly downloads
-
License
-
Repository
github
Last release
1 year 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

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago