Ian VanSchooten
2c0505ee9a
Vite: Move default cache dir to node_modules/.cache
2022-10-06 22:37:06 -04:00
Michael Shilman
5d175ed378
Merge branch 'next' into vite/vue2
2022-10-02 20:27:36 +08:00
Tom Coleman
e5b123b41d
Alias browser-assert
in vite also
2022-09-30 11:29:44 +10:00
Ian VanSchooten
2b38dd5d0b
Merge remote-tracking branch 'origin/next' into vite/vue2
...
# Conflicts:
# code/yarn.lock
2022-09-26 15:50:53 -04:00
Ian VanSchooten
0c89dd98e3
Merge remote-tracking branch 'origin/next' into vite/pnpm-support
2022-09-26 09:36:09 -04:00
Ian VanSchooten
d93bbe758d
Support runStep in Vite builder SSv6
2022-09-22 17:52:00 -04:00
Ian VanSchooten
7da06e40f5
We always have addArgs and addArgTypes now
...
Previously, we didn't have any guarantee which version of storybook the builder was being used with.
Now that it's in the monorepo, it'll be versioned together with the rest of storybook.
2022-09-22 17:51:09 -04:00
Ian VanSchooten
8366da7a93
Clean up unused imports
2022-09-21 23:24:55 -04:00
Ian VanSchooten
d46a5c4dac
Cleanup readPackageJson functions
...
It's only used in the react framework, and doesn't need to be exported
2022-09-21 23:15:34 -04:00
Ian VanSchooten
d632146a85
Merge remote-tracking branch 'origin/next' into vite/pnpm-support
...
# Conflicts:
# code/frameworks/react-vite/package.json
# code/frameworks/svelte-vite/package.json
# code/frameworks/vue3-vite/package.json
# code/lib/builder-vite/package.json
# code/yarn.lock
2022-09-19 16:35:51 -04:00
Ian VanSchooten
e5054c27e9
Export storybook utilities for builder from frameworks
2022-09-19 16:11:25 -04:00
Tom Coleman
ea6715a89d
Pass follow
to glob()
to resolve symlink issue
2022-09-14 11:18:11 +10:00
Norbert de Langen
191103a7e6
Merge branch 'next' into pocka/fix/18829-outdated-snippet-copied
...
# Conflicts:
# code/lib/components/src/syntaxhighlighter/syntaxhighlighter.tsx
2022-09-13 17:15:12 +03:00
Tom Coleman
3c7b5a787b
Stop using previewEntries
.
...
Switch `config` and `previewAnnotations`, and warn on the former.
2022-09-12 17:17:50 +10:00
Tom Coleman
1335697e9b
No longer handle previewEntries in the vite builder.
2022-09-09 15:58:59 +10:00
Michael Shilman
8701748ddf
Merge branch 'next' into tom/sb-586-core-features-loaders-parameters
2022-09-08 07:07:18 +08:00
Tom Coleman
0460b94c9f
Ensure we set DOCS_OPTIONS
in the vite builder
2022-09-07 21:36:17 +10:00
Tom Coleman
1cb2f9dfd8
Absolutize both config
and previewEntries
...
cc @IanVS
2022-09-06 15:12:06 +10:00
Ian VanSchooten
1926153a70
Merge remote-tracking branch 'origin/next' into deps-cleanup
...
# Conflicts:
# code/lib/addons/package.json
# code/lib/blocks/package.json
# code/lib/client-api/package.json
# code/lib/core-client/package.json
# code/lib/core-common/package.json
# code/lib/preview-web/package.json
# code/lib/source-loader/package.json
# code/yarn.lock
2022-09-05 17:29:49 -04:00
Sergey Kozlov
78484c3d3a
remove deprecated stable
dependency
2022-09-04 22:11:50 +03:00
Ian VanSchooten
e740513260
Remove unused dependencies
2022-09-04 00:31:35 -04:00
Ian VanSchooten
9a5adca82e
Fix paths to input files
2022-09-01 21:52:51 -04:00
Ian VanSchooten
351b4f1ad6
Handle rollup hook objects
2022-09-01 16:12:45 -04:00
Ian VanSchooten
119a2d45f1
Use consistent vite plugin names
...
This will make them easier to understand in debug logs, for instance.
2022-09-01 16:02:57 -04:00
Ian VanSchooten
e39716fffa
Move all plugins into /plugins
2022-09-01 15:59:10 -04:00
Ian VanSchooten
0b124c55a7
Remove unneeded no-fouc plugin
...
The issue was fixed in vite prior to 3.0, which is the lowest version we support now.
2022-09-01 15:51:57 -04: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
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
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
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
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
Michael Shilman
00ccb9ac4b
Merge branch 'next' into svelte-vite-framework
2022-08-26 09:24:50 +08:00
Michael Shilman
1e20308330
Vite: Delete core-vite and cursory first cut at types
2022-08-25 21:41:09 +08:00
Ian VanSchooten
49e21de028
Cleanup unused variables
2022-08-24 14:57:57 -04:00
Michael Shilman
f1481d1584
Builder-vite: Add support for previewEntries preset
2022-08-24 11:26:25 +08:00
Michael Shilman
8846a42bc7
Merge branch 'vite-frameworks' into svelte-vite-framework
2022-08-22 22:56:44 +08:00
Michael Shilman
07f8ad4397
Fix build errors
2022-08-22 22:27:42 +08:00
Michael Shilman
7b897a1368
Merge branch 'vite-frameworks' into svelte-vite-framework
2022-08-22 12:42:01 +08:00
Michael Shilman
00465bac08
Remove unnecessary file
2022-08-22 12:41:39 +08:00
Michael Shilman
498575b299
Svelte: Add svelte-vite framework (WIP)
2022-08-22 12:40:53 +08:00
Michael Shilman
a3cec55d74
Remove vue-specific code from vite builder
2022-08-18 23:12:13 +08:00
Ian VanSchooten
c4f456d945
Disable source loader plugin
...
It seems to have broken, maybe after 631795b23e
2022-08-14 23:02:42 -04:00
Ian VanSchooten
aaedc2a615
Remove plugins that moved to react-vite
2022-08-14 22:57:03 -04:00
Ian VanSchooten
67456fd3fb
Fix linting / typescript errors
2022-08-14 22:53:27 -04:00
Ian VanSchooten
1f3c1f8cf1
Move input files out of src
...
They need to be accessible from dist, as well
2022-08-14 22:52:09 -04:00
Michael Shilman
01e3663b76
Vite core, react, and example app (WIP)
2022-08-14 11:50:22 +08:00