Skip to content

Commit b6aa224

Browse files
committed
tweak css-tree import
1 parent d59d0dc commit b6aa224

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-pdf-html",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"author": "Dan Blaisdell dan@manifestwebdesign.com",
55
"description": "Html component for react-pdf with CSS support",
66
"keywords": [

src/parse.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@ import {
66
TextNode,
77
} from 'node-html-parser';
88
import { Tag } from './tags.js';
9-
import {
10-
generate,
11-
parse as cssParse,
12-
Block,
13-
Declaration,
14-
List,
15-
Rule,
16-
StyleSheet,
17-
} from 'css-tree';
9+
import { Block, Declaration, List, Rule, StyleSheet } from 'css-tree';
10+
import * as cssTree from 'css-tree';
11+
const { generate, parse: cssParse } = cssTree;
12+
1813
import supportedStyles from './supportedStyles.js';
1914
import { HtmlStyle, HtmlStyles } from './styles.js';
2015
import camelize from './camelize.js';

0 commit comments

Comments
 (0)