Open reconbot opened 5 years ago
We got a workaround by requiring the dependent packages specifically.
import Document from '@simple-dom/document'
import HTMLSerializer from '@simple-dom/serializer'
import voidMap from '@simple-dom/void-map'
Thanks, i had the same issue.
I run into the same issue. Is any better solution available in the meantime?
I'm trying to get simpledom working in codebase with two environments. One with
ts-node
and another withwebpack
andts-loader
with"esModuleInterop": true,
With
simple-dom@1.3.0
I could doAnd it worked in all environments but has a bug where I had to include
dom
in my tsconfiglibs
configuration to get typescript to compile.For the upgrade to
1.4.0
, the previous code works withts-node
but webpack changes the export fromsimple-dom
to be a single export namedsimple-dom
This works but only in webpack with
ts-loader@5.3.3
and not withts-node
The following work with nothing... errors are from webpack.
I'm not sure where to go from here. Any ideas?
Thanks!