I'm using the WebOptimizer bundler to concatenate a few IIFE modules together, but have hit a quirk in that the order of the files are not preserved when explicitly supplied.
I'd expect the generated vue.bundle.min.js to have included the modules in the order as supplied. Instead, the output it somewhat suprisingly ordered as:
"lib/vue/dist/vue.global.js"
"lib/pinia/dist/pinia.iife.js"
"lib/vue-demi/index.iife.js"
This output order is unaffected by the order of files I pass in.
I'm using the WebOptimizer bundler to concatenate a few IIFE modules together, but have hit a quirk in that the order of the files are not preserved when explicitly supplied.
For example, based this input:
I'd expect the generated
vue.bundle.min.js
to have included the modules in the order as supplied. Instead, the output it somewhat suprisingly ordered as:This output order is unaffected by the order of files I pass in.
Perhaps this issue is caused by the use of a dictionary in the
AssetContext
to gather the file contents together: https://github.com/ligershark/WebOptimizer/blob/master/src/WebOptimizer.Core/AssetContext.cs#L17