mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-07-24 01:12:14 +00:00
31 lines
525 B
TypeScript
31 lines
525 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: 'iife',
|
|
dts: false,
|
|
source: {
|
|
entry: {
|
|
'record-iife': './src/record-iife-index.ts',
|
|
},
|
|
},
|
|
},
|
|
],
|
|
output: {
|
|
target: 'web',
|
|
},
|
|
plugins: [pluginReact()],
|
|
});
|