Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@storybook/builder-webpack5

Package Overview
Dependencies
Maintainers
11
Versions
1230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/builder-webpack5

Storybook framework-agnostic API

  • 0.0.0-pr-29254-sha-27a5decc
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.3M
decreased by-2.96%
Maintainers
11
Weekly downloads
 
Created

What is @storybook/builder-webpack5?

The @storybook/builder-webpack5 npm package is a builder for Storybook that uses Webpack 5 as its core bundling engine. It allows developers to configure Storybook to use Webpack 5 for building and serving their UI component stories. This package is particularly useful for projects that have already migrated to Webpack 5, ensuring compatibility and taking advantage of the latest features offered by Webpack.

What are @storybook/builder-webpack5's main functionalities?

Custom Webpack Configuration

Allows users to provide a custom Webpack configuration to be used by Storybook. This can include custom loaders, plugins, and other Webpack-specific settings.

{
  "stories": ["./src/**/*.stories.@(js|jsx|ts|tsx)"]
  "addons": ["@storybook/addon-links", "@storybook/addon-essentials"],
  "core": {
    "builder": "@storybook/builder-webpack5"
  },
  "webpackFinal": (config) => {
    // Custom webpack configuration
    return config;
  }
}

Performance Optimizations

Enables performance optimizations such as lazy compilation to improve the development experience by speeding up build and reload times.

{
  "core": {
    "builder": {
      "name": "@storybook/builder-webpack5",
      "options": {
        "lazyCompilation": true
      }
    }
  }
}

Other packages similar to @storybook/builder-webpack5

Keywords

FAQs

Package last updated on 01 Oct 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc