JSPM

  • Created
  • Published
  • Downloads 162
  • Score
    100M100P100Q117502F
  • License MIT

🐊Putout bundle suitable for Deno or Browsers

Package Exports

  • @putout/bundle
  • @putout/bundle/bundle/putout.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@putout/bundle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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';
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: []
});

License

MIT