rollup-plugin-xml

1.0.0 • Public • Published

rollup-plugin-xml

Convert .xml files to ES6 modules:

Use

// import a single property from a XML file,
// discarding the rest
import xml from './demo.xml';
console.log( xml );

Config

import xml from "rollup-plugin-xml";
export default {
    input: "demo/main.js",
    plugins: [
        xml({
            format:"compact"//"compact" | "non-compact" | "XMLDocument"
        })
    ],
    output: {
        file: "demo/bundle.js",
        format: "iife"
    },
};

Convert XML ↔ JS/JSON as compact or non-compact

/rollup-plugin-xml/

    Package Sidebar

    Install

    npm i rollup-plugin-xml

    Weekly Downloads

    15

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.39 kB

    Total Files

    7

    Last publish

    Collaborators

    • linsk