forked from incetarik/fp-ts-stream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrslib.config.mjs
More file actions
38 lines (38 loc) · 788 Bytes
/
Copy pathrslib.config.mjs
File metadata and controls
38 lines (38 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { pluginNodePolyfill } from "@rsbuild/plugin-node-polyfill";
/** @type {import('@rslib/core').RslibConfig} */
export default {
lib: [
{
format: "esm",
syntax: "es2022",
autoExternal: true,
bundle: true,
dts: { bundle: true, tsgo: true },
},
{
format: "cjs",
syntax: "es2022",
autoExternal: true,
bundle: true,
},
],
source: {
entry: {
AsyncStream: "src/AsyncStream/index.ts",
Stream: "src/Stream/index.ts",
},
tsconfigPath: "./tsconfig.app.json",
},
output: {
target: "web",
minify: true,
sourcemap: true,
},
performance: {
chunkSplit: {
strategy: "split-by-experience",
},
},
plugins: [pluginNodePolyfill()],
external: [/^fp-ts(\/|$)/],
};