build: fix build and add examples
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user