Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

SyncfusionExamples/ej2-rollup-bundling

Repository files navigation

EJ2 Rollup Bundling Demo

In this repository, we have configured Rollup bundling for Essential JS 2 application.

Configuring Rollup JS.

We have added rollup configuration file named rollup.config.js. We can use this file to customize the configuration.

var resolve = require('rollup-plugin-node-resolve');
var commonjs = require('rollup-plugin-commonjs');
var uglify = require('rollup-plugin-uglify');

module.exports = {
    allowRealFiles: true,
    entry: ['./src/app.js', './src/page1/app.js', './src/page2/app.js'],
    format: 'iife',
    plugins: [
        resolve({ jsnext: true, module: true }),
        commonjs({
            include: 'node_modules/**'
        }),
        uglify({
            compress: {
                dead_code: true
            }
        })
    ],
    onwarn: function(warning, next) {
        return;
    }
};

Installing and Running Application

Installing Package

npm install or npm i

Running Application

npm start

About

Bundling and Tree-Shaking Essential JS 2 application with Rollup

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors