Skip to content

Repository files navigation

@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';importremoveDebuggerfrom'https://esm.sh/@putout/plugin-remove-debugger?alias=putout:@putout/bundle';importdeclarefrom'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';importpluginPutoutfrom'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: [],});

Slim

When you need super slim bundle without debug use:

import{putout}from'https://esm.sh/@putout/bundle/slim';

License

MIT

About

🐊Putout bundle to get things working in Deno and Browsers

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages