rollup-plugin-xml
v1.0.0
Published
Convert .xml files to ES6 modules
Downloads
2,191
Readme
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"
},
};