Skip to content

Add feature to pass array of deps to a helper#6058

Closed
peey wants to merge 1 commit intobabel:masterfrom
peey:interdependent-helpers
Closed

Add feature to pass array of deps to a helper#6058
peey wants to merge 1 commit intobabel:masterfrom
peey:interdependent-helpers

Conversation

@peey
Copy link
Copy Markdown
Contributor

@peey peey commented Aug 6, 2017

Q A
Patch: Bug Fix? No
Major: Breaking Change? No
Minor: New Feature? Yes
Deprecations? No
Spec Compliancy? Yes
Tests Added/Pass? No
Fixed Tickets Closes #6030
License MIT
Doc PR No
Dependency Changes No

Hi, this is a simple way to allow for interdependent helpers (see #6030 for explanation). I could not wait on #5706 since the upcoming decorator transform uses this feature, and neither could I hack on 5706 myself.

I couldn't figure a way to add tests for this (since you'd have to introduce new helpers in helpers.js just for the sake of this PR) but I've added some new helpers in a wip branch and it works with those.

I suppose this could be repealed after we have an ability to simply import helpers when 5706 makes them modular.

@mention-bot
Copy link
Copy Markdown

@peey, thanks for your PR! By analyzing the history of the files in this pull request, we identified @loganfsmyth, @hzoo and @existentialism to be potential reviewers.

@hzoo hzoo requested a review from loganfsmyth August 10, 2017 15:02
@danez danez closed this Aug 31, 2017
@danez danez reopened this Aug 31, 2017
@danez danez changed the base branch from 7.0 to master August 31, 2017 17:01
@jridgewell
Copy link
Copy Markdown
Member

Can you update this post #5706? We could support it using import helper from "helper-name" now.

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interdependence of Babel Helpers

4 participants