You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JavaScript API no longer provides names of imports #1992
When debugging an issue with a test in rollup-plugin-node-resolve (cf. rollup/rollup-plugin-node-resolve#141), it turned out that as of v0.55.0, rollup always returns an empty array for imports in its JavaScript API here:
I did not find the time yet to investigate further but obviously there seems to be something wrong with Chunk.getImportIds(). exports and modules, on the other hand, seem to be working to specification.
@lukastaegert do you perhaps have a test case? Note that imports are only present for externals and other chunks. I've definitely got it working in my code splitting workflows here.
I do not have a test case other than the original test in rollup/rollup-plugin-node-resolve#141 but I see you already started looking into that. Thanks!
Activity
[-]Node API no longer provides names of imports[/-][+]JavaScript API no longer provides names of imports[/+]guybedford commentedon Feb 20, 2018
@lukastaegert do you perhaps have a test case? Note that imports are only present for externals and other chunks. I've definitely got it working in my code splitting workflows here.
lukastaegert commentedon Feb 20, 2018
I do not have a test case other than the original test in rollup/rollup-plugin-node-resolve#141 but I see you already started looking into that. Thanks!
lukastaegert commentedon Feb 20, 2018
Might also be an incompatibility with that plugin.
guybedford commentedon Feb 20, 2018
I've tracked down a fix, will post a PR very soon.