1.0.2 • Published 2 years ago

babel-plugin-transform-unicode-regexp-runtime v1.0.2

Weekly downloads
68
License
MPL-2.0
Repository
github
Last release
2 years ago

babel-plugin-transform-unicode-regexp-runtime npm

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' ],
})