@putout/babel 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/bundle/babel.cjs +1 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,13 @@ const {
|
|
|
17
17
|
} = require('@putout/babel');
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
## Why not separate files?
|
|
21
|
+
|
|
22
|
+
Becaouse each of them will be about `1.8mb`:
|
|
23
|
+
|
|
24
|
+
<img width="479" alt="image" src="https://github.com/putoutjs/babel/assets/1573141/aa75f1bb-c312-4640-a605-fed0a0759427">
|
|
25
|
+
|
|
26
|
+
|
|
20
27
|
## License
|
|
21
28
|
|
|
22
29
|
MIT
|
package/bundle/babel.cjs
CHANGED
|
@@ -36492,15 +36492,6 @@ function normalizeOptions(code, opts) {
|
|
|
36492
36492
|
}
|
|
36493
36493
|
return format;
|
|
36494
36494
|
}
|
|
36495
|
-
class CodeGenerator {
|
|
36496
|
-
_generator;
|
|
36497
|
-
constructor(ast, opts, code) {
|
|
36498
|
-
this._generator = new Generator(ast, opts, code);
|
|
36499
|
-
}
|
|
36500
|
-
generate() {
|
|
36501
|
-
return this._generator.generate();
|
|
36502
|
-
}
|
|
36503
|
-
}
|
|
36504
36495
|
function generate(ast, opts, code) {
|
|
36505
36496
|
const gen = new Generator(ast, opts, code);
|
|
36506
36497
|
return gen.generate();
|
|
@@ -58681,9 +58672,9 @@ traverse.hasType = function (tree, type, denylistTypes) {
|
|
|
58681
58672
|
};
|
|
58682
58673
|
traverse.cache = cache;
|
|
58683
58674
|
|
|
58684
|
-
exports.CodeGenerator = CodeGenerator;
|
|
58685
58675
|
exports.codeFrameColumns = codeFrameColumns;
|
|
58686
58676
|
exports.expression = expression;
|
|
58677
|
+
exports.generate = generate;
|
|
58687
58678
|
exports.parse = parse$1;
|
|
58688
58679
|
exports.parseExpression = parseExpression$1;
|
|
58689
58680
|
exports.program = program;
|