-
Notifications
You must be signed in to change notification settings - Fork 23
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
Build babel regexp based on dependencies #38
Comments
@tooppaaa It's definitely something worth experimenting with, I think the I think that even if we implemented this solution still wouldn't work because of #2, and that's the trickiest part. I built this library with the assumption that if a library is ES6, most likely the entrypoint script would be ES6 but as you can see in this comment that's not always the case, and I am not sure how to tackle this, perhaps we could recurse into scripts required by the entrypoint but only up to a certain depth? I think a variation of Also since you're helping out a lot with this repo, do you think you are open to being a maintainer? |
Thanks for the maintainer offer ;) definitely going to help a bit :) I can see different level for this.
To me, this library helps at the end to create the regexp for a babel loader (which we can also build at some point) where dependencies are not es5. Level 4 will require caching so I suggest we leave it out of scope for now ? It will be complex and may still not solve the issue. There will be some fancy libraries that goes out of the box but if we manage to cover 95%, it's already a huge win |
Further discussion should happen on #2. |
Relates to #24
In order to be 100% sure all dependencies are included in the es6Modules output, I'm assuming we need to do it in multiple steps
WDYT ?
The text was updated successfully, but these errors were encountered: