Socket
Socket
Sign inDemoInstall

@storybook/builder-webpack5

Package Overview
Dependencies
34
Maintainers
9
Versions
940
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @storybook/builder-webpack5

Storybook framework-agnostic API


Version published
Weekly downloads
3.1M
decreased by-0.41%
Maintainers
9
Created
Weekly downloads
 

Package description

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

Changelog

Source

8.0.9

  • Addon-docs: Fix MDX compilation when using @vitejs/plugin-react-swc with plugins - #26837, thanks @JReinhold!
  • CSF: Fix typings for control and other properties of argTypes - #26824, thanks @kasperpeulen!
  • Controls: Fix crashing when docgen extraction partially fails - #26862, thanks @yannbf!
  • Doc Tools: Signature Type Error Handling - #26774, thanks @ethriel3695!
  • Next.js: Move sharp into optional deps - #26787, thanks @shuta13!
  • Nextjs: Support next 14.2 useParams functionality - #26874, thanks @yannbf!
  • Test: Remove chai as dependency of @storybook/test - #26852, thanks @kasperpeulen!
  • UI: Fix sidebar search hanging when selecting a story in touch mode - #26807, thanks @JReinhold!

Readme

Source

Builder-Webpack5

Builder implemented with webpack5 and webpack5-compatible loaders/plugins/config, used by @storybook/core-server to build the preview iframe.

export default {
  core: {
    builder: '@storybook/builder-webpack5',
  },
};

Keywords

FAQs

Last updated on 22 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc