10.0.2-canary.20 • Published 4 years ago

babel-preset-nextjs v10.0.2-canary.20

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Transpile Javascript, Typescript codes using the next/babel preset extracted from Next.js source code.

Some other alternative:

  1. next as dev dependency
  2. Yarn
  3. Lerna
  4. next-transpile-modules

Example:

package.json

{
  ...
  "scripts": {
    "build": "babel src -d dist"
  }
}

.babel.config.json

{
  "presets": ["babel-preset-nextjs"]
}