2022-05-27 13:01:52 +00:00
|
|
|
import commonjs from "@rollup/plugin-commonjs";
|
|
|
|
import json from "@rollup/plugin-json";
|
2022-12-02 05:38:30 +00:00
|
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
2023-02-28 03:55:17 +00:00
|
|
|
import { extractExports } from "build-utils";
|
|
|
|
|
|
|
|
import * as packageJson from "./package.json" assert { type: "json" };
|
|
|
|
|
|
|
|
const input = extractExports(packageJson);
|
2022-05-27 13:01:52 +00:00
|
|
|
|
|
|
|
export default {
|
2023-02-28 03:55:17 +00:00
|
|
|
input,
|
2022-05-27 13:01:52 +00:00
|
|
|
output: {
|
2022-08-05 14:36:46 +00:00
|
|
|
dir: "bundle",
|
2022-07-26 05:00:24 +00:00
|
|
|
format: "esm",
|
2022-05-27 13:01:52 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
|
|
|
json(),
|
|
|
|
nodeResolve({
|
|
|
|
browser: true,
|
|
|
|
preferBuiltins: false,
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
};
|