-
Notifications
You must be signed in to change notification settings - Fork 7
/
bili.config.ts
28 lines (26 loc) · 894 Bytes
/
bili.config.ts
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
import { Config } from "bili";
const config: Config = {
plugins: {
typescript2: {
tsconfigOverride: {
include: ["src", "ethers"],
},
},
},
extendConfig: (config) => ({
...config,
// The default externals are the package.json dependencies and can only bundle node_modules that are not a dependency.
// So need to clear out all externals, to bundle nats.ws package.
externals: [],
}),
// nats.ws is bundled because using standard import/require does not work for cjs format.
// nat.ws only provides a .mjs file which cannot be required.
// include tslib for clients using older version of tslib
bundleNodeModules: ["nats.ws", "tslib"],
input: "src/iam-client-lib.ts",
output: {
format: ["cjs", "esm"],
minify: false,
},
};
export default config;