Skip to content

Commit

Permalink
Webpack apparently prefers relative paths in the browser field
Browse files Browse the repository at this point in the history
This is an attempt to fix the size-limit CI
  • Loading branch information
carlobeltrame authored and diegomura committed Jul 4, 2022
1 parent 4fabb73 commit dff88b0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions packages/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"description": "Parses the images in png or jpeg format for react-pdf document",
"author": "Diego Muracciole <[email protected]>",
"homepage": "https://github.com/diegomura/react-pdf#readme",
"main": "lib/index.cjs.js",
"module": "lib/index.es.js",
"main": "./lib/index.cjs.js",
"module": "./lib/index.es.js",
"browser": {
"lib/index.cjs.js": "lib/index.browser.cjs.js",
"lib/index.es.js": "lib/index.browser.es.js"
"./lib/index.cjs.js": "./lib/index.browser.cjs.js",
"./lib/index.es.js": "./lib/index.browser.es.js"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/pdfkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@react-pdf/pdfkit",
"version": "2.4.0",
"description": "A PDF generation library for Node.js",
"main": "lib/pdfkit.cjs.js",
"module": "lib/pdfkit.es.js",
"main": "./lib/pdfkit.cjs.js",
"module": "./lib/pdfkit.es.js",
"repository": {
"type": "git",
"url": "https://github.com/diegomura/react-pdf.git",
Expand Down
4 changes: 2 additions & 2 deletions packages/png-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@react-pdf/png-js",
"description": "A PNG decoder in JS",
"version": "2.1.0",
"main": "lib/png-js.cjs.js",
"module": "lib/png-js.es.js",
"main": "./lib/png-js.cjs.js",
"module": "./lib/png-js.es.js",
"browser": {
"./lib/png-js.es.js": "./lib/png-js.browser.es.js",
"./lib/png-js.cjs.js": "./lib/png-js.browser.cjs.js"
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"types": "index.d.ts",
"author": "Diego Muracciole <[email protected]>",
"homepage": "https://github.com/diegomura/react-pdf#readme",
"main": "lib/react-pdf.cjs.js",
"module": "lib/react-pdf.es.js",
"main": "./lib/react-pdf.cjs.js",
"module": "./lib/react-pdf.es.js",
"repository": {
"type": "git",
"url": "https://github.com/diegomura/react-pdf.git",
Expand Down
4 changes: 2 additions & 2 deletions packages/textkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"license": "MIT",
"version": "4.0.0",
"description": "An advanced text layout framework",
"main": "lib/textkit.cjs.js",
"module": "lib/textkit.es.js",
"main": "./lib/textkit.cjs.js",
"module": "./lib/textkit.es.js",
"browser": {
"./lib/textkit.es.js": "./lib/textkit.browser.es.js",
"./lib/textkit.cjs.js": "./lib/textkit.browser.cjs.js"
Expand Down
4 changes: 2 additions & 2 deletions packages/yoga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"license": "MIT",
"author": "Diego Muracciole <[email protected]>",
"homepage": "https://github.com/diegomura/react-pdf#readme",
"main": "src/dist/entry-browser.js",
"module": "src/dist/entry-browser.es.js",
"main": "./src/dist/entry-browser.js",
"module": "./src/dist/entry-browser.es.js",
"types": "index.d.ts",
"repository": {
"type": "git",
Expand Down

0 comments on commit dff88b0

Please sign in to comment.