babel-plugin-transform-unicode-regexp-runtime

This replaces regexp literals and constructors that contain the unicode flag at compile time or at runtime if needed.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-transform-unicode-regexp-runtime
311.0.22 years ago5 years agoMinified + gzip package size for babel-plugin-transform-unicode-regexp-runtime in KB

Readme

babel-plugin-transform-unicode-regexp-runtime !npmnpm-imagenpm-url
This replaces regexp literals and constructors that contain the unicode flag at compile time or at runtime if needed.

Installation

npm  install  --save-dev  babel-plugin-transform-unicode-regexp-runtime

Usage

Via .babelrc

.babelrc
{
  "plugins": [ "transform-unicode-regexp-runtime" ]
}

Via CLI

babel  --plugins transform-unicode-regexp-runtime  script.js

Via Node API

require('@babel/core').transform('code', {
  plugins: [ 'transform-unicode-regexp-runtime' ],
})