@babel/preset-env
- Version 8.0.2
- Published
- 246 kB
- 65 dependencies
- MIT license
Install
npm i @babel/preset-envyarn add @babel/preset-envpnpm add @babel/preset-envOverview
A Babel preset for each environment.
Index
Variables
Functions
Type Aliases
Variables
variable ModulesOption
const ModulesOption: { readonly false: false; readonly auto: 'auto'; readonly amd: 'amd'; readonly commonjs: 'commonjs'; readonly cjs: 'cjs'; readonly systemjs: 'systemjs'; readonly umd: 'umd';};Functions
function _default
_default: ( api: PresetAPI, options: Options, dirname: string) => _babel_core.PresetObject;function isPluginRequired
isPluginRequired: (targets: Targets, support: Targets) => void;Deprecated
Use
isRequiredfrom@babel/helper-compilation-targetsinstead.
function transformIncludesAndExcludes
transformIncludesAndExcludes: (opts: string[]) => any;Type Aliases
type Options
type Options = { configPath?: string; debug?: boolean; exclude?: PluginListOption; forceAllTransforms?: boolean; ignoreBrowserslistConfig?: boolean; include?: PluginListOption; modules?: ModuleOption; shippedProposals?: boolean; targets?: { esmodules?: boolean; } & InputTargets; browserslistEnv?: string;};Package Files (1)
Dependencies (65)
- @babel/compat-data
- @babel/helper-compilation-targets
- @babel/helper-plugin-utils
- @babel/helper-validator-option
- @babel/plugin-bugfix-firefox-class-in-computed-class-key
- @babel/plugin-bugfix-safari-class-field-initializer-scope
- @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression
- @babel/plugin-bugfix-safari-rest-destructuring-rhs-array
- @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining
- @babel/plugin-bugfix-v8-static-class-fields-redefine-readonly
- @babel/plugin-transform-arrow-functions
- @babel/plugin-transform-async-generator-functions
- @babel/plugin-transform-async-to-generator
- @babel/plugin-transform-block-scoped-functions
- @babel/plugin-transform-block-scoping
- @babel/plugin-transform-class-properties
- @babel/plugin-transform-class-static-block
- @babel/plugin-transform-classes
- @babel/plugin-transform-computed-properties
- @babel/plugin-transform-destructuring
- @babel/plugin-transform-dotall-regex
- @babel/plugin-transform-duplicate-keys
- @babel/plugin-transform-duplicate-named-capturing-groups-regex
- @babel/plugin-transform-dynamic-import
- @babel/plugin-transform-explicit-resource-management
- @babel/plugin-transform-exponentiation-operator
- @babel/plugin-transform-export-namespace-from
- @babel/plugin-transform-for-of
- @babel/plugin-transform-function-name
- @babel/plugin-transform-json-strings
- @babel/plugin-transform-literals
- @babel/plugin-transform-logical-assignment-operators
- @babel/plugin-transform-member-expression-literals
- @babel/plugin-transform-modules-amd
- @babel/plugin-transform-modules-commonjs
- @babel/plugin-transform-modules-systemjs
- @babel/plugin-transform-modules-umd
- @babel/plugin-transform-named-capturing-groups-regex
- @babel/plugin-transform-new-target
- @babel/plugin-transform-nullish-coalescing-operator
- @babel/plugin-transform-numeric-separator
- @babel/plugin-transform-object-rest-spread
- @babel/plugin-transform-object-super
- @babel/plugin-transform-optional-catch-binding
- @babel/plugin-transform-optional-chaining
- @babel/plugin-transform-parameters
- @babel/plugin-transform-private-methods
- @babel/plugin-transform-private-property-in-object
- @babel/plugin-transform-property-literals
- @babel/plugin-transform-regenerator
- @babel/plugin-transform-regexp-modifiers
- @babel/plugin-transform-reserved-words
- @babel/plugin-transform-shorthand-properties
- @babel/plugin-transform-spread
- @babel/plugin-transform-sticky-regex
- @babel/plugin-transform-template-literals
- @babel/plugin-transform-typeof-symbol
- @babel/plugin-transform-unicode-escapes
- @babel/plugin-transform-unicode-property-regex
- @babel/plugin-transform-unicode-regex
- @babel/plugin-transform-unicode-sets-regex
- @babel/preset-modules
- babel-plugin-polyfill-corejs3
- core-js-compat
- semver
Dev Dependencies (4)
Peer Dependencies (1)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@babel/preset-env.
- Markdown[](https://www.jsdocs.io/package/@babel/preset-env)
- HTML<a href="https://www.jsdocs.io/package/@babel/preset-env"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3060 ms. - Missing or incorrect documentation? Open an issue for this package.
