Skip to content

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

License

Notifications You must be signed in to change notification settings

Istador/babel-plugin-transform-unicode-regexp-runtime

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published