mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 05:37:21 +00:00
35 lines
786 B
TypeScript
35 lines
786 B
TypeScript
import { execSync } from 'node:child_process';
|
|
import { defineConfig } from 'tsdown';
|
|
import buildStyles from './build/build-styles.ts';
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: './src/index.ts',
|
|
store: './src/store/index.ts',
|
|
icons: './src/icons/index.ts',
|
|
'skins/frosted': './src/skins/frosted/index.ts',
|
|
'skins/minimal': './src/skins/minimal/index.ts',
|
|
},
|
|
platform: 'browser',
|
|
format: 'es',
|
|
sourcemap: true,
|
|
clean: true,
|
|
alias: {
|
|
'@': new URL('./src', import.meta.url).pathname,
|
|
},
|
|
dts: {
|
|
oxc: true,
|
|
},
|
|
hooks: {
|
|
'build:prepare': async () => {
|
|
execSync('pnpm generate:icons', { stdio: 'inherit' });
|
|
},
|
|
'build:done': async () => {
|
|
await buildStyles();
|
|
},
|
|
},
|
|
loader: {
|
|
'.svg': 'text',
|
|
},
|
|
});
|