Package Exports
- @hyrious/xml-js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hyrious/xml-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
This fork moves "sax" to "devDependencies" and bundles it with rollup (rollup-plugin-node-polyfills).
(rollup-plugin-polyfill-node doesn't work, don't know why)
I also removed tests and coverage for faster setup. 😅
Install: npm i @hyrious/xml-js
.
Replace it in vite.config.js:
export default defineConfig({
alias: {
"xml-js": "@hyrious/xml-js"
}
})
Replace it in webpack.config.js
{
"resolve": {
"alias": {
"xml-js": "@hyrious/xml-js"
}
}
}
Other ways: see how preact does.
Read the original README.