You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Because esm transforms import() in all source locations this can break the use of import() that occurs with a puppeteer function. This has made it impossible to test my library with ava as it depends on being able to use import() inside page.evaluate.
With --experimental-modules this works fine but with -r esm it fails with Error: Evaluation failed: ReferenceError: _c72 is not defined.
Probably the best way to fix it would be to patch functions .toString method so that it returns the original source text rather than the transformed source text.
The text was updated successfully, but these errors were encountered:
Because esm transforms
import()
in all source locations this can break the use ofimport()
that occurs with a puppeteer function. This has made it impossible to test my library withava
as it depends on being able to useimport()
insidepage.evaluate
.A simple minimal example that breaks:
With
--experimental-modules
this works fine but with-r esm
it fails withError: Evaluation failed: ReferenceError: _c72 is not defined
.Probably the best way to fix it would be to patch functions
.toString
method so that it returns the original source text rather than the transformed source text.The text was updated successfully, but these errors were encountered: