mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
add some babel stuff
This commit is contained in:
23
node_modules/@babel/helper-split-export-declaration/README.md
generated
vendored
Normal file
23
node_modules/@babel/helper-split-export-declaration/README.md
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
# @babel/helper-split-export-declaration
|
||||
|
||||
## API
|
||||
|
||||
```js
|
||||
declare export default splitExportDeclaration(path: NodePath);
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import traverse from "@babel/traverse";
|
||||
import splitExportDeclaration from "@babel/helper-split-export-declaration";
|
||||
|
||||
// ...
|
||||
|
||||
traverse(file, {
|
||||
ExportDefaultDeclaration(path) {
|
||||
if (!path.get("declaration").isClassDeclaration()) return;
|
||||
splitExportDeclaration(path);
|
||||
},
|
||||
});
|
||||
```
|
Reference in New Issue
Block a user