0f0daf378c
Co-authored-by: aklinker1 <aklinker1@users.noreply.github.com>
22 lines
556 B
TypeScript
22 lines
556 B
TypeScript
import { defineBuildConfig } from 'unbuild';
|
|
import { resolve } from 'node:path';
|
|
|
|
// Build module and plugins
|
|
export default defineBuildConfig({
|
|
rootDir: resolve(__dirname, 'modules/analytics'),
|
|
outDir: resolve(__dirname, 'dist'),
|
|
entries: [
|
|
{ input: 'index.ts', name: 'module' },
|
|
{ input: 'client.ts', name: 'index' },
|
|
'background-plugin.ts',
|
|
'types.ts',
|
|
'providers/google-analytics-4.ts',
|
|
'providers/umami.ts',
|
|
],
|
|
externals: ['#analytics'],
|
|
replace: {
|
|
'import.meta.env.NPM': 'true',
|
|
},
|
|
declaration: true,
|
|
});
|