I’m trying to define storybook stories in the new CSF format
I want the default export to be a js object, like this:
let default = {"title": "My/Section"}
but I got an extra named export that conflicts with storybook, see https://rescript-lang.org/try?code=DYUwLgBAJiBmCGBXYkC8EDeEBEYCWYo2AXDgEbDwXzYQC+QA
exports.$$default = $$default;
exports.default = $$default
For storybook, named exports represent a story and it incorrectly generate a new entry named “Default” that fails when opened.
My question is what is the purpose of the additional export in that case ?
is it the intended behavior or a bug in rescript-compiler ?
I’m using %raw as a workaround but using a simple let default
would be awesome