Skip to content

Commit

Permalink
Switch from jsdom to domino for perf
Browse files Browse the repository at this point in the history
This significantly speeds up parsing since the DOM implemention in
domino is quite a bit leaner than jsdom.
  • Loading branch information
Sebmaster committed Sep 5, 2020
1 parent 5c4d19b commit 50c77af
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 67 deletions.
2 changes: 1 addition & 1 deletion config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function (config) {
return {
input: 'src/turndown.js',
output: config.output,
external: ['jsdom'],
external: ['domino'],
plugins: [
commonjs(),
replace({ 'process.browser': JSON.stringify(!!config.browser) }),
Expand Down
Loading

0 comments on commit 50c77af

Please sign in to comment.