Michael Shilman
941b85ce04
v7.0.0-alpha.28
2022-09-02 00:52:03 +08:00
Michael Shilman
ae6940800f
Update root, peer deps, version.ts/json to 7.0.0-alpha.28 [ci skip]
2022-09-02 00:37:58 +08:00
Michael Shilman
3296bad121
Merge pull request #19026 from storybookjs/vite-autoconfig
...
Vite: Automatically use vite.config.js
2022-09-02 00:34:59 +08:00
Michael Shilman
b1e3b16e35
CLI: Fix race condition in sb init
2022-09-02 00:07:15 +08:00
Ian VanSchooten
b110c93cf5
Merge remote-tracking branch 'origin/tom/sb-721-ul-flashes-when-editing-a-csf-file' into vite-autoconfig
2022-09-01 08:33:26 -04:00
Michael Shilman
251144f797
Examples: Turn of type checking in doc-blocks
2022-09-01 19:35:02 +08:00
Norbert de Langen
cddd1957bd
disable the flaky smoke test for now
2022-09-01 11:51:12 +02:00
Tom Coleman
e000926425
Merge remote-tracking branch 'origin/next' into tom/sb-721-ul-flashes-when-editing-a-csf-file
2022-09-01 17:34:57 +10:00
Tom Coleman
787c394ab7
Update to new TS reference format (?)
2022-09-01 17:32:22 +10:00
Tom Coleman
57457d6079
Ensure we retained prepared-ness when the index HMRs
2022-09-01 14:01:07 +10:00
Ian VanSchooten
c90f9b4f6b
Merge remote-tracking branch 'origin/next' into vite-autoconfig
...
# Conflicts:
# code/lib/builder-vite/src/vite-config.ts
2022-08-31 23:05:28 -04:00
Ian VanSchooten
715b22b0b0
Remove unused import
2022-08-31 10:59:59 -04:00
Ian VanSchooten
0aca22eb32
Extract getFrameworkName to core-common
2022-08-31 08:24:45 -04:00
Ian VanSchooten
9e017a48cd
Remove unused types
2022-08-31 08:24:45 -04:00
Ian VanSchooten
872b1dfc05
Fix framework option checks
2022-08-31 08:24:45 -04:00
Michael Shilman
e9e10ee1f1
Merge pull request #19048 from clintandrewhall/preview-web-dep-6.5
...
Core: Fix WebProjectAnnotations export in preview-web for back-compat
2022-08-31 13:32:36 +08:00
Ian VanSchooten
e225946377
Add excludes for non-react framework react plugin
...
We just need it for processing mdx, it doesn't need to hmr anything.
2022-08-30 23:24:52 -04:00
Ian VanSchooten
46fe3ea3fb
Remove duplicate vue and svelte plugins
...
It's expected that the original vite.config.js should have one, and we're using that now.
2022-08-30 23:24:52 -04:00
Ian VanSchooten
5e1b062efb
Do not add vite-plugin-svelte
2022-08-30 23:24:52 -04:00
Ian VanSchooten
139bfdc901
Remove unused variable
2022-08-30 23:24:52 -04:00
Ian VanSchooten
b2f61d7826
Remove hmr accept calls from story files
2022-08-30 23:24:52 -04:00
Ian VanSchooten
9647bf2d23
Vite: use vite.config.js as config base
2022-08-30 23:24:52 -04:00
Michael Shilman
ac2182761a
Update git head to 7.0.0-alpha.27, update yarn.lock [ci skip]
2022-08-31 11:03:14 +08:00
Michael Shilman
3e33f0709d
v7.0.0-alpha.27
2022-08-31 10:58:47 +08:00
Michael Shilman
06bcf80248
Update root, peer deps, version.ts/json to 7.0.0-alpha.27 [ci skip]
2022-08-31 10:22:09 +08:00
Michael Shilman
541f40db03
Merge pull request #19045 from storybookjs/tom/sb-697-investigate-chromatic-issues-on-next
...
Core: Restore `/preview` etc package exports; return unresolved path from presets.
2022-08-31 10:19:21 +08:00
Ian VanSchooten
fed59c8aec
Merge remote-tracking branch 'origin/next' into preview-web-dep-6.5
2022-08-30 20:36:59 -04:00
Michael Shilman
b63d349aa8
Merge pull request #19047 from mandarini/fix/update-storybook-config-type
...
Core: Add previewHead and previewBody to StorybookConfig interface
2022-08-30 23:29:45 +08:00
Ian VanSchooten
691bfa17fb
Merge remote-tracking branch 'origin/next' into preview-web-dep-6.5
2022-08-30 09:51:22 -04:00
Tom Coleman
2e50d6346a
Merge remote-tracking branch 'origin/next' into tom/sb-697-investigate-chromatic-issues-on-next
2022-08-30 23:30:56 +10:00
Tom Coleman
9d689a86b6
Restore svelte exports properly
2022-08-30 23:00:10 +10:00
Tom Coleman
5aadc0fd61
Update comments
2022-08-30 22:29:58 +10:00
Tom Coleman
bb294e9b84
Fix typo
2022-08-30 22:28:48 +10:00
Tom Coleman
c29a9129ef
Remove spurious log
2022-08-30 22:26:24 +10:00
Tom Coleman
e3f0e26b3b
Use pseudo absolute exports for preview/manager entries
2022-08-30 22:25:21 +10:00
Michael Shilman
8a8d8fac93
Apply suggestions from code review
2022-08-30 20:11:06 +08:00
Norbert de Langen
530d297b0e
Merge branch 'next' into tech/fix-bench
...
# Conflicts:
# code/yarn.lock
2022-08-30 11:00:59 +02:00
Katerina Skroumpelou
3b0a999df9
fix: add previewHead and previewBody to StorybookConfig interface
2022-08-30 11:34:29 +03:00
Tom Coleman
7eae837fcc
Revert changes to exports
fields of addons/renderers
...
All of Node, Webpack and Vite can `import('<pkg>/preview')` etc, as long as the `exports` map is there and setup like so. If the `exports` map is not there, then they can import `node_modules/<pkg>/preview.js` instead.
The issue occurred when an export map existed but Vite tried to import a path that wasn't defined in there.
2022-08-30 14:46:23 +10:00
Tom Coleman
57d5b1ae3b
Don't return resolved path from browser preset entries
...
Instead, just return the import path unresolved
2022-08-30 14:44:19 +10:00
Clint Andrew Hall
64a729c82d
Add type export for storybookjs/testing-react#106
2022-08-29 12:14:12 -05:00
Tom Coleman
57d082ced4
Fix addons in examples.
...
Allow `preview.js` etc to be the name of the package exports
2022-08-29 22:02:34 +10:00
Ian VanSchooten
0cb5f7c7f1
Clean up unneeded dependencies and files in vite frameworks
2022-08-29 06:41:12 -04:00
Ian VanSchooten
e7bccb04fa
Expand framework package descriptions
2022-08-29 06:41:12 -04:00
Ian VanSchooten
a8af64c05f
Fix node engines versions
...
These match up with vite 3's current requirements
2022-08-29 06:41:12 -04:00
Norbert de Langen
ccb6089194
fix
2022-08-29 11:47:25 +02:00
Tom Coleman
f263f42991
Set resolve.preserveSymlinks
in Vite based on env vars
...
Similar to how we do in webpack.
2022-08-29 11:08:48 +10:00
Norbert de Langen
f8fc018dbc
so it seems that in production mode this is still an issue, so I did the suggested fix by @Anderist
...
He suggested that 'hiding' the dependency on an export that may or may not exists away from bundlers would solve it.
This is what they do in emotion itself, but esbuild optimizes that away again.
2022-08-26 17:42:51 +02:00
Norbert de Langen
4b15710d26
'fix' warnings
2022-08-26 15:56:24 +02:00
Michael Shilman
df6da4cc51
Update git head to 7.0.0-alpha.26, update yarn.lock [ci skip]
2022-08-26 19:17:00 +08:00