Skip to content

Core: Module format load accept loader function #7518

Merged
shilman merged 6 commits into
nextfrom
7512-load-files
Jul 22, 2019
Merged

Core: Module format load accept loader function #7518
shilman merged 6 commits into
nextfrom
7512-load-files

Conversation

@shilman
Copy link
Copy Markdown
Member

@shilman shilman commented Jul 22, 2019

Issue: #7512

What I did

  • load accepts req, [req], or loaderFn
  • bugfix for deleting stories
  • update examples, including cra15 as designated project for back-compat

Follow up

How to test

cd examples/official-storybook
yarn storybook

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 22, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-7512-load-files.storybook.now.sh

@shilman shilman added this to the 5.2.0 milestone Jul 22, 2019
Copy link
Copy Markdown
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Do we want to ensure load is only called once somehow?

Comment thread examples/official-storybook/config.js Outdated
Comment thread lib/core/src/client/preview/start.js Outdated
// Find all the imports
// Remove old imports that are unused
// Add any new imports
// Set previousExports to currentExports
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these

shilman added a commit that referenced this pull request Jul 22, 2019
Co-Authored-By: Tom Coleman <tom@thesnail.org>
@vercel vercel Bot temporarily deployed to staging July 22, 2019 06:27 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants