Skip to content

Commit

Permalink
fix(react): fix builder options for storybook plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
puku0x authored and mandarini committed Oct 21, 2022
1 parent ee1d0a6 commit 4a453a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/plugins/storybook/index.ts
Expand Up @@ -9,6 +9,7 @@ import {
workspaceRoot,
} from '@nrwl/devkit';
import { getBaseWebpackPartial } from '@nrwl/webpack/src/utils/config';
import { NormalizedWebpackExecutorOptions } from '@nrwl/webpack/src/executors/webpack/schema';
import { getStylesPartial } from '@nrwl/webpack/src/executors/webpack/lib/get-webpack-config';
import { checkAndCleanWithSemver } from '@nrwl/workspace/src/utilities/version-utils';
import { join } from 'path';
Expand Down Expand Up @@ -100,7 +101,7 @@ export const webpack = async (

const tsconfigPath = join(options.configDir, 'tsconfig.json');

const builderOptions: any = {
const builderOptions: NormalizedWebpackExecutorOptions = {
...options,
root: options.configDir,
sourceRoot: '',
Expand All @@ -115,6 +116,7 @@ export const webpack = async (
optimization: {},
tsConfig: tsconfigPath,
extractCss: storybookWebpackConfig.mode === 'production',
target: 'web',
};

const esm = true;
Expand Down

0 comments on commit 4a453a9

Please sign in to comment.