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

Allowed hintedNames for namespaced imports, changed some other defaul… #6744

Merged

Conversation

Andarist
Copy link
Member

@Andarist Andarist commented Nov 4, 2017

…ts for more readable ones

Q                       A
Fixed Issues? n/a
Patch: Bug Fix? no
Major: Breaking Change? no
Minor: New Feature? no
Tests Added + Pass? Yes
Documentation PR no
Any Dependency Changes? no
License MIT

Ive just wanted addNamespace to accepts hintedName option, but in the process I've noticed some auto-determined names make (imho) less sense that they could have, so I've tweaked those helpers a little bit.

@babel-bot
Copy link
Collaborator

babel-bot commented Nov 4, 2017

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/5665/

Copy link
Member

@danez danez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, can you add a "Tag: xxx" label? I wasn't sure if this is a new feature or a fix.

@Andarist Andarist added PR: Polish 💅 A type of pull request used for our changelog categories PR: Internal 🏠 A type of pull request used for our changelog categories PR: New Feature 🚀 A type of pull request used for our changelog categories and removed PR: Internal 🏠 A type of pull request used for our changelog categories labels Nov 5, 2017
@Andarist
Copy link
Member Author

Andarist commented Nov 5, 2017

Yeah, sure - added New feature + Polish

@danez
Copy link
Member

danez commented Nov 22, 2017

What if the import source looks like "../../path/source"? What would the variable now look like?

@Andarist
Copy link
Member Author

Andarist commented Nov 23, 2017

@danez valid identifiers are generated, i.e.

var _fromPath = _interopRequireWildcard(require("../../from/path"))

@danez danez merged commit 1ef7e0f into babel:master Nov 23, 2017
@Andarist Andarist deleted the helper-module-imports/namespace-name-hint branch November 23, 2017 20:07
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories PR: Polish 💅 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants