@putout/bundle 1.0.4 → 1.1.0

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.
Files changed (3) hide show
  1. package/README.md +22 -3
  2. package/bundle/putout.js +408 -241
  3. package/package.json +10 -2
package/README.md CHANGED
@@ -16,13 +16,32 @@ console.log(putout('isFn(fn, "hello"); debugger', {
16
16
  plugins: [
17
17
  ['remove-debugger', removeDebugger],
18
18
  ['declare-undefined-variables', declare],
19
- ]
19
+ ],
20
20
  }));
21
21
 
22
22
  // returns
23
23
  ({
24
- code: `const isFn = a => typeof a === 'function';\nisFn(fn, "hello");`,
25
- places: []
24
+ code: `const isFn = a => typeof a === 'function';\nisFn(fn, "hello");`,
25
+ places: [],
26
+ });
27
+ ```
28
+
29
+ When you need to use `@putout/plugin-putout` use:
30
+
31
+ ```js
32
+ import putout from 'https://esm.sh/@putout/bundle';
33
+ import pluginPutout from 'https://esm.sh/@putout/bundle/plugin-putout';
34
+
35
+ console.log(putout('compare(a, b)', {
36
+ plugins: [
37
+ ['putout', pluginPutout], r,
38
+ ],
39
+ }));
40
+
41
+ // returns
42
+ ({
43
+ code: `const {operator} = require('putout');\nconst {compare} = operator;\ncompare(a, b)`,
44
+ places: [],
26
45
  });
27
46
  ```
28
47