Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
feat(tsc-wrapped): always convert index shorthand imports #16898
What kind of change does this PR introduce? (check one with "x")
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")
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)