privateOmega/html-to-docx

Is there a way to reduce bundle size?

Opened this issue · 0 comments

Hi - I saw there was some work done to attempt to reduce bundle size so thought I'd follow up.

I am using a single instance of html-to-docx and the html-to-docx.esm.js is bundling at 1.92MB

Is that normal?

Here's how I'm using it:

import HTMLtoDOCX from 'html-to-docx';
const fileBuffer = await HTMLtoDOCX('My text here', '', {
  title: 'My Doc',
  header: false,
  creator: 'Me',
  font: 'Calibri',
});

Is there a more specific method I'm missing?