Closed lilactown closed 7 months ago
Nothing weird about it really. It takes the analyzer defs map, which on smaller namespaces will be an array map, so order preserving. Larger will eventually switch to hash map and thus end up "random".
I guess it could sort by source line metadata or so, not something that has come up before.
thank you!
weird bug find: when using :npm-module and I have a namespace with more than 8 definitions, the
Object.defineProperty(module.exports, ...)
are output in random order.For instance, given the file:
This outputs the following javascript:
This is problematic for things like storybook, where each individual story is created via an exported var in a module; Storybook shows the stories in the order in which they are iterated over in the `module.exports, and given the current compiler behavior there's no way for us to directly control the order in which they appear from CLJS.