react-zoom-pan-pinch
Version:
Zoom and pan html elements in easy way
24 lines (22 loc) • 661 B
JavaScript
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
"@storybook/addon-storysource",
"@storybook/addon-a11y",
],
core: {
builder: "webpack5",
},
framework: "@storybook/react",
webpackFinal: (webpackConfig) => {
const scopePluginIndex = webpackConfig.resolve.plugins.findIndex(
({ constructor }) =>
constructor && constructor.name === "ModuleScopePlugin",
);
webpackConfig.resolve.plugins.splice(scopePluginIndex, 1);
return webpackConfig;
},
};