We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am writing a package in deno, and compiling it into npm.
Somehow unidici gets in the compiled target.
I then use webpack because I want to use this package in react setup.
webpack refuses to process unidici because of two dependencies: util/types and stream/web
I haven't found a polyfill for them.
Any idea what can be done?
this is my webpack config
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); const path = require("path"); module.exports = { mode: "production", entry: "./src/index.js", output: { filename: "main.js", path: path.resolve(__dirname, "dist"), }, plugins: [new NodePolyfillPlugin()], resolve: { fallback: { perf_hooks: false, async_hooks: false, dns: false, tls: false, child_process: false, fs: false, net: require.resolve("net-websocket-polyfill"), diagnostics_channel: require.resolve("diagnostics_channel"), worker_threads: require.resolve("bthreads"), }, }, };
The text was updated successfully, but these errors were encountered:
this is a duplicate of #1992
Sorry, something went wrong.
No branches or pull requests
I am writing a package in deno, and compiling it into npm.
Somehow unidici gets in the compiled target.
I then use webpack because I want to use this package in react setup.
webpack refuses to process unidici because of two dependencies: util/types and stream/web
I haven't found a polyfill for them.
Any idea what can be done?
this is my webpack config
The text was updated successfully, but these errors were encountered: