3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2026-06-09 18:20:59 +00:00
rust-cache/rollup.config.ts
Arpad Borsos c106961fee
use rollup to do bundle splitting
this uses dynamic imports for the cache provider and should thus solve the
deprecated import error when using warpbuild
2026-06-06 14:35:16 +02:00

11 lines
434 B
TypeScript

import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import nodeResolve from "@rollup/plugin-node-resolve";
import type { RollupWatchOptions } from "rollup";
const config: RollupWatchOptions = {
input: ["./.build/src/restore.js", "./.build/src/save.js"],
output: { dir: "./dist", format: "es" },
plugins: [nodeResolve({ preferBuiltins: true }), commonjs(), json()],
};
export default config;