Do not bundle iconv-lite on standalone build

This commit is contained in:
Luiz Américo 2019-12-03 19:42:17 -03:00
parent 9073796c1a
commit 44c0d46ff0
2 changed files with 10 additions and 8 deletions

View File

@ -1,13 +1,15 @@
## pdfkit changelog
### Unreleased
- Fix infinite loop when an individual character is bigger than the width of the text.
- Fix infinite loop when text is positioned after page right margin
- Allow links in continued text to be stopped by setting link to null
- Add support to interlaced PNG files
- Do not emit _interopDefault helper in commonjs build
- Fix gradient with multiple stops (#1045)
- Set link annotation flag to print by default
- Fix infinite loop when an individual character is bigger than the width of the text.
- Fix infinite loop when text is positioned after page right margin
- Allow links in continued text to be stopped by setting link to null
- Add support to interlaced PNG files
- Do not emit \_interopDefault helper in commonjs build
- Fix gradient with multiple stops (#1045)
- Set link annotation flag to print by default
- Drop support for (uncommon) cid less fonts on standalone build (reduces bundle size)
### [v0.10.0] - 2019-06-06

View File

@ -50,7 +50,7 @@
},
"scripts": {
"prepublishOnly": "npm run build",
"build": "rollup -c && browserify --standalone PDFDocument js/pdfkit.js > js/pdfkit.standalone.js",
"build": "rollup -c && browserify --standalone PDFDocument --ignore iconv-lite js/pdfkit.js > js/pdfkit.standalone.js",
"demo": "cd demo && node test.js",
"browser-demo": "browserify demo/browser.js > demo/bundle.js",
"pdf-guide": "node docs/generate.js",