File "rollup.config.js"

Full Path: /home/pumpbmko/public_html/wp-content/plugins/xs30byau/public/vendors/split/packages/react-split-grid/rollup.config.js
File size: 1.84 KB
MIME-type: text/plain
Charset: utf-8

import buble from 'rollup-plugin-buble'
import { uglify } from 'rollup-plugin-uglify'

const pkg = require('./package.json')

export default [
    {
        input: './src/index.js',
        output: [
            {
                name: 'ReactSplitGrid',
                file: pkg.main,
                format: 'umd',
                sourcemap: false,
                banner: `/*! ${pkg.name} - v${pkg.version} */\n`,
                globals: {
                    react: 'React',
                    'split-grid': 'Split',
                    'prop-types': 'PropTypes',
                },
            },
            {
                file: pkg.module,
                format: 'esm',
                sourcemap: false,
            },
        ],
        external: ['split-grid', 'react', 'prop-types'],
        plugins: [
            buble({
                exclude: 'node_modules/**',
                objectAssign: 'Object.assign',
                transforms: {
                    forOf: false,
                },
            }),
        ],
    },
    {
        input: './src/index.js',
        output: {
            name: 'ReactSplitGrid',
            file: pkg['minified:main'],
            format: 'umd',
            sourcemap: true,
            banner: `/*! ${pkg.name} - v${pkg.version} */\n`,
            globals: {
                react: 'React',
                'split-grid': 'Split',
                'prop-types': 'PropTypes',
            },
        },
        external: ['split-grid', 'react', 'prop-types'],
        plugins: [
            buble({
                exclude: 'node_modules/**',
                objectAssign: 'Object.assign',
                transforms: {
                    forOf: false,
                },
            }),
            uglify({
                output: {
                    comments: /^!/,
                },
            }),
        ],
    },
]