expose moduleName option - closes #158

This commit is contained in:
Sebastian McKenzie
2014-11-14 17:19:39 +11:00
parent 43e2f121a6
commit fdd1451d53
4 changed files with 22 additions and 5 deletions

View File

@@ -113,7 +113,13 @@ to5.transformFile("filename.js", options, function (err, result) {
// Optionally replace all 6to5 helper declarations with a referenece to this
// variable. If set to `true` then the default namespace is used "to5Runtime".
// Default: false
runtime: true
runtime: true,
// Optionally declare a function that all import filenames will be piped
// through
moduleName: function (name) {
}
}
```