feat: first step
This commit is contained in:
38
rslib.config.ts
Normal file
38
rslib.config.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import { defineConfig } from '@rslib/core';
|
||||
|
||||
export default defineConfig({
|
||||
source: {
|
||||
tsconfigPath: './tsconfig.lib.json',
|
||||
},
|
||||
lib: [
|
||||
{
|
||||
format: 'esm',
|
||||
syntax: 'es2021',
|
||||
bundle: false,
|
||||
dts: {
|
||||
bundle: false,
|
||||
build: false,
|
||||
distPath: './dist',
|
||||
},
|
||||
source: {
|
||||
entry: {
|
||||
index: ['src/**/*.ts'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
format: 'cjs',
|
||||
syntax: 'es2021',
|
||||
dts: false,
|
||||
bundle: true,
|
||||
source: {
|
||||
entry: {
|
||||
index: './src/index.ts',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
output: {
|
||||
target: 'web',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user