Skip to content

Commit

Permalink
fix: rollup couldnt find csstree in react-pdf-renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed May 28, 2024
1 parent 5b3bc67 commit 40a7f8e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@
"keywords": [],
"author": "",
"devDependencies": {
"prisma": "^4.8.1",
"@biomejs/biome": "1.6.4",
"@databases/pg-migrations": "^5.0.3",
"@pandabox/prettier-plugin": "^0.1.0",
"@playwright/test": "^1.43.0",
"@types/node": "^20.11.28",
"electric-sql": "^0.10.1",
"prettier": "^3.2.5",
"prisma": "^4.8.1",
"typed-openapi": "^0.4.1"
},
"pnpm": {
"patchedDependencies": {
"react-pdf-html@2.0.4": "patches/react-pdf-html@2.0.4.patch"
}
}
}
11 changes: 11 additions & 0 deletions patches/react-pdf-html@2.0.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff --git a/dist/esm/parse.js b/dist/esm/parse.js
index a3c64463f5eba87ca5d51b71f320bcda313eefa2..27ffe750447811a7e54ae376f28107e671d715cc 100644
--- a/dist/esm/parse.js
+++ b/dist/esm/parse.js
@@ -1,5 +1,5 @@
import { NodeType, parse, } from 'node-html-parser';
-import * as cssTree from 'css-tree';
+import cssTree from 'css-tree';
const { generate, parse: cssParse } = cssTree;
import supportedStyles from './supportedStyles.js';
import camelize from './camelize.js';
14 changes: 10 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40a7f8e

Please sign in to comment.