Is it possible to define globals, when collecting stories? #211
Unanswered
sheremet-va
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have stories that use global variable, but I can't seem to find a way to inject it when collecting files. It fails with:
This is happening when importing story file inside
@histoire/plugin-vue/dist/bundled/server/run.js
.I know I can inject code with
setupCode
andsetupFile
, but it works only for code that runs in a browser, as I found out.Beta Was this translation helpful? Give feedback.
All reactions