add more custom module formatter documentation
This commit is contained in:
parent
5f8420f23e
commit
ce170f7646
@ -111,6 +111,8 @@ export function bar() {
|
|||||||
|
|
||||||
## Custom
|
## Custom
|
||||||
|
|
||||||
|
You can alternatively specify module names instead of one of the built-in types.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
module.exports = ModuleFormatter;
|
module.exports = ModuleFormatter;
|
||||||
|
|
||||||
@ -118,6 +120,11 @@ function ModuleFormatter() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ModuleFormatter.prototype.transform = function (ast) {
|
||||||
|
// this is ran after all transformers have had their turn at modifying the ast
|
||||||
|
// feel free to modify this however
|
||||||
|
};
|
||||||
|
|
||||||
ModuleFormatter.prototype.import = function (node, nodes) {
|
ModuleFormatter.prototype.import = function (node, nodes) {
|
||||||
// node is an ImportDeclaration
|
// node is an ImportDeclaration
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user