How to use the rollup-plugin-bundleutils.singletons 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 / src / utils.js View on Github external
const singletons = (values = []) => bundleutils.singletons([
    'Utils',
    'Render',
    'Timer',
    'Device',
    'Accelerometer',
    'Mouse',
    'Assets',
    'Storage',
    'WebAudio',
    'TweenManager',
    'Interpolation',
    'CanvasFont',
    'Utils3D',
    'Stage'
].concat(values));
const unexport = bundleutils.unexport;