You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets say I have a file ./flog.js and am using a module "flog" then the browser directive in my package json mistakes my relative path for the module.
my code
"browser": {
"./flog": "./other-file"
}
I expect this directive to replace usages of the file ./flog with the file ./other-file, however browserify gets confused with the module named "flog". The two fixes I have found are 1. Use the .js extension to explicitly reference the file ./flog.js or 2. (not really a fix) rename the module to "flogger".
The text was updated successfully, but these errors were encountered:
Lets say I have a file
./flog.js
and am using a module"flog"
then the browser directive in my package json mistakes my relative path for the module.my code
I expect this directive to replace usages of the file
./flog
with the file./other-file
, however browserify gets confused with the module named"flog"
. The two fixes I have found are 1. Use the.js
extension to explicitly reference the file./flog.js
or 2. (not really a fix) rename the module to"flogger"
.The text was updated successfully, but these errors were encountered: