@babel/standalone
- Version 8.0.5
- Published
- 31.5 MB
- 3 dependencies
- MIT license
Install
npm i @babel/standaloneyarn add @babel/standalonepnpm add @babel/standaloneOverview
Standalone build of Babel for use in non-Node.js environments.
Index
Variables
variable availablePlugins
const availablePlugins: Record<string, any>;variable availablePresets
const availablePresets: Record< | 'env' | 'es2015' | 'es2016' | 'es2017' | 'react' | 'stage-0' | 'stage-1' | 'stage-2' | 'stage-3' | 'es2015-loose' | 'es2015-no-commonjs' | 'typescript' | 'flow', any>;variable buildExternalHelpers
const buildExternalHelpers: any;variable version
const version: string;Functions
function disableScriptTags
disableScriptTags: () => void;Disables automatic transformation of tags with "text/babel" type.
function registerPlugin
registerPlugin: (name: string, plugin: () => PluginObject) => void;Registers a named plugin for use with Babel.
function registerPlugins
registerPlugins: (newPlugins: Record<string, () => PluginObject>) => void;Registers multiple plugins for use with Babel.
newPluginsshould be an object where the key is the name of the plugin, and the value is the plugin itself.
function registerPreset
registerPreset: (name: string, preset: () => PresetObject) => void;Registers a named preset for use with Babel.
function registerPresets
registerPresets: (newPresets: Record<string, () => PresetObject>) => void;Registers multiple presets for use with Babel.
newPresetsshould be an object where the key is the name of the preset, and the value is the preset itself.
function transform
transform: (code: string, options: InputOptions) => FileResult | null;function transformAsync
transformAsync: ( code: string, options: InputOptions) => Promise<FileResult | null>;function transformFromAst
transformFromAst: ( ast: Parameters<typeof transformFromAstSync>[0], code: string, options: InputOptions) => FileResult | null;function transformFromAstAsync
transformFromAstAsync: ( ast: Parameters<typeof transformFromAstAsync$1>[0], code: string, options: InputOptions) => Promise<FileResult | null>;function transformScriptTags
transformScriptTags: (scriptTags?: HTMLCollectionOf<HTMLScriptElement>) => void;Transform tags with "text/babel" type.
Parameter scriptTags
specify script tags to transform, transform all in the if not given
Namespaces
namespace packages
namespace packages {}Package Files (1)
Dependencies (3)
Dev Dependencies (97)
- @babel/plugin-external-helpers
- @babel/plugin-proposal-decorators
- @babel/plugin-proposal-destructuring-private
- @babel/plugin-proposal-do-expressions
- @babel/plugin-proposal-export-default-from
- @babel/plugin-proposal-function-bind
- @babel/plugin-proposal-function-sent
- @babel/plugin-proposal-import-defer
- @babel/plugin-proposal-optional-chaining-assign
- @babel/plugin-proposal-pipeline-operator
- @babel/plugin-proposal-throw-expressions
- @babel/plugin-syntax-decorators
- @babel/plugin-syntax-destructuring-private
- @babel/plugin-syntax-do-expressions
- @babel/plugin-syntax-export-default-from
- @babel/plugin-syntax-flow
- @babel/plugin-syntax-function-bind
- @babel/plugin-syntax-function-sent
- @babel/plugin-syntax-jsx
- @babel/plugin-syntax-module-blocks
- @babel/plugin-syntax-optional-chaining-assign
- @babel/plugin-syntax-pipeline-operator
- @babel/plugin-syntax-typescript
- @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-flow-comments
- @babel/plugin-transform-flow-strip-types
- @babel/plugin-transform-for-of
- @babel/plugin-transform-function-name
- @babel/plugin-transform-instanceof
- @babel/plugin-transform-jscript
- @babel/plugin-transform-json-modules
- @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-proto-to-assign
- @babel/plugin-transform-react-constant-elements
- @babel/plugin-transform-react-display-name
- @babel/plugin-transform-react-inline-elements
- @babel/plugin-transform-react-jsx
- @babel/plugin-transform-react-jsx-development
- @babel/plugin-transform-regenerator
- @babel/plugin-transform-regexp-modifiers
- @babel/plugin-transform-reserved-words
- @babel/plugin-transform-runtime
- @babel/plugin-transform-shorthand-properties
- @babel/plugin-transform-spread
- @babel/plugin-transform-sticky-regex
- @babel/plugin-transform-strict-mode
- @babel/plugin-transform-template-literals
- @babel/plugin-transform-typeof-symbol
- @babel/plugin-transform-typescript
- @babel/plugin-transform-unicode-escapes
- @babel/plugin-transform-unicode-property-regex
- @babel/plugin-transform-unicode-regex
- @babel/plugin-transform-unicode-sets-regex
- @babel/preset-env
- @babel/preset-flow
- @babel/preset-react
- @babel/preset-typescript
- @babel/template
- @babel/traverse
- @babel/types
- acorn
- jsdom
Peer Dependencies (0)
No peer dependencies.
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/standalone.
- Markdown[](https://www.jsdocs.io/package/@babel/standalone)
- HTML<a href="https://www.jsdocs.io/package/@babel/standalone"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3445 ms. - Missing or incorrect documentation? Open an issue for this package.
