Skip to content

Commit 50c77af

Browse files
committed
Switch from jsdom to domino for perf
This significantly speeds up parsing since the DOM implemention in domino is quite a bit leaner than jsdom.
1 parent 5c4d19b commit 50c77af

4 files changed

Lines changed: 174 additions & 67 deletions

File tree

config/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function (config) {
66
return {
77
input: 'src/turndown.js',
88
output: config.output,
9-
external: ['jsdom'],
9+
external: ['domino'],
1010
plugins: [
1111
commonjs(),
1212
replace({ 'process.browser': JSON.stringify(!!config.browser) }),

0 commit comments

Comments
 (0)