-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4 fails to load in @web/test-runner #513
Comments
so that |
Would you like to send a PR? |
Happy to, although I'm not sure what the fix would entail. How would you "soft-detect" in a way which avoid the import? |
I expect you can surround the require in try/catch: try {
var Stream = require('stre' + 'am');
}
catch (err) {} This will make the Additionally, I changed the import to a "computed" value so that tooling will leave it alone. |
To be honest, I'm at a loss here. I think I will close the issue for now as it likely exposes some other problem with rollup or |
I started receiving this error when trying to run my tests:
I traced this to a dependency which now uses
v4
of readable-stream. In the modulelib/ours/index.js
there is aconst Stream = require('stream')
Why import the built-in?
The text was updated successfully, but these errors were encountered: