Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @coco-platform/bundle with all npm packages installed. Try it out:

var bundle = require("@coco-platform/bundle")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@coco-platform/bundle v0.4.0

rollup project into bundle.


Universal rollup unpack wrapper.


 * @description - bundle implement
 * @param {string} input - rollup bundle entry
 * @param {object} meta - package description file, package.json
 * @param {boolean} disableEslint - disable eslint, such as bundle typescript compiled code
 * @param {boolean} sourceMap - whether preserve source map
  Usage: coco-bundle <input>


    -s, --source-map      generate source map
    -d, --disable-eslint  skip eslint plugin
    -h, --help            output usage information


const bundle = require('@coco-platform/bundle');
const options = {};





RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free