Deferred from #5 (see PR #12).
src/sharepoint.ts imports ConfidentialClientApplication from @azure/msal-node at the top level, so the SDK loads for every consumer of the package — including ones that only convert Markdown to DOCX and never touch SharePoint.
GoogleDriveTransport now loads @googleapis/drive lazily via a memoized await import() inside upload(). This restores parity.
Measured before the Google transport went lazy: importing the barrel cost ~186ms of module init, of which ~86ms was the Drive SDK alone.
Tasks
Partly obviated if #13 (subpath exports) lands first — worth sequencing the two.
Deferred from #5 (see PR #12).
src/sharepoint.tsimportsConfidentialClientApplicationfrom@azure/msal-nodeat the top level, so the SDK loads for every consumer of the package — including ones that only convert Markdown to DOCX and never touch SharePoint.GoogleDriveTransportnow loads@googleapis/drivelazily via a memoizedawait import()insideupload(). This restores parity.Measured before the Google transport went lazy: importing the barrel cost ~186ms of module init, of which ~86ms was the Drive SDK alone.
Tasks
@azure/msal-nodeimport into a memoized lazy loader, mirroringimportDriveFilesClientinsrc/google.ts(including the deliberate no-memoize-on-failure reset).Partly obviated if #13 (subpath exports) lands first — worth sequencing the two.