Skip to content

feat(tsc-wrapped): always convert index shorthand imports#16898

Merged
vicb merged 1 commit into
angular:masterfrom
devversion:fix/always-convert-shorthands
May 30, 2017
Merged

feat(tsc-wrapped): always convert index shorthand imports#16898
vicb merged 1 commit into
angular:masterfrom
devversion:fix/always-convert-shorthands

Conversation

@devversion

Copy link
Copy Markdown
Member

What kind of change does this PR introduce? (check one with "x")

[X] Feature

What is the current behavior? (You can also link to an open issue here)

Index shorthand imports are currently only converted when targeting ES2015

What is the new behavior?

Index shorthand imports will be converted always.

Does this PR introduce a breaking change? (check one with "x")

  • You may consider this as breaking.

Now converts shorthand imports for every TypeScript target. Tsickle is able to expand index shorthand imports for every TypeScript target and module possibility.

Expanding shorthand imports for CommonJS modules is also helpful when testing in the browser. Module loaders like SystemJS are not able to understand directory imports (or index shorthand imports)

cc. @alexeagle @jelbourn

@jelbourn jelbourn added area: core Issues related to the framework runtime hotlist: components team Related to Angular CDK or Angular Material action: review The PR is still awaiting reviews from at least one requested reviewer labels May 19, 2017
Now converts shorthand imports for every TypeScript target. Tsickle is able to expand index shorthand imports for every TypeScript target and module possibility.

Expanding shorthand imports for CommonJS modules is also helpful when testing in the browser. Module loaders like SystemJS are not able to understand directory imports (or index shorthand imports)
@devversion devversion force-pushed the fix/always-convert-shorthands branch from 59adaf0 to 3c38310 Compare May 19, 2017 20:47
@jelbourn jelbourn requested a review from alexeagle May 19, 2017 22:14
@jelbourn

Copy link
Copy Markdown
Contributor

@alexeagle does someone else need to review this as well?

@alexeagle alexeagle added the action: merge The PR is ready for merge by the caretaker label May 24, 2017
@jelbourn jelbourn removed the action: review The PR is still awaiting reviews from at least one requested reviewer label May 24, 2017
@chuckjaz chuckjaz added pr_action: queued feature Label used to distinguish feature request from other issues labels May 24, 2017
@vicb vicb merged commit ea8a43d into angular:master May 30, 2017
@devversion devversion deleted the fix/always-convert-shorthands branch May 30, 2017 18:24
asnowwolf pushed a commit to asnowwolf/angular that referenced this pull request Aug 11, 2017
Now converts shorthand imports for every TypeScript target. Tsickle is able to expand index shorthand imports for every TypeScript target and module possibility.

Expanding shorthand imports for CommonJS modules is also helpful when testing in the browser. Module loaders like SystemJS are not able to understand directory imports (or index shorthand imports)
juleskremer pushed a commit to juleskremer/angular that referenced this pull request Aug 28, 2017
Now converts shorthand imports for every TypeScript target. Tsickle is able to expand index shorthand imports for every TypeScript target and module possibility.

Expanding shorthand imports for CommonJS modules is also helpful when testing in the browser. Module loaders like SystemJS are not able to understand directory imports (or index shorthand imports)
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes feature Label used to distinguish feature request from other issues hotlist: components team Related to Angular CDK or Angular Material

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants