Closed KonnorRogers closed 3 years ago
Thanks! Export * doesn't work because of the way of the rollup commonjs plugin works. At least when I wrote this code, it may have improved since then.
Ahhhhh totally makes sense. I forgot about the fun conversion between CJS and ESM.
Currently, setCustomElements is not reexported in the web-components.js file so when you go do:
import { setCustomElements } from "@web/storybook-prebuilt/web-components.js"
You receive an error.
Here is the Storybook equivalent:
https://github.com/storybookjs/storybook/blob/next/examples/web-components-kitchen-sink/.storybook/preview.js
Perhaps this could be changed to
export * from "@storybook/web-components"
in case this API changes in the future?