-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue #6763 : set a better value for process in the manager webpack config #6767
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://monorepo-git-bugfix-process-variable-set-to-true.storybook.now.sh |
new CaseSensitivePathsPlugin(), | ||
new Dotenv({ silent: true }), | ||
// graphql sources check process variable | ||
new DefinePlugin({ | ||
process: JSON.stringify(true), | ||
process: { browser: true, env: stringified }, | ||
NODE_ENV: JSON.stringify(process.env.NODE_ENV), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the above NODE_ENV key necessary or is it a bug by the way (global.NODE_ENV) ?
leaving as it is for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's intentional, from #6215
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @libetl!! 🙏
@ndelangen can you take a look at this? i think you wrote the code it's replacing |
@shilman is this still necessary ? |
@libetl As far as I know this is still necessary. @ndelangen ping |
Yet another conflict... With myself. |
Issue:
What I did
I have fixed the trouble with libraries making use of the process variable.
In the manager configuration, the variable is set to true,
Which causes several troubles when using additional libraries (like crypto)
So instead of true, I am setting a more relevant value
this also fixes issue #6763
How to test
If your answer is yes to any of these, please make sure to include it in your PR.