1 | # @alifd/babel-preset-next
|
2 | A babel preset for Next Component.
|
3 |
|
4 | [![npm package](https://img.shields.io/npm/v/@alifd/babel-preset-next.svg?style=flat-square)](https://www.npmjs.org/package/@alifd/babel-preset-next)
|
5 |
|
6 | ## Install
|
7 |
|
8 | ```
|
9 | npm install @alifd/babel-preset-next --save-dev
|
10 | ```
|
11 |
|
12 | ## Presets & Plugins
|
13 |
|
14 | * babel-preset-react
|
15 | * babel-preset-env
|
16 | * babel-preset-stage-0
|
17 | * babel-plugin-transform-decorators-legacy
|
18 | * babel-plugin-transform-object-assign
|
19 | * babel-plugin-transform-react-es6-displayname
|
20 | * babel-plugin-add-module-exports
|
21 | * babel-plugin-transform-proto-to-assign
|
22 | * babel-plugin-transform-runtime
|
23 |
|
24 | ## Options
|
25 | * modules: from [babel-preset-env](https://github.com/babel/babel-preset-env#modules), if not set it, will append [babel-plugin-add-module-exports](https://github.com/59naga/babel-plugin-add-module-exports) to preset
|
26 | * runtime: whether or not use [babel-plugin-transform-runtime](https://babeljs.io/docs/plugins/transform-runtime/), default value is false
|