Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storyshots/Preact: Add pragma @jsxRuntime classic #13849

Merged
merged 3 commits into from
Apr 27, 2021
Merged

Storyshots/Preact: Add pragma @jsxRuntime classic #13849

merged 3 commits into from
Apr 27, 2021

Conversation

appsparkler
Copy link

Without this it breaks when runtime is automatic

Issue:

What I did

Added additional pragma @jsxRuntime set to classic. More information on : https://babeljs.io/docs/en/babel-plugin-transform-react-jsx/
More information in the Customizing the Automatic Runtime Import section.

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

Without this it breaks when runtime is automatic
Fixed formatting
@shilman shilman changed the title + pragma @jsxRuntime classic Storyshots/Preact: Add pragma @jsxRuntime classic Apr 27, 2021
@shilman shilman merged commit af16bd5 into storybookjs:next Apr 27, 2021
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.

3 participants