What is @babel/helper-create-regexp-features-plugin?
The @babel/helper-create-regexp-features-plugin is a helper plugin used internally by Babel's transform plugins to compile regular expressions using the RegExp features provided in ECMAScript 2015+ into equivalent regular expressions that are compatible with older JavaScript engines. This plugin is not typically used directly by developers but is instead used by other Babel plugins to handle regular expression transformations.
What are @babel/helper-create-regexp-features-plugin's main functionalities?
Transform RegExp Literals
This feature allows Babel plugins to transform RegExp literals using new syntax features into a form that can be understood by older JavaScript engines.
This is an internal helper plugin and does not provide a public API for direct usage in code. It is used by other Babel plugins to transform RegExp literals.
Support for RegExp Proposals
This feature enables Babel plugins to add support for proposed RegExp features that are not yet part of the ECMAScript standard.
This is an internal helper plugin and does not provide a public API for direct usage in code. It is used by other Babel plugins to add support for RegExp proposals.
Other packages similar to @babel/helper-create-regexp-features-plugin
regexpu-core
The regexpu-core package is a RegExp utility library that transforms Unicode-aware regular expressions into ES5-compatible versions. This is similar to @babel/helper-create-regexp-features-plugin in that it also deals with transforming regular expressions for compatibility purposes.
@babel/helper-create-regexp-features-plugin
Compile ESNext Regular Expressions to ES5
See our website @babel/helper-create-regexp-features-plugin for more information.
Install
Using npm:
npm install --save @babel/helper-create-regexp-features-plugin
or using yarn:
yarn add @babel/helper-create-regexp-features-plugin