mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-29 11:53:53 +00:00
51 lines
889 B
TypeScript
51 lines
889 B
TypeScript
![]() |
import { pluginReact } from '@rsbuild/plugin-react';
|
||
|
import { defineConfig } from '@rslib/core';
|
||
|
|
||
|
export default defineConfig({
|
||
|
lib: [
|
||
|
{
|
||
|
bundle: false,
|
||
|
dts: true,
|
||
|
format: 'esm',
|
||
|
source: {
|
||
|
entry: {
|
||
|
index: './src/**',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
// {
|
||
|
// format: 'cjs',
|
||
|
// syntax: ['node 18'],
|
||
|
// source: {
|
||
|
// entry: {
|
||
|
// index: './src/index.tsx',
|
||
|
// },
|
||
|
// },
|
||
|
// },
|
||
|
// {
|
||
|
// format: 'esm',
|
||
|
// syntax: ['node 18'],
|
||
|
// dts: true,
|
||
|
// source: {
|
||
|
// entry: {
|
||
|
// index: './src/index.ts',
|
||
|
// },
|
||
|
// },
|
||
|
// },
|
||
|
//
|
||
|
{
|
||
|
format: 'iife',
|
||
|
dts: false,
|
||
|
source: {
|
||
|
entry: {
|
||
|
iife: './src/iife-index.ts',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
output: {
|
||
|
target: 'web',
|
||
|
},
|
||
|
plugins: [pluginReact()],
|
||
|
});
|