-
Notifications
You must be signed in to change notification settings - Fork 47
Tree shaking and partial imports. #19
Comments
You meant |
@Mouvedia was on a phone, but I fixed that. |
I don't really understand this issue. What bug are your reporting with the current proposal? Are you trying to create another proposal? If so this isn't the place for it. |
@domenic I am merely asking if there is something synonymous with import { map } from 'lodash' In this proposal. |
You can do |
@domenic I am aware of that. Was just curious since obviously that doesn't support tree shaking. |
From what I understand, tree-shaking is a nonstandard way of using modules supported by some ahead-of-time tooling that turns those modules into non-modules. It's not really something that informs the design of the language, but instead is something for those creating such tools to work through on their own. |
@DylanPiercey to be precise here, if you have a tool that can do tree shaking on something like: import * as foo from "foo";
foo.x('do something'); Assuming that foo exports a lot more than just |
Is this something that can be done here?
I figured something like
Just curious if this has been thought of.
The text was updated successfully, but these errors were encountered: