Skip to content

Commit

Permalink
feat(vite-node): enable CJS fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 5, 2023
1 parent 86e08d1 commit 71be82a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/histoire/src/node/collect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function useCollectStories (options: UseCollectStoriesOptions, ctx: Conte
/vite\w*\/dist\/client\/(client|env).mjs/,
...ctx.config.viteNodeInlineDeps ?? [],
],
fallbackCJS: true,
},
transformMode: ctx.config.viteNodeTransformMode,
})
Expand Down

0 comments on commit 71be82a

Please sign in to comment.