/xregexp-loader

Transforms XRegexp constructor calls to valid ES5 regular expressions.

Primary LanguageJavaScriptMIT LicenseMIT

XRegexp Loader

Not actively maintained

NPM

Transforms XRegexp constructor calls to valid ES5 regular expressions.

Installation

npm install xregexp-loader

Usage

Add this to your webpack.config.js to apply the logic to your .js files, for example.

module.exports = {
  ...
  module: {
    rules: [
      { test: /\.js$/, loader: "babel-loader!xregexp-loader" }
    ]
  }
  ...
};