3.10.0 • Published 29 days ago

@putout/bundle v3.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
29 days 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.10.0

29 days ago

3.9.0

1 month ago

3.8.0

2 months ago

3.7.1

3 months ago

3.7.0

4 months ago

3.6.0

4 months ago

1.10.2

10 months ago

2.0.1

9 months ago

2.0.0

9 months ago

3.4.0

7 months ago

3.0.3

8 months ago

3.2.0

7 months ago

3.0.2

8 months ago

3.0.1

8 months ago

3.0.0

9 months ago

1.11.0

9 months ago

2.1.2

9 months ago

2.1.1

9 months ago

2.1.3

9 months ago

2.1.0

9 months ago

3.3.0

7 months ago

3.1.1

8 months ago

3.1.0

8 months ago

3.5.1

6 months ago

3.5.0

6 months ago

1.10.1

10 months ago

1.10.0

10 months ago

1.9.0

12 months ago

1.8.3

1 year ago

1.8.2

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.1

1 year ago

1.5.3

1 year ago

1.7.0

1 year ago

1.5.2

1 year ago

1.6.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.2.0

2 years ago

1.3.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

26.20.1

2 years ago

26.20.0

2 years ago