Closed modesty closed 6 months ago
address build issue by bundle and output to both es module and commonJS #161 #222 #330. Updates,
PDFParser
npm run build
pdfparser.cjs
dist/
pdfparser.js
lib/p2jcmd.js
lib/p2jcmdarg.js
test/index.cjs
/dist
lib
npm test
address build issue by bundle and output to both es module and commonJS #161 #222 #330. Updates,
PDFParser
is no longer the default export, import statement needs to be updated with curly bracket as documented in readme.mdnpm run build
is required for command line, output folder is 'dist/`, sourcemap of the bundle are also therepdfparser.cjs
is moved todist/
together withpdfparser.js
, the package default module mode is still es modulelib/p2jcmd.js
andlib/p2jcmdarg.js
, plustest/index.cjs
are updated to import from/dist
instead oflib
or nother non-bundled sourcenpm test
is re-written with jest, vows is removed. Currently it covers ~12 pdf forms, it will be extended to cover more pdf forms