Linux dpw.dpwebtech.com 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
Apache
: 192.232.243.69 | : 52.15.172.207
54 Domain
7.3.33
dpclient
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
dpclient /
public_html /
HRD-Test /
utils /
build /
[ HOME SHELL ]
Name
Size
Permission
Action
rollup.config.js
2.81
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : rollup.config.js
import terser from '@rollup/plugin-terser'; import MagicString from 'magic-string'; function addons() { return { transform( code, id ) { if ( /\/examples\/jsm\//.test( id ) === false ) return; code = new MagicString( code ); code.replace( 'build/three.module.js', 'src/Three.js' ); return { code: code.toString(), map: code.generateMap().toString() }; } }; } export function glsl() { return { transform( code, id ) { if ( /\.glsl.js$/.test( id ) === false ) return; code = new MagicString( code ); code.replace( /\/\* glsl \*\/\`(.*?)\`/sg, function ( match, p1 ) { return JSON.stringify( p1 .trim() .replace( /\r/g, '' ) .replace( /[ \t]*\/\/.*\n/g, '' ) // remove // .replace( /[ \t]*\/\*[\s\S]*?\*\//g, '' ) // remove /* */ .replace( /\n{2,}/g, '\n' ) // # \n+ to \n ); } ); return { code: code.toString(), map: code.generateMap().toString() }; } }; } function header() { return { renderChunk( code ) { code = new MagicString( code ); code.prepend( `/** * @license * Copyright 2010-2023 Three.js Authors * SPDX-License-Identifier: MIT */\n` ); return { code: code.toString(), map: code.generateMap().toString() }; } }; } function deprecationWarning() { return { renderChunk( code ) { code = new MagicString( code ); code.prepend( `console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated with r150+, and will be removed with r160. Please use ES Modules or alternatives: https://threejs.org/docs/index.html#manual/en/introduction/Installation' );\n` ); return { code: code.toString(), map: code.generateMap().toString() }; } }; } const builds = [ { input: 'src/Three.js', plugins: [ addons(), glsl(), header() ], output: [ { format: 'esm', file: 'build/three.module.js' } ] }, { input: 'src/Three.js', plugins: [ addons(), glsl(), terser(), header() ], output: [ { format: 'esm', file: 'build/three.module.min.js' } ] }, { input: 'src/Three.js', plugins: [ addons(), glsl(), header() ], output: [ { format: 'cjs', name: 'THREE', file: 'build/three.cjs', indent: '\t' } ] }, { // @deprecated, r150 input: 'src/Three.js', plugins: [ addons(), glsl(), header(), deprecationWarning() ], output: [ { format: 'umd', name: 'THREE', file: 'build/three.js', indent: '\t' } ] }, { // @deprecated, r150 input: 'src/Three.js', plugins: [ addons(), glsl(), terser(), header(), deprecationWarning() ], output: [ { format: 'umd', name: 'THREE', file: 'build/three.min.js' } ] } ]; export default ( args ) => args.configOnlyModule ? builds[ 0 ] : builds;
Close