Closed poteirard closed 4 years ago
Please don't remove the issue template. It is there for a reason. Please do search issues before posting duplicates -- this is a duplicate of #547 and #169
You're using generators, which require a polyfill (i.e. regeneratorRuntime
). You need to decide how you're going to polyfill it and then do so.
That's unrelated to and not caused by web vs node usage. But potentially worthy to note, those are two separate target platforms and TSDX has the --target
flag as such (which configures things like preset-env
's options for node
builds).
Automatic pure polyfilling of generators with babel-plugin-polyfill-regenerator
for targets
that need a polyfill has been added in #795 and will be released in v0.14.0 soon.
Hello,
I have some libraries that are meant to be used in
node
andweb
environments.I run
tsdx build
, then in the consumer of the library I runtsc
and thennode dist/index.js
then I get an error:Am I missing something?
Thank you!
tsdx -v 0.13.1