babel-plugin-transform-unicode-regexp-runtime
v1.0.2
Published
This replaces regexp literals and constructors that contain the unicode flag at compile time or at runtime if needed.
Downloads
1,387
Readme
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.
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' ],
})