Skip to content
New issue

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

relative path will resolve module of same name #13

Open
louisbuchbinder opened this issue Sep 11, 2017 · 0 comments
Open

relative path will resolve module of same name #13

louisbuchbinder opened this issue Sep 11, 2017 · 0 comments

Comments

@louisbuchbinder
Copy link

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant