2.1.3 • Published 10 years ago

protero v2.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

protero

Utility method for transpiling dependencies with babel. By default node_modules are not transpiled by Babel. This compiler/require hook allows you to include certain node_modules or extensions.

Install

npm install --save-dev protero

Usage

Add the following to your package.json.

{
  "scripts": {
    "test": "mocha --spec reporter --compilers js:protero ./test.js"
  },
  "protero": {
    "extensions": [ "js", "jsx" ],  // optional, defaults are listed.
    "modules": [
      "dependency1",
      "dependency2",
      "/@scoped\/regex/"            // check filepaths with RegExp.
    ]
  }
}

License

See LICENSE.md

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago