Skip to content
This repository has been archived by the owner on Feb 10, 2018. It is now read-only.

Latest commit

 

History

History
36 lines (23 loc) · 604 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 604 Bytes

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" }
    ]
  }
  ...
};