Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) Safe-mode: OFF (not secure) /var/www/clients/client172/web473/web/aps/xcrud/plugins/popper-core-master/.config/ drwxr-xr-x |
Viewing file: rollup.config.js (1.73 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | import babel from '@rollup/plugin-babel'; import replace from '@rollup/plugin-replace'; import bundleSize from '@atomico/rollup-plugin-sizes'; import { terser } from 'rollup-plugin-terser'; import visualizer from 'rollup-plugin-visualizer'; import license from 'rollup-plugin-license'; import flowEntry from 'rollup-plugin-flow-entry'; import compiler from '@ampproject/rollup-plugin-closure-compiler'; import pkg from '../package.json'; const getFileName = (input) => input.split('/')[1].split('.')[0]; const inputs = ['src/popper.js', 'src/popper-lite.js', 'src/popper-base.js']; const bundles = [ { inputs, format: 'umd', dir: 'dist', minify: true, flow: true }, { inputs, format: 'umd', dir: 'dist' }, { inputs, format: 'cjs', dir: 'dist', flow: true }, ]; const configs = bundles .map(({ inputs, dir, format, minify, flow }) => inputs.map((input) => ({ input, plugins: [ format === 'umd' && replace({ __DEV__: minify ? 'false' : 'true', }), babel({ babelHelpers: 'bundled' }), // The two minifiers together seem to procude a smaller bundle 🤷♂️ minify && compiler(), minify && terser(), license({ banner: `@popperjs/core v${pkg.version} - MIT License` }), flow && flowEntry({ types: `lib/${getFileName(input)}.js` }), bundleSize(), visualizer({ sourcemap: true, filename: `stats/${getFileName(input)}${minify ? '-min' : ''}.html`, }), ].filter(Boolean), output: { name: 'Popper', file: `${dir}/${format}/${getFileName(input)}${ minify ? '.min' : '' }.js`, format, sourcemap: true, }, })) ) .flat(); export default configs; |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0115 ]-- |