10.0.2-canary.20 • Published 4 years ago
babel-preset-nextjs v10.0.2-canary.20
Transpile Javascript, Typescript codes using the next/babel
preset extracted from Next.js source code.
Some other alternative:
- next as dev dependency
- Yarn
- Lerna
- next-transpile-modules
Example:
package.json
{
...
"scripts": {
"build": "babel src -d dist"
}
}
.babel.config.json
{
"presets": ["babel-preset-nextjs"]
}
10.0.2-canary.20
4 years ago