Skip to content

Commit

Permalink
Remove browser field from package.json (compatibility with browserify)
Browse files Browse the repository at this point in the history
  • Loading branch information
blikblum committed Mar 24, 2024
1 parent 582fc22 commit a9d8ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
},
"scripts": {
"prepublishOnly": "npm run build",
"build": "rollup -c && browserify --standalone PDFDocument --ignore crypto --ignore iconv-lite js/pdfkit.js > js/pdfkit.standalone.js",
"build": "rollup -c && npm run build-standalone",
"build-standalone": "browserify --standalone PDFDocument --ignore crypto --ignore iconv-lite js/pdfkit.js > js/pdfkit.standalone.js",
"browserify-example": "browserify examples/browserify/browser.js > examples/browserify/bundle.js",
"pdf-guide": "node docs/generate.js",
"website": "node docs/generate_website.js",
Expand All @@ -70,7 +71,6 @@
},
"main": "js/pdfkit.js",
"module": "js/pdfkit.es.js",
"browser": "js/pdfkit.es.js",
"browserify": {
"transform": [
"brfs"
Expand Down

0 comments on commit a9d8ecd

Please sign in to comment.