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
Replace rollup typescript plugin with babel for asyncImportHelper preprocessing
The @rollup/plugin-typescript performs type-checking on all imported files,
which generates hundreds of warnings for the jsPDF codebase. Since we only
need to strip TypeScript type annotations from asyncImportHelper.ts (no actual
type checking is needed), switching to @rollup/plugin-babel with
@babel/preset-typescript provides a cleaner solution.
Changes:
- Replace typescript plugin with babel plugin in both karma configs
- Use @babel/preset-typescript which only strips types (no type checking)
- Verified locally that rollup processing completes with no TypeScript warnings
This eliminates all the type-checking warnings while still correctly transpiling
the asyncImportHelper.ts files to ES modules.
0 commit comments