We're updating the issue view to help you get more done. 

Support webpack node lib replacements

Description

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 $ clj -m cljs.main -co '{:npm-deps {"readable-stream" "2.3.6"} :install-deps true}' -r ClojureScript 1.10.339 cljs.user=> (require 'readable-stream) events.js:183 throw er; // Unhandled 'error' event ^ Error: module not found: "util" from file /private/tmp/node_modules/readable-stream/lib/_stream_readable.js at onresolve (/private/tmp/node_modules/@cljs-oss/module-deps/index.js:181:30) at onResolve (/private/tmp/node_modules/enhanced-resolve/lib/Resolver.js:70:11) at innerCallback (/private/tmp/node_modules/enhanced-resolve/lib/Resolver.js:143:22) at callbackWrapper (/private/tmp/node_modules/enhanced-resolve/lib/createInnerCallback.js:10:21) at next (/private/tmp/node_modules/tapable/lib/Tapable.js:249:35) at innerCallback (/private/tmp/node_modules/enhanced-resolve/lib/Resolver.js:143:22) at callbackWrapper (/private/tmp/node_modules/enhanced-resolve/lib/createInnerCallback.js:10:21) at next (/private/tmp/node_modules/tapable/lib/Tapable.js:249:35) at resolver.doResolve.createInnerCallback (/private/tmp/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:41:24) at callbackWrapper (/private/tmp/node_modules/enhanced-resolve/lib/createInnerCallback.js:10:21) Error: goog.require could not find: readable_stream (goog/base.js:711:20) require (clojure/browser/repl.cljs:226:33) cljs.user=>

Evidently related to https://github.com/webpack/node-libs-browser

Environment

{:deps {org.clojure/clojurescript {:mvn/version "1.10.339"}}}

Status

Assignee

Unassigned

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Major