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
Dynamic imports wrongly loads static import dependencies inside packages #9182
When you use
import SuperHeavyJSPackage from 'super-heavy-js-package';
While this works fine inside the
Here's a reproduction I created with help from @Discordius, who found the issue:
And here's the same code running out of
It seems like the problem has been around since 1.5 as far as I can tell.
This is definitely a bug!
I don't expect this to mean much to anyone but me, but I've tracked the problem down to this line, which is executed when a Meteor package tries to import an npm package from the application