rapid-xml-to-json
Version:
Fast, dependency-free XML-parser for parsing XML structures into JSON. Optimised for speed and low memory usage.
22 lines (20 loc) • 526 B
JavaScript
import typescript from "@rollup/plugin-typescript";
import terser from "@rollup/plugin-terser";
export default {
input: "./index.ts",
output: [
{
file: "dist/index.esm.js",
format: "es",
},
{ file: "dist/index.cjs.js", format: "cjs" },
{ file: "dist/index.cjs.min.js", format: "cjs", plugins: [terser()]},
{
file: "dist/index.esm.min.js",
format: "esm",
name: "rapid-xml-to-json",
plugins: [terser()],
},
],
plugins: [typescript()],
};