Skip to content

Commit b43e0b1

Browse files
adambrgmnswashata
authored andcommitted
docs(babel): Add docs about transform-runtime
1 parent 6941288 commit b43e0b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/babel-preset-base/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ be loaded by default, but you can disable it through options.
7272
- `@babel/plugin-syntax-import-meta`
7373
- `@babel/plugin-proposal-class-properties` - with option `{ "loose": false }`.
7474
- `@babel/plugin-proposal-json-strings`
75+
- `@babel/plugin-transform-runtime` - with options `{corejs: false, helpers: true, regenerator: true, useESModules: true }`
7576

7677
`@wpackio/babel-preset-base` can be configured to select which `stage-3` plugins to
7778
exclude.
@@ -122,6 +123,12 @@ Set to `true` to disable [`@babel/plugin-proposal-class-properties`](https://bab
122123

123124
Set to `true` to disable [`@babel/plugin-proposal-json-strings`](https://babeljs.io/docs/en/babel-plugin-proposal-json-strings).
124125

126+
#### `noRuntime`
127+
128+
`boolean`, defaults to false.
129+
130+
Set to `true` to disable [`@babel/plugin-transform-runtime`](https://babeljs.io/docs/en/babel-plugin-transform-runtime).
131+
125132
#### `presetEnv` Options for `@babel/preset-env`
126133

127134
`object`, defaults to `{}`.

0 commit comments

Comments
 (0)