mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-11-02 14:31:14 +00:00
Bulk rename across 989 files: - Package names: posthog-js → @hanzo/insights, posthog-node → @hanzo/insights-node, etc. - Repository URLs: posthog/posthog-js → hanzoai/insights-js - Brand names: PostHog → Insights - File renames: 259 reference JSON files, source files, workflow files - Directory rename: eslint-plugin-posthog-js → eslint-plugin-insights Remaining: 8 refs to @posthog/rrweb-* (real npm deps, need fork+publish)
28 lines
807 B
JavaScript
28 lines
807 B
JavaScript
import 'dotenv/config'
|
|
import resolve from '@rollup/plugin-node-resolve'
|
|
import commonjs from '@rollup/plugin-commonjs'
|
|
import replace from '@rollup/plugin-replace'
|
|
|
|
const prod = process.env.NODE_ENV === 'production'
|
|
|
|
export default {
|
|
input: {
|
|
insights: 'src/insights.js',
|
|
main: 'src/main.js',
|
|
},
|
|
output: {
|
|
dir: 'dist',
|
|
sourcemap: !prod,
|
|
},
|
|
plugins: [
|
|
replace({
|
|
preventAssignment: true,
|
|
'process.env.INSIGHTS_PROJECT_API_KEY': JSON.stringify(process.env.INSIGHTS_PROJECT_API_KEY),
|
|
'process.env.INSIGHTS_API_HOST': JSON.stringify(process.env.INSIGHTS_API_HOST),
|
|
'process.env.INSIGHTS_UI_HOST': JSON.stringify(process.env.INSIGHTS_UI_HOST),
|
|
}),
|
|
resolve(),
|
|
commonjs(),
|
|
],
|
|
}
|