-
Notifications
You must be signed in to change notification settings - Fork 204
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
Please create a main field on package.json #90
Comments
Maybe #56 could be cleaned up. |
The reason that I've never included a 'main' entry is that there is a range of independent entry points into the library; while one user might
or
another user might
I'm afraid I've no experience with Next or indeed React – why is it next-transpile-modules requires a |
The main field can point to an empty module export. It's just require.resolve and enhanced-handed resolve won't work without a valid field available. |
Looking through these:
I gather that webpack respects both So it appears to me that a package.json entry
would be correct and accurate, and would satisfy webpack's resolve requirements – have I understood well? If so, I would be more than happy to include that. |
I've added |
Much appreciated |
Im having some nightmare issues trying to resolve this project with next-transpile-modules
Is it possible to please add some kind of index.js file so require.resolve is able to find the package properly
The text was updated successfully, but these errors were encountered: