copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
Rollup The Web, Node … Rollup supports many output formats: ES modules, CommonJS, UMD, SystemJS and more Bundle not only for the web but for many other platforms as well
Introduction | Rollup Rollup can be used either through a command line interface with an optional configuration file, or else through its JavaScript API Run rollup --help to see the available options and parameters
Tutorial | Rollup The easiest way to use Rollup is via the Command Line Interface (or CLI) For now, we'll install it globally (later on we'll learn how to install it locally to your project so that your build process is portable, but don't worry about that yet)
Configuration Options | Rollup Allows Rollup to process JSX syntax to either preserve or transform it depending on the jsx mode If set to false, an error will be thrown if JSX syntax is encountered
JavaScript API | Rollup Rollup provides a JavaScript API which is usable from Node js You will rarely need to use this, and should probably be using the command line API unless you are extending Rollup itself or using it for something esoteric, such as generating bundles programmatically
Frequently Asked Questions | Rollup Rollup is already used by many major JavaScript libraries, and can also be used to build the vast majority of applications However, if you want to use code-splitting or dynamic imports with older browsers, you will need an additional runtime to handle loading missing chunks
Running Rollup in a Browser Rollup allows you to provide an in-memory file system implementation that needs to implement at least a certain sub-set of the NodeJS fs API, cf the fs option
Troubleshooting | Rollup By default, Rollup will use Node's native module mechanism to load your Rollup configuration That means if you use ES imports and exports in your configuration, you either need to define "type": "module" in your package json file or use the mjs extension for your configuration
Integrating Rollup With Other Tools Unlike other bundlers such as Webpack and Browserify, Rollup doesn't know "out of the box" how to handle these dependencies - we need to add some configuration
Plugin Development | Rollup Build hooks are run during the build phase, which is triggered by rollup rollup(inputOptions) They are mainly concerned with locating, providing and transforming input files before they are processed by Rollup The first hook of the build phase is options, the last one is always buildEnd