<commit_before>import { DOM, shim, render, define, Fragment, h, html, css, interpolate, bootstrap, property, delegate, undelegate, Component } from './dna';
import { JSDOM } from 'jsdom';

const { document, Text, HTMLElement } = new JSDOM().window;

DOM.document = document;
DOM.Text = Text;
DOM.HTMLElement = shim(HTMLElement);

export { DOM, shim, render, define, Fragment, h, html, css, interpolate, bootstrap, property, delegate, undelegate, Component };
<commit_msg>refactor: make jsdom not bundled<commit_after>import { DOM, shim, render, define, Fragment, h, html, css, interpolate, bootstrap, property, delegate, undelegate, Component } from './dna';

const JSDOM = require('js' + 'dom').JSDOM;
const { document, Text, HTMLElement } = new JSDOM().window;

DOM.document = document;
DOM.Text = Text;
DOM.HTMLElement = shim(HTMLElement);

export { DOM, shim, render, define, Fragment, h, html, css, interpolate, bootstrap, property, delegate, undelegate, Component };

{'fraction_non_alphanumeric': 0.13771839671120248, 'fraction_numerical': 0.0, 'mean_word_length': 5.763888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4457186', 'n_tokens_mistral': 317, 'n_tokens_neox': 305, 'n_words': 100}