Skip to content
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

Upgrade all dependencies #7329

Merged
merged 13 commits into from
Jul 8, 2019
Merged

Upgrade all dependencies #7329

merged 13 commits into from
Jul 8, 2019

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Jul 6, 2019

Upgrade all dependencies

Some upgrades have caused some effects that required changes.

Some eslint rules have been improved, and I had to make some code-changes in order to linting/typescript to pass again.

I ran into a memory issue, where the terser minification would run out of memory during a static build.

It only occurs on the official storybook though.

I fixed it by setting source-maps off for this specific example. I'm not happy with this, but I have tried other solution, no other worked.

@vercel
Copy link

vercel bot commented Jul 6, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://monorepo-git-upgrades.storybook.now.sh

@ndelangen ndelangen added this to the 5.2.0 milestone Jul 6, 2019
@vercel vercel bot temporarily deployed to staging July 6, 2019 21:56 Inactive
lib/ui/src/index.js Outdated Show resolved Hide resolved
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reformat this PR:

  • sensible title
  • description
  • coherent set of commits that match the description

@ndelangen
Copy link
Member Author

I'm running into memory issues, I've tried:

  • upping the memory limit of node (FAIL)
  • disabling parallel in TerserPlugin (gives hint that the problem is in source-maps)
  • disabling source-maps (FIXES)

I'd like to NOT disable source-maps, I'm investigating if:

  • disabling cache will help.

@shilman
Copy link
Member

shilman commented Jul 7, 2019

@ndelangen also seeing memory issues on this one: #7272

@ndelangen ndelangen changed the title UPGRADES Upgrade all dependencies Jul 7, 2019
@ndelangen
Copy link
Member Author

@shilman do you want me to change the git history to improve the commit messages?

What is your opinion on my solution for the memory issue? I was able to take it away by disabling source-maps for the official example.

@ndelangen
Copy link
Member Author

We discovered that it's the storysource loader, in combination with terser that's creating a memory problem.

We're optimising the storysource loader to solve this problem.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments inline

examples/official-storybook/package.json Outdated Show resolved Hide resolved
minimizer: [
new TerserWebpackPlugin({
cache: false,
parallel: false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we want this true, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, in the end, this should be true.

# Conflicts:
#	addons/knobs/src/components/Panel.tsx
#	addons/knobs/src/components/types/Checkboxes.js
#	addons/knobs/src/components/types/Files.js
#	addons/knobs/src/components/types/Options.js
@vercel vercel bot temporarily deployed to staging July 8, 2019 13:45 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants