-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Bundler doesn't import index.js if require is on a Directory #72
Comments
Thanks, we don't implement the full CommonJS spec. We use a different module format, where every module is declared via However, I'm aware that this is counter-intuitive for users, because we support part of the spec, namely, packages and relative imports in packages (mainly to be able to use npm modules). Anyways, I'll see if this feature can be safely added, otherwise, will make sure there is an options for users to use CommonJS instead of @providesModule |
+1 for normal commonJS instead of the |
I actually forgot to close this issue. If lib is a dir with index.js And you don't have to use |
Actually, please don't use @providesModule. This is an internal convention that shouldn't be exposed to developers. |
Update docs - rephrase the source code structure
App.js
is the entry pointdoesn't import
index.js
automatically. Had to manually specifyThe text was updated successfully, but these errors were encountered: