How to use the rollup-plugin-bundleutils.babel function in rollup-plugin-bundleutils

To help you get started, we’ve selected a few rollup-plugin-bundleutils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pschroen / alien.js / examples / banner / rollup.config.js View on Github external
import { version } from './alien.js/package.json';

const production = !process.env.ROLLUP_WATCH;
const project = path.basename(__dirname);

export default {
    input: 'src/Main.js',
    output: {
        file: `public/assets/${project}.js`,
        format: 'iife'
    },
    plugins: [
        resolve({ browser: true }),
        glslify(),
        eslint({ include: ['src/**', 'alien.js/**'] }),
        production && babel({ compact: false }),
        production && terser({
            output: {
                preamble: `//   _  /._  _  r${version.split('.')[1]}.${project} ${timestamp()}\n//  /_|///_'/ /`
            },
            safari10: true
        })
    ],
    watch: {
        chokidar: true,
        clearScreen: false,
        include: ['src/**', 'alien.js/**']
    }
};
github pschroen / alien.js / src / utils.js View on Github external
'Render',
    'Timer',
    'Device',
    'Accelerometer',
    'Mouse',
    'Assets',
    'Storage',
    'WebAudio',
    'TweenManager',
    'Interpolation',
    'CanvasFont',
    'Utils3D',
    'Stage'
].concat(values));
const unexport = bundleutils.unexport;
const babel = bundleutils.babel;
const uglify = bundleutils.uglify;

export { pad, timestamp, singletons, unexport, babel, uglify };

rollup-plugin-bundleutils

A set of functions commonly used after tree shaking

MIT
Latest version published 10 months ago

Package Health Score

53 / 100
Full package analysis