You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
XMLBuilder object should be exported as a named export, not just the type #25
This default import from the documentation gives an eslint warning:
// eslint[import-x/no-named-as-default]: "Using exported name 'XMLBuilder' as identifier for default export."importXMLBuilderfrom"fast-xml-builder";
This is because XMLBuilder is also a named export in the package (in fxb.d.ts)
Alternatively, this import will pass eslint and a build but will crash during runtime:
import{XMLBuilder}from"fast-xml-builder";
This is because the named XMLBuilder export is only a type, not the function itself.
The Solution
It would be nice if fxb.js also exported the default function Builder as a named export. Keeping the name as Builder makes sense to me but XMLBuilder is what's currently documented
We're glad you find this project helpful. We'll try to address this issue ASAP. You can join Discord channel(https://discord.gg/X4Qp9u6Vz) for anonucements and pre release discussions. Don't forget to star this repo.
Activity
github-actions commentedon Sep 10, 2026
We're glad you find this project helpful. We'll try to address this issue ASAP. You can join Discord channel(https://discord.gg/X4Qp9u6Vz) for anonucements and pre release discussions. Don't forget to star this repo.