Files
Andrei 58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00

50 lines
1.3 KiB
JavaScript

import commonjs from '@rollup/plugin-commonjs';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import replace from '@rollup/plugin-replace';
import typescript from '@rollup/plugin-typescript';
import fs from 'fs';
import path from 'path';
import tsc from 'typescript';
import { fileURLToPath } from 'url';
const ROOT = fileURLToPath(new URL('../..', import.meta.url));
export const PACKAGE_JSON = JSON.parse(
fs.readFileSync(path.resolve(ROOT, 'package.json')),
);
const external = [
...Object.keys(PACKAGE_JSON.dependencies || {}),
...Object.keys(PACKAGE_JSON.peerDependencies || {}),
];
const globals = external.reduce((globals, name) => {
globals[name] = name;
return globals;
}, {});
export const BASE_CONFIG = {
external,
input: path.resolve(ROOT, 'src', 'index.ts'),
output: {
exports: 'named',
globals,
name: 'fast-equals',
sourcemap: true,
},
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
preventAssignment: true,
}),
nodeResolve({
mainFields: ['module', 'browser', 'main'],
}),
commonjs({ include: /use-sync-external-store/ }),
typescript({
tsconfig: path.resolve(ROOT, 'config', 'tsconfig', 'base.json'),
typescript: tsc,
}),
],
};