Skip to content

Commit 771c190

Browse files
committed
chore(packages)!: support pretty-dom esm modules build
1 parent c273ed5 commit 771c190

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"chalk": "^4.1.0",
4747
"dom-accessibility-api": "^0.5.4",
4848
"lz-string": "^1.4.4",
49-
"pretty-format": "^26.6.2"
49+
"pretty-format": "^27.0.1"
5050
},
5151
"devDependencies": {
5252
"@testing-library/jest-dom": "^5.11.6",

src/pretty-dom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import prettyFormat from 'pretty-format'
1+
import {format as prettyFormat, plugins} from 'pretty-format'
22
import {getUserCodeFrame} from './get-user-code-frame'
33
import {getDocument} from './helpers'
44

@@ -21,7 +21,7 @@ const getMaxLength = dom =>
2121
? 0
2222
: (typeof process !== 'undefined' && process.env.DEBUG_PRINT_LIMIT) || 7000
2323

24-
const {DOMElement, DOMCollection} = prettyFormat.plugins
24+
const {DOMElement, DOMCollection} = plugins
2525

2626
function prettyDOM(dom, maxLength, options) {
2727
if (!dom) {

0 commit comments

Comments
 (0)