under `:bundle` target cljsjs libs not bound to require symbol when npm libs not present

Description

These steps do not produce a working application:

$ mkdir hello-bundler
$ cd hello-bundler

In deps.edn:

$ npm init -y

$ npm add --save-dev webpack webpack-cli

In src/hello_bundler/core.cljs

In build.edn:

$ clj -m cljs.main -co build.edn -v -c -r

Furthermore you will see that out/reagent/impl/component.js

has this line

And out/npm_deps.js has no entries:

So the result is that the cljsjs/react library is not being bound to the react symbol when its required.

Environment

None

Assignee

Bruce Hauman

Reporter

Bruce Hauman

Labels

None

Approval

None

Patch

None

Priority

Major
Configure