Socket
Book a DemoInstallSign in
Socket

@fluentui/babel-preset-storybook-full-source

Package Overview
Dependencies
Maintainers
11
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/babel-preset-storybook-full-source

Babel preset that adds the makes the full source code of stories available

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
369
-7.29%
Maintainers
11
Weekly downloads
 
Created
Source

@fluentui/babel-preset-storybook-full-source

Babel Preset Storybook Full Source for Fluent UI React

This Babel preset makes the full source code of stories available by adding the context.parameters.fullSource property to Storybook stories. This property contains the source of the file where the story is present.

Usage

To use this Babel preset, add it to your Babel configuration:

{
  "presets": ["@fluentui/babel-preset-storybook-full-source"]
}

Features

  • Removes Storybook specific assignments: Avoids issues with undefined stories and unnecessary clutter.
  • Collects and modifies import declarations: Ensures valid single-file code examples.
  • Adds the context.parameters.fullSource property: Includes the full source code of the story in Storybook.

Note

This package is designed for Fluent UI usage only and may not be suitable for general use.

License

This project is licensed under the MIT License.

FAQs

Package last updated on 14 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.