Dynamically imported modules are sorted before any other entry since #295.
Let's assume an entry point main.js
:
import './styles.css'
import('./dynamic.js').then(...)
and a dynamically imported module dynamic.js
:
import './dynamic-styles.css`
Before #295 the css bundle had styles.css
content before dynamic-styles.css
content. Now the order is inverted.
The moduleIds
array returned from getRecursiveImportOrder
is missing the module ids found by using getModuleInfo(id).dynamicallyImportedIds
. The previous definition based on this.moduleIds
had them.
Dynamically imported modules should also have a stable order among themselves.
@wardpeet can I ask for your help?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too