Skip to content

Commit

Permalink
add surveys plugin to storybook test
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy committed Feb 13, 2024
1 parent 15eb56a commit b1070ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createEntry } from '../webpack.config'
import { StorybookConfig } from '@storybook/react-webpack5'
const SurveysJSPlugin = require('posthog-js/dist/surveys.esm')

const config: StorybookConfig = {
stories: ['../frontend/src/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
Expand All @@ -17,6 +18,7 @@ const config: StorybookConfig = {

webpackFinal: (config) => {
const mainConfig = createEntry('main')
config.plugins.push(SurveysJSPlugin)

Check failure on line 21 in .storybook/main.ts

View workflow job for this annotation

GitHub Actions / Code quality checks

'config.plugins' is possibly 'undefined'.
return {
...config,
resolve: {
Expand Down

0 comments on commit b1070ff

Please sign in to comment.