@storybook/builder-vite 9.0.0-alpha.1 → 9.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +24 -24
- package/dist/index.mjs +26 -25
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ npx storybook@latest init --builder vite && npm run storybook
|
|
|
50
50
|
5. Remove Storybook Webpack cache (`rm -rf node_modules/.cache`)
|
|
51
51
|
6. Update your `/public/index.html` file for Vite (be sure there are no `%PUBLIC_URL%` inside it, which is a CRA variable)
|
|
52
52
|
7. Be sure that any files containing JSX syntax use a `.jsx` or `.tsx` file extension, which [Vite requires](https://vitejs.dev/guide/features.html#jsx). This includes `.storybook/preview.jsx` if it contains JSX syntax.
|
|
53
|
-
8.
|
|
53
|
+
8. For now you'll need to add a [workaround](https://github.com/storybookjs/storybook/issues/18399) for jest-mock relying on the node `global` variable by creating a `.storybook/preview-head.html` file containing the following:
|
|
54
54
|
|
|
55
55
|
```html
|
|
56
56
|
<script>
|