REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.72 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/backend/bundler/components.bundler.js
Text
Base64
import { nodeResolve as resolve } from '@rollup/plugin-node-resolve'; import * as commonjs from '@rollup/plugin-commonjs'; import * as replace from '@rollup/plugin-replace'; import * as json from '@rollup/plugin-json'; import { minify } from 'rollup-plugin-esbuild-minify'; import { babel } from '@rollup/plugin-babel'; import presetEnv from '@babel/preset-env'; import presetReact from '@babel/preset-react'; import presetTs from '@babel/preset-typescript'; import { AssetBundler } from './utils/asset-bundler.js'; import { COMPONENTS_ENTRY_PATH, COMPONENTS_OUTPUT_PATH, NODE_ENV } from './utils/constants.js'; const input = { input: COMPONENTS_ENTRY_PATH, external: AssetBundler.DEFAULT_EXTERNALS, plugins: [resolve({ extensions: AssetBundler.DEFAULT_EXTENSIONS, mainFields: ['browser', 'main', 'module', 'jsnext:main'], preferBuiltins: false }), json.default(), replace.default({ 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'), 'process.env.IS_BROWSER': 'true', 'process.env.': 'AdminJS.env.', preventAssignment: true, 'process.browser': true }), commonjs.default(), babel({ extensions: AssetBundler.DEFAULT_EXTENSIONS, babelrc: false, babelHelpers: 'bundled', exclude: 'node_modules/**/*.js', presets: [[presetEnv, { targets: { node: '18' }, loose: true, modules: false }], presetReact, presetTs], plugins: ['@babel/plugin-syntax-import-assertions'] }), ...(NODE_ENV === 'production' ? [minify()] : [])] }; const output = { name: 'AdminJSCustom', file: COMPONENTS_OUTPUT_PATH, inlineDynamicImports: true, globals: AssetBundler.DEFAULT_GLOBALS }; const bundler = new AssetBundler(input, output); export default bundler;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
utils
DIR
-
drwxr-xr-x
2026-02-28 00:31:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
app.bundler.js
1.36 KB
lrw-r--r--
2026-02-28 00:31:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
components.bundler.js
1.72 KB
lrw-r--r--
2026-02-28 00:31:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
generate-user-component-entry.js
1.39 KB
lrw-r--r--
2026-02-28 00:31:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
generate-user-component-entry.spec.js
1.62 KB
lrw-r--r--
2026-02-28 00:31:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
globals.bundler.js
1.65 KB
lrw-r--r--
2026-02-28 00:31:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
382 B
lrw-r--r--
2026-02-28 00:31:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).