f73e710e38
Build site and push to gh-pages / Build site (push) Waiting to run
Build / build (push) Waiting to run
Linter / lint (push) Waiting to run
Security / dependency-review (push) Waiting to run
Security / npm-audit (push) Waiting to run
Security / codeql (push) Waiting to run
Tests / test (push) Waiting to run
28 lines
677 B
JavaScript
28 lines
677 B
JavaScript
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
import ignore from "rollup-plugin-ignore";
|
|
import commonjs from "@rollup/plugin-commonjs";
|
|
import typescript from "@rollup/plugin-typescript";
|
|
|
|
export default {
|
|
input: "src/index.ts",
|
|
output: [
|
|
{
|
|
file: "lib/index.js",
|
|
exports: "named",
|
|
format: "es",
|
|
sourcemap: true,
|
|
globals: { ws: "ws", perf_hooks: "perf_hooks" },
|
|
},
|
|
],
|
|
plugins: [
|
|
ignore(["fs", "path", "crypto", "node:fs", "node:path", "node:crypto"]),
|
|
nodeResolve({ browser: true }),
|
|
commonjs({
|
|
ignoreDynamicRequires: true,
|
|
}),
|
|
typescript({
|
|
tsconfig: "./tsconfig.json",
|
|
}),
|
|
],
|
|
};
|