HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/survey.nailsbyrianne.nl/public_html/tmp/assets/237bebe3/rollup.config.js
import common from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import replace from 'rollup-plugin-replace';
import { terser } from "rollup-plugin-terser";

const ENVIRONEMENT = process.env.NODE_ENV.trim();
console.log(`Building lslog for mode ${ENVIRONEMENT}`);

let output, plugins;

if( ENVIRONEMENT=='production' ) {
    output = {
      file: 'build/lslog.min.js',
      format: 'umd',
      sourcemap: true,
    };
    plugins = [
        replace({
            ENVENVIRONEMENT:ENVIRONEMENT,
            'process.env.NODE_ENV': JSON.stringify(ENVIRONEMENT)
        }),
        babel({
            exclude: 'node_modules/**',
            "presets": [
                [
                    "@babel/preset-env",
                    {
                        targets: {
                            "browsers": "> 0.25%, not dead",
                            "ie": "11"
                        },
                        modules: 'false',
                        useBuiltIns: 'entry',
                        corejs: 3,
                    }
                ]
            ]
        }),
        resolve(),
        common(),
        terser()
    ];
} else {
  output = {
    file: 'build/lslog.js',
    format: 'umd',
    sourcemap: false,
  };
  plugins =  [
        replace({
            ENVENVIRONEMENT:ENVIRONEMENT,
            'process.env.NODE_ENV': JSON.stringify(ENVIRONEMENT)
        }),
        babel({
            exclude: 'node_modules/**',
            presets: [
                [
                    "@babel/preset-env",
                    {
                        targets: {
                            "browsers": "> 0.25%, not dead",
                            "ie": "11"
                        },
                        modules: 'false',
                        useBuiltIns: 'entry',
                        corejs: 3,
                    }
                ]
            ]
        }),
        resolve(),
        common()
    ];
}



module.exports = {
    input: 'src/lslog.js',
    output,
    plugins
  };