Skip to content

Commit

Permalink
fix: global setup token , error, fix #244
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Aug 16, 2022
1 parent 5d437fb commit ca080ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/histoire/src/node/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ if (import.meta.hot) {
// List
`const setupList = [${ctx.config.setupCode.map((c, index) => `setup_${index}`).join(', ')}]`,
// Setups
ctx.supportPlugins.map(p => p.setupFn).map(fnName => `export async function ${fnName} (payload) {
...ctx.supportPlugins.map(p => p.setupFn).map(fnName => `export async function ${fnName} (payload) {
for (const setup of setupList) {
if (setup?.${fnName}) {
await setup.${fnName}(payload)
Expand Down

0 comments on commit ca080ad

Please sign in to comment.