93 Commits

Author SHA1 Message Date
Michael Shilman
3696da7fd7 NormalizedStoriesEntry => NormalizedStoriesSpecifier 2021-09-18 16:06:10 +08:00
Tom Coleman
ebd1f934b8 Ensure we don't call configure for stories if we don't have any 2021-09-13 21:48:27 +10:00
Tom Coleman
dcdf150b88 Update store/preview to take project annotations on init.
This way they can be set on `window` at boot time.
2021-09-13 17:08:07 +10:00
Tom Coleman
68b3ef639c Merge remote-tracking branch 'origin/next' into on-demand-store 2021-09-07 22:17:56 +10:00
Tom Coleman
1f9e6ad3d4 Cleanup 2021-09-07 16:07:35 +10:00
Tom Coleman
7d45c074a4 Add a "back-compat" API for __STORYBOOK_CLIENT_API
(Although it isn't backwards compatible, as it requires you call `cacheAllCSFFiles()` first)
2021-09-07 16:07:04 +10:00
Tom Coleman
4e12e81e75 Rename StoriesList => StoryIndex 2021-09-07 14:54:29 +10:00
Tom Coleman
1fa95a007b Rename WebPreview to PreviewWeb 2021-09-07 14:41:20 +10:00
Tom Coleman
1ad369c0af Rename GlobalAnnotations => ProjectAnnotations 2021-09-07 14:30:46 +10:00
Tom Coleman
d06b4a6c90 Ensure user's config is last on the list.
And update snapshots with cosmetic changes to entry points (and ordering HMR to the end, which I think is OK)
2021-09-05 11:23:24 +10:00
Tom Coleman
8abc869f07 Need to pick filenames carefully in configs 2021-09-04 11:55:22 +10:00
Tom Coleman
c9e8fc3b8b Add template to wp5 builder 2021-09-04 11:47:12 +10:00
Tom Coleman
7eaf944bd9 Bring wp4 changes over to wp5 2021-09-04 11:42:02 +10:00
Tim van der Horst
5d5bf30eb7
Replaced process.env override in DefinePlugin config to individual key definitions
Included an empty fallback for `process.env.XSTORYBOOK_EXAMPLE_APP` for the variable used in `lib/ui/src/index.tsx`
2021-08-27 17:00:52 +10:00
Juho Vepsäläinen
9389325c80 fix: Remember to close webpack compiler
It looks like this is the right way to go instead of `process.exit`.
2021-07-07 10:22:06 +03:00
Michael Shilman
f0dd576e04
Merge pull request #15372 from 7rulnik/default-aggregate-timeout
Core: Fix double rebuilds by removing aggregateTimeout
2021-07-02 19:32:27 +08:00
Michael Shilman
957d634158 CSF: Fix auto-title generation for standard config dir 2021-06-30 14:21:22 +08:00
Michael Shilman
631047b370 Webpack: Used named moduleIds in production for automatic title generation 2021-06-29 21:40:31 +08:00
Michael Shilman
317d8d98a5 CSF3: Generate default titles based on file path 2021-06-26 20:15:51 +08:00
Michael Shilman
8bca9ec153
Merge pull request #15375 from storybookjs/fix/csf3-feature-flag-webpack5
CSF3: Genericize feature flagging and fix webpack5
2021-06-26 16:26:54 +08:00
Michael Shilman
39c7ba09ad CSF3: Genericize feature flagging and fix webpack5 2021-06-26 16:04:35 +08:00
Michael Shilman
2e5ca96196 Webpack5: Fix warnings typo 2021-06-26 15:06:22 +08:00
Valentin Semirulnik
9e044fc30f
fix: remove aggregateTimeout 2021-06-25 22:43:57 +03:00
Michael Shilman
2d4f2f5857 Core: Only use dotenv-webpack when a user has a dotenv file 2021-06-25 20:54:18 +08:00
Michael Shilman
7a26a95bf3 CSF3: User settable global render 2021-06-14 11:24:29 +08:00
Michael Shilman
b5a42fd69d
Apply suggestions from code review 2021-06-02 15:26:06 +08:00
Juri
5204187f4c add disableWebpackDefaults option for presets 2021-06-01 22:02:05 +02:00
Michael Shilman
bd86e6c575 Core: Expose entire webpack package to addons, not just compiler 2021-05-24 13:26:28 +08:00
Michael Shilman
0f5366c122 Webpack5: Remove assert fallback in webpack5 2021-05-23 11:16:35 +08:00
Michael Shilman
e0468ab100 Core: Refactor core-server to build manager with webpack4 or 5 2021-05-21 22:35:01 +08:00
Michael Shilman
8aba2f5e2a
Merge pull request #14899 from storybookjs/14579-undefined-inputs
Controls: Update all controls to have explicit handling for `undefined`
2021-05-18 14:54:00 +08:00
Michael Shilman
74863b77d7 Core: Add sbmodern package export, drop modern to chrome 79+ 2021-05-17 18:01:30 +08:00
Tom Coleman
a2d419e625 Add a concept of argsEnhancers 2021-05-14 15:21:51 +10:00
Michael Shilman
f68a8fede8 Webpack5: Always set resolve.fallback.crypto to false 2021-05-14 00:33:00 +08:00
Valentin Semirulnik
8ff6585449
remove loader field 2021-04-30 13:10:21 +03:00
Valentin Semirulnik
4bd395edac
use native assets type istead of url-loader, file-loader and raw-loader 2021-04-30 13:10:20 +03:00
Valentin Semirulnik
0541ae039c
remove useless pnp-webpack-plugin 2021-04-30 13:09:30 +03:00
Gaëtan Maisse
98fa420bef
chore: move to Yarn 2 🧶 2021-04-07 18:25:38 +02:00
Michael Shilman
3fb8153144 Core: Restore previewHead/Body presets 2021-04-07 16:51:35 +08:00
Michael Shilman
bc3702365f
Merge pull request #14480 from storybookjs/14423-fix-file-loader
Core: Fix file-loader options for ESM compat
2021-04-05 22:18:28 +08:00
Michael Shilman
86ebd69e48 Core: Fix file-loader options for ESM compat 2021-04-05 19:56:44 +08:00
Michael Shilman
ef70dcb849 Core: Disable postcss warning, add main.js features setting 2021-04-05 18:09:52 +08:00
Michael Shilman
af798d9d89 Webpack: Fix HMR by removing concatenateModules optimization 2021-03-29 16:01:50 +08:00
Michael Shilman
3ffd6a697d Webpack5: Remove deprecated webpack-filter-warnings-plugin 2021-03-22 23:52:53 +08:00
Valentin Semirulnik
68cd015707
add [path] in dev mode for file assets 2021-03-20 22:53:31 +03:00
Valentin Semirulnik
a60b67661e
add manager and iframe into filename 2021-03-20 22:48:20 +03:00
Valentin Semirulnik
9de0f33244
use storybookBaseConfig.mode for mode detection 2021-03-20 22:30:05 +03:00
Valentin Semirulnik
d0ea8fcec4
hash files only in dev mode 2021-03-20 22:30:05 +03:00
Michael Shilman
29a079340f
Revert "Webpack: Hash files only in production mode" 2021-03-21 00:10:09 +08:00
Michael Shilman
ed99677c86 Fix deepscan 2021-03-20 16:43:50 +08:00