Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/react-input-autosize/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import babel from 'rollup-plugin-babel';
import resolve from 'rollup-plugin-node-resolve';
import uglify from 'rollup-plugin-uglify';
import { minify } from 'uglify-es';
const name = 'AutosizeInput';
const path = 'dist/react-input-autosize';
const globals = {
'prop-types': 'PropTypes',
'react-dom': 'ReactDOM',
'react': 'React',
};
const external = Object.keys(globals);
const babelOptions = production => {
let result = {
babelrc: false,
presets: [['env', { modules: false }], 'stage-2', 'react'],
plugins: ['external-helpers'],
};
if (production) {
result.plugins.push('transform-react-remove-prop-types');
}
return result;
};
export default [
{
input: 'src/AutosizeInput.js',
output: {
file: path + '.es.js',
format: 'es',
},
external: external,
plugins: [babel(babelOptions(false))],
},
{
input: 'src/AutosizeInput.js',
output: {
name: name,
file: path + '.js',
format: 'umd',
},
globals: globals,
external: external,
plugins: [babel(babelOptions(false)), resolve()],
},
{
input: 'src/AutosizeInput.js',
output: {
name: name,
file: path + '.min.js',
format: 'umd',
},
globals: globals,
external: external,
plugins: [babel(babelOptions(true)), resolve(), uglify({}, minify)],
},
];
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]-- |