chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
28 stars 1 forks source link

Fix bundling strategy of tsup #289

Closed valentinpalkovic closed 2 months ago

valentinpalkovic commented 2 months ago

Closes https://github.com/storybookjs/storybook/issues/26819

The node entry needed to be bundled correctly. This led to externalizing packages, which we don't do in a node environment, only for the browser.

Additionally, I have removed the source map generation because we usually don't do it for add-ons since it increases the download size by a lot.

📦 Published PR as canary version: 1.3.3--canary.289.2081b09.0
:sparkles: Test out this PR locally via: ```bash npm install @chromatic-com/storybook@1.3.3--canary.289.2081b09.0 # or yarn add @chromatic-com/storybook@1.3.3--canary.289.2081b09.0 ```