3.18.3 • Published 8 months ago

@putout/bundle v3.18.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@putout/bundle NPM version

🐊Putout bundle to get things working in Deno and Browsers using amazing esm.sh.

Usage

import {putout} from 'https://esm.sh/@putout/bundle@2';
import removeDebugger from 'https://esm.sh/@putout/plugin-remove-debugger?alias=putout:@putout/bundle';
import declare from 'https://esm.sh/@putout/plugin-declare-undefined-variables?alias=putout:@putout/bundle';

console.log(putout('isFn(fn, "hello"); debugger', {
    plugins: [
        ['remove-debugger', removeDebugger],
        ['declare-undefined-variables', declare],
    ],
}));

// returns
({
    code: `const isFn = a => typeof a === 'function';\nisFn(fn, "hello");`,
    places: [],
});

When you need to use @putout/plugin-putout use:

import {putout} from 'https://esm.sh/@putout/bundle';
import pluginPutout from 'https://esm.sh/@putout/plugin-putout?alias=putout@putout/bundle';

console.log(putout('compare(a, b)', {
    plugins: [
        ['putout', pluginPutout],
    ],
}));

// returns
({
    code: `const {operator} = require('putout');\nconst {compare} = operator;\ncompare(a, b)`,
    places: [],
});

IIFE

When you want to access putout from global scope using script tag, use:

<script src="https://cdn.jsdelivr.net/npm/@putout/bundle@2/bundle/putout-iife.js"></script>

License

MIT

3.18.1

8 months ago

3.18.0

8 months ago

3.18.3

8 months ago

3.18.2

8 months ago

3.17.0

8 months ago

3.17.1

8 months ago

3.15.0

12 months ago

3.15.1

11 months ago

3.12.1

1 year ago

3.12.0

1 year ago

3.14.1

12 months ago

3.14.0

1 year ago

3.12.2

1 year ago

3.16.1

10 months ago

3.16.0

10 months ago

3.13.0

1 year ago

3.11.3

1 year ago

3.11.0

1 year ago

3.11.2

1 year ago

3.11.1

1 year ago

3.10.0

1 year ago

3.9.0

1 year ago

3.8.0

1 year ago

3.7.1

1 year ago

3.7.0

1 year ago

3.6.0

1 year ago

1.10.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

3.4.0

2 years ago

3.0.3

2 years ago

3.2.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

1.11.0

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

3.3.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.5.1

2 years ago

3.5.0

2 years ago

1.10.1

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.8.3

2 years ago

1.8.2

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.7.1

2 years ago

1.5.3

2 years ago

1.7.0

2 years ago

1.5.2

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.2.0

3 years ago

1.3.0

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

26.20.1

3 years ago

26.20.0

3 years ago