-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add "main" to package.json for easier import #16
Comments
How do you mean "to just import"? Do you plan to use the library in NodeJS environment? |
I am developing in a NodeJS environment and using browserify. To import the module now I do: require('node_modules/jquery-xpath/jquery.xpath'); while I think with sufficient information in require('jquery-xpath'); |
To clarify, the second way of requiring the library is not just shorter, but it means that in case you update the location of your |
Many JS packaging systems look for "main" in package.json to import modules. This makes it possible to just import 'jquery-xpath' instead of using the full path to the JS file.
Would it be possible to add it? The following should be sufficient.
The text was updated successfully, but these errors were encountered: