build: fix build and add examples

This commit is contained in:
2025-02-05 23:55:00 +08:00
parent f00c1d1aef
commit 58d7b3c89e
127 changed files with 1340 additions and 3841 deletions

View File

@@ -2,17 +2,31 @@ import { defineConfig } from '@rslib/core';
export default defineConfig({
source: {
tsconfigPath: './tsconfig.lib.json'
tsconfigPath: './tsconfig.lib.json',
},
lib: [
{
format: 'esm',
syntax: 'es2021',
dts: true,
bundle: false,
dts: {
bundle: false,
build: true,
distPath: './dist',
},
},
{
format: 'cjs',
syntax: 'es2021',
dts: false,
bundle: true,
source: {
entry: {
index: './src/index.ts',
'adapters/react': './src/adapters/react/index.ts',
'adapters/tanstack-router': './src/adapters/tanstack-router/index.ts',
},
},
},
],
output: {