I come to a weird shim error with the following dirs. package.json exists in both the top-level folder (a) and sub-folder (b).
~ $ tree a
a
├── a.js
├── b
│ ├── b.js
│ └── package.json
└── package.json
Both package.json files have different b-shim configurations, and b.js is required by a.js like
# a.js
require('./b/b.js');
When executing browserify -t browserify-shim a.js, I found b/package.json was taking effect. I think a.js is the entry file, so a/package.json should be read, and during requiring, b/package.json will not be read any more. But it seems not.
I come to a weird shim error with the following dirs.
package.json
exists in both the top-level folder (a) and sub-folder (b).Both
package.json
files have different b-shim configurations, andb.js
is required bya.js
likeWhen executing
browserify -t browserify-shim a.js
, I foundb/package.json
was taking effect. I thinka.js
is the entry file, soa/package.json
should be read, and during requiring,b/package.json
will not be read any more. But it seems not.