2.1.3 • Published 10 years ago
protero v2.1.3
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 proteroUsage
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